You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eldred Mullany <el...@easypay.co.za> on 2009/08/11 07:56:27 UTC

Jetty 6.16 and T5.0.13

Hi All 

 

I am having a strange problem with an old t5.0.13 app and jetty. When I
startup the application in Eclipse it shows that it connects to db,
starts up all services etc, however when hit a web page that contains
any component such as <t:form>  throws an exception
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for org.apache.tapestry5.corelib.components. I then built a
war file and deployed it under tomcat and it worked fine. 

 

So the problem seems to be jetty, but not sure what's causing it not to
resolve classes, does anyone have any suggestions on what the cause of
this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
corrupt, all classes reside in their respective packages. It would'nt
have worked in tomcat if my libraries were corrupt. 

 

Thanks

Eldred Mullany  

 


RE: Jetty 6.16 and T5.0.13

Posted by Eldred Mullany <el...@easypay.co.za>.
Using Eclipse Version: 3.4.2 under Jetty Run Configurations, placed
${jetty_run} under VM Arguments, restarted , no more
ClassNotFoundExceptions. Working fine. 

Thank you. 
-----Original Message-----
From: Geoff Callender [mailto:geoff.callender.jumpstart@gmail.com] 
Sent: Wednesday, August 12, 2009 12:50 AM
To: Tapestry users
Subject: Re: Jetty 6.16 and T5.0.13

Use true.
You can see a setup that works in the second half of this page:
http://jumpstart.doublenegative.com.au/jumpstart4.4/installation.html

On 12/08/2009, at 1:32 AM, Fernando Padilla wrote:

> So.. read the exception stack trace fully..  If down at the bottom  
> it talks about slf4j or some logging issue.. then it's because Jetty  
> purposefuly hides the slf4j libraries from tapestry (because jetty  
> ships with slf4j for itself ) and you have to add a particular vmarg  
> to fix that.  At least this is what we do, you might be having the  
> same issue, but no guarantees.
>
>
> vmargs:
>
> -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true or false
>
> (At the moment I can't get to my eclipse, so I can't remember if  
> have to set to true or false)
>
>
>
> But here are the docs for this property:
>
> http://docs.codehaus.org/display/JETTY/Classloading
> http://docs.codehaus.org/display/JETTY/SystemProperties
>
>
>
>
> On 8/10/09 10:56 PM, Eldred Mullany wrote:
>> Hi All
>>
>>
>>
>> I am having a strange problem with an old t5.0.13 app and jetty.  
>> When I
>> startup the application in Eclipse it shows that it connects to db,
>> starts up all services etc, however when hit a web page that contains
>> any component such as<t:form>   throws an exception
>> java.lang.ClassNotFoundException: caught an exception while  
>> obtaining a
>> class file for org.apache.tapestry5.corelib.components. I then  
>> built a
>> war file and deployed it under tomcat and it worked fine.
>>
>>
>>
>> So the problem seems to be jetty, but not sure what's causing it  
>> not to
>> resolve classes, does anyone have any suggestions on what the cause  
>> of
>> this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
>> corrupt, all classes reside in their respective packages. It would'nt
>> have worked in tomcat if my libraries were corrupt.
>>
>>
>>
>> Thanks
>>
>> Eldred Mullany
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Jetty 6.16 and T5.0.13

Posted by Geoff Callender <ge...@gmail.com>.
Use true.
You can see a setup that works in the second half of this page: http://jumpstart.doublenegative.com.au/jumpstart4.4/installation.html

On 12/08/2009, at 1:32 AM, Fernando Padilla wrote:

> So.. read the exception stack trace fully..  If down at the bottom  
> it talks about slf4j or some logging issue.. then it's because Jetty  
> purposefuly hides the slf4j libraries from tapestry (because jetty  
> ships with slf4j for itself ) and you have to add a particular vmarg  
> to fix that.  At least this is what we do, you might be having the  
> same issue, but no guarantees.
>
>
> vmargs:
>
> -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true or false
>
> (At the moment I can't get to my eclipse, so I can't remember if  
> have to set to true or false)
>
>
>
> But here are the docs for this property:
>
> http://docs.codehaus.org/display/JETTY/Classloading
> http://docs.codehaus.org/display/JETTY/SystemProperties
>
>
>
>
> On 8/10/09 10:56 PM, Eldred Mullany wrote:
>> Hi All
>>
>>
>>
>> I am having a strange problem with an old t5.0.13 app and jetty.  
>> When I
>> startup the application in Eclipse it shows that it connects to db,
>> starts up all services etc, however when hit a web page that contains
>> any component such as<t:form>   throws an exception
>> java.lang.ClassNotFoundException: caught an exception while  
>> obtaining a
>> class file for org.apache.tapestry5.corelib.components. I then  
>> built a
>> war file and deployed it under tomcat and it worked fine.
>>
>>
>>
>> So the problem seems to be jetty, but not sure what's causing it  
>> not to
>> resolve classes, does anyone have any suggestions on what the cause  
>> of
>> this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
>> corrupt, all classes reside in their respective packages. It would'nt
>> have worked in tomcat if my libraries were corrupt.
>>
>>
>>
>> Thanks
>>
>> Eldred Mullany
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Jetty 6.16 and T5.0.13

