Re: CC, Jetty, webapps, hostname and port...

Chris Joysn <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi,

ok. i'll give the source distribution a try. I only need a working war file
for my Tomcat installation,
so a Debian package is not needed. But i use the binary distribution on
Debian Squeeze.

thanks for your patience...

Chris


2011/1/14 Julian Simpson <[email protected]>

> Hi,
>>
>
>
>
>> yes. i already tried to drive the cruisecontrol webapp with Tomcat6, but i
>> get an exception
>> which states that a Tag class can not be instantiated, because it can not
>> be casted to
>> its an abstract super class ...
>>
>>
> Not sure why that's broken.
>
>
>> so i dont know what i can do to seperate the build loop from the
>> webapps...
>>
>> is the source distribution the only way to go?
>>
>>
> It's probably easiest.  It's also possible to build RPM's and Dpkgs, but
> I'm not sure that's been done in a while.
>
> What Operating System distribution are you using?
>
> Julian.
>
>
>> Chris
>>
>> 2011/1/14 Julian Simpson <[email protected]>
>>
>> Chris,
>>>
>>> CruiseControl's architecture looks like this:
>>>
>>> - a build loop process that you can start individually
>>> - two reporting apps (one older but very flexible, one shiner but
>>> sometimes less useful)
>>>
>>> - build loop writes logs to a file
>>> - the reporting apps read the logs (and in the case of dashboard, uses
>>> JMX to get further state info)
>>>
>>> So you'll never run the build loop from tomcat.  If you tail the log
>>> file, you should be able to see builds firing.
>>>
>>> Bear in mind that the binary distribution of CruiseControl runs
>>> everything in one process, for a better out-of-box experience.
>>>
>>> J.
>>>
>>>
>>> On 12 January 2011 21:22, Chris Joysn <[email protected]> wrote:
>>>
>>>> Hi Julian,
>>>>
>>>> thanks for that fast response. As i understood i can switch off Jetty by
>>>> removing the -webport parameter,
>>>> but i did not find any documentation how to setup CC's build loop and
>>>> the web apps so that i can run them
>>>> from Tomcat.
>>>>
>>>> My try to simply copy the webapps to the Tomcat webapps folder did not
>>>> work, e.g. i get the following
>>>> error when i try to access the webapp cruisecontrol:
>>>>
>>>> *exception*
>>>>
>>>> org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: net.sourceforge.cruisecontrol.taglib.NavigationTagExtraInfo
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
>>>> 	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
>>>> 	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:281)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:419)
>>>> 	org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:250)
>>>> 	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:382)
>>>> 	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:445)
>>>> 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1392)
>>>> 	org.apache.jasper.compiler.Parser.parse(Parser.java:130)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
>>>> 	org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
>>>> 	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
>>>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
>>>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
>>>> 	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
>>>> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>>> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>>>
>>>>
>>>>
>>>>
>>>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>>
>>>> *root cause*
>>>>
>>>> java.lang.ClassCastException: net.sourceforge.cruisecontrol.taglib.NavigationTagExtraInfo cannot be cast to javax.servlet.jsp.tagext.TagExtraInfo
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:417)
>>>> 	org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:250)
>>>> 	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:382)
>>>> 	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:445)
>>>> 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1392)
>>>> 	org.apache.jasper.compiler.Parser.parse(Parser.java:130)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
>>>> 	org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
>>>> 	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
>>>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
>>>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
>>>> 	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
>>>>
>>>>
>>>>
>>>>
>>>> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
>>>> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>>> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>>>
>>>>
>>>>
>>>>
>>>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>>
>>>>
>>>> So, can u please give more details on the changes which needs to be
>>>> done?
>>>>
>>>> Thanks in advance
>>>>
>>>> Chris
>>>>
>>>> 2011/1/12 Julian Simpson <[email protected]>
>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>> On 12 January 2011 20:12, Chris Joysn <[email protected]> wrote:
>>>>>
>>>>>>
>>>>>> how can i run this cruisecontrol webapp? the webapp is served by jetty
>>>>>> as it is located within the webapps folder, but it has similar
>>>>>> problems
>>>>>> like the one mentioned before. hostname and port are refering to
>>>>>> 127.0.0.1:8080.
>>>>>>
>>>>>>
>>>>> We used Apache 2, AJP and Tomcat to deploy the cruisecontrol webapp on
>>>>> buildix (http://buildix.thoughtworks.com/).  Worked just fine.  I
>>>>> guess you'll need to lose Jetty to make it work.
>>>>>
>>>>> J.
>>>>>
>>>>> --
>>>>> Julian Simpson
>>>>> The Build Doctor Ltd.
>>>>> http://www.build-doctor.com
>>>>> [email protected]
>>>>> (+44) 207 183 0323
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Protect Your Site and Customers from Malware Attacks
>>>>> Learn about various malware tactics and how to avoid them. Understand
>>>>> malware threats, the impact they can have on your business, and how you
>>>>> can protect your company and customers by using code signing.
>>>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>>> _______________________________________________
>>>>> Cruisecontrol-user mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Protect Your Site and Customers from Malware Attacks
>>>> Learn about various malware tactics and how to avoid them. Understand
>>>> malware threats, the impact they can have on your business, and how you
>>>> can protect your company and customers by using code signing.
>>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>> _______________________________________________
>>>> Cruisecontrol-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>>>
>>>>
>>>
>>>
>>> --
>>> Julian Simpson
>>> The Build Doctor Ltd.
>>> http://www.build-doctor.com
>>> [email protected]
>>> (+44) 207 183 0323
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Protect Your Site and Customers from Malware Attacks
>>> Learn about various malware tactics and how to avoid them. Understand
>>> malware threats, the impact they can have on your business, and how you
>>> can protect your company and customers by using code signing.
>>> http://p.sf.net/sfu/oracle-sfdevnl
>>> _______________________________________________
>>> Cruisecontrol-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Protect Your Site and Customers from Malware Attacks
>> Learn about various malware tactics and how to avoid them. Understand
>> malware threats, the impact they can have on your business, and how you
>> can protect your company and customers by using code signing.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> Cruisecontrol-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>
>>
>
>
> --
> Julian Simpson
> The Build Doctor Ltd.
> http://www.build-doctor.com
> [email protected]
> (+44) 207 183 0323
>
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.