Posted by Fernando Padilla <fe...@alum.mit.edu>.
So.. read the exception stack trace fully..  If down at the bottom it 
talks about slf4j or some logging issue.. then it's because Jetty 
purposefuly hides the slf4j libraries from tapestry (because jetty ships 
with slf4j for itself ) and you have to add a particular vmarg to fix 
that.  At least this is what we do, you might be having the same issue, 
but no guarantees.


vmargs:

-Dorg.mortbay.jetty.webapp.parentLoaderPriority=true or false

(At the moment I can't get to my eclipse, so I can't remember if have to 
set to true or false)



But here are the docs for this property:

http://docs.codehaus.org/display/JETTY/Classloading
http://docs.codehaus.org/display/JETTY/SystemProperties




On 8/10/09 10:56 PM, Eldred Mullany wrote:
> Hi All
>
>
>
> I am having a strange problem with an old t5.0.13 app and jetty. When I
> startup the application in Eclipse it shows that it connects to db,
> starts up all services etc, however when hit a web page that contains
> any component such as<t:form>   throws an exception
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for org.apache.tapestry5.corelib.components. I then built a
> war file and deployed it under tomcat and it worked fine.
>
>
>
> So the problem seems to be jetty, but not sure what's causing it not to
> resolve classes, does anyone have any suggestions on what the cause of
> this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
> corrupt, all classes reside in their respective packages. It would'nt
> have worked in tomcat if my libraries were corrupt.
>
>
>
> Thanks
>
> Eldred Mullany
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Jetty 6.16 and T5.0.13

Posted by Sebastian Hennebrueder <us...@laliluna.de>.
Eldred Mullany schrieb:
> Hi All 
> 
>  
> 
> I am having a strange problem with an old t5.0.13 app and jetty. When I
> startup the application in Eclipse it shows that it connects to db,
> starts up all services etc, however when hit a web page that contains
> any component such as <t:form>  throws an exception
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for org.apache.tapestry5.corelib.components. I then built a
> war file and deployed it under tomcat and it worked fine. 
> 
>  
> 
> So the problem seems to be jetty, but not sure what's causing it not to
> resolve classes, does anyone have any suggestions on what the cause of
> this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
> corrupt, all classes reside in their respective packages. It would'nt
> have worked in tomcat if my libraries were corrupt. 
> 
>  
> 
> Thanks
> 
> Eldred Mullany  
> 
>  
> 
> 
I use Jetty 6.1.18 with Tapestry 5.1 and it works. I only know that JSF 
has deployment problems and requires to pack the JSF libs in the Jetty 
lib folder. But this is JSF. It should work. I remember that 5.0 
provides sometimes no exception messages. Just try another version.
Best Regards
Sebastian


-- 
Best Regards / Viele Grüße

Sebastian Hennebrueder
-----
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Jetty 6.16 and T5.0.13

Posted by Bryan Lewis <jb...@gmail.com>.
I'm building Tapestry 5.0.18 apps in Eclipse with Jetty with no problem.
What plugin are you using to run jetty in eclipse?  At first I tried
JettyLauncher because it was recommended in the Tapestry tutorial (for older
versions of Jetty and Eclipse), but I got ClassNotFoundExceptions when
running with Jetty 6 and Eclipse 3.4.  I switched to run-jetty-run.

Can you run in jetty outside eclipse?


On Tue, Aug 11, 2009 at 1:56 AM, Eldred Mullany <
eldred.mullany@easypay.co.za> wrote:

> Hi All
>
>
>
> I am having a strange problem with an old t5.0.13 app and jetty. When I
> startup the application in Eclipse it shows that it connects to db,
> starts up all services etc, however when hit a web page that contains
> any component such as <t:form>  throws an exception
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for org.apache.tapestry5.corelib.components. I then built a
> war file and deployed it under tomcat and it worked fine.
>
>
>
> So the problem seems to be jetty, but not sure what's causing it not to
> resolve classes, does anyone have any suggestions on what the cause of
> this is. I checked my tapestry-core-5.0.13.jar which doesn't seem
> corrupt, all classes reside in their respective packages. It would'nt
> have worked in tomcat if my libraries were corrupt.
>
>
>
> Thanks
>
> Eldred Mullany
>
>
>
>

Re: Jetty 6.16 and T5.0.13

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Tue, 11 Aug 2009 02:56:27 -0300, Eldred Mullany  
<el...@easypay.co.za> escreveu:

> Hi All

Hi!

> I am having a strange problem with an old t5.0.13 app and jetty. When I
> startup the application in Eclipse it shows that it connects to db,
> starts up all services etc, however when hit a web page that contains
> any component such as <t:form>  throws an exception
> java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for org.apache.tapestry5.corelib.components.

Please post the whole stack trace. It could be a classpath issue.
I've been developing Tapestry 5 applications with Jetty since Tapestry  
5.0.4 whitout any problems.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org