tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto López <atallo...@hotmail.com>
Subject Re: ClassNotFoundException when deploying openejb.war
Date Thu, 19 Feb 2009 18:27:53 GMT

Thank you four your efforts, Jonathan.

I'm looking forward to install the fixed version.

Regards,

Alberto


Jonathan Gallimore-2 wrote:
> 
> Thanks for opening the JIRA. I've just committed a fix - it seems that 
> during the URL encoding/decoding process we go through to add certain 
> JARs to the Tomcat classpath a + character ends up becoming a space.
> 
> As a side note, having CATALINA_HOME defined as path with a space in it 
> causes the Java Agent to not be loaded correctly on my Linux system 
> (Windows XP seems happy) - the released 3.1 war does this as well, so I 
> don't think its anything I introduced with this fix. I'll investigate 
> this a bit more and see if I can commit a fix for this too.
> 
> Jon
> 
> 
> Alberto López wrote:
>> Hi again David,
>>
>> I didn't install tomcat as a service, I simply unzipped it. 
>>
>> I also experimented with the different path and the results are really
>> weird. But I thing I finally figured it out.
>>
>> As I told in a previous message, after having these problems I installed
>> Tomcat 6.0.18 in another location and it worked which made me think that
>> perhaps the path had something to say.
>>
>> So what I did was to install Tomcat (always unzipping) again in its old
>> location and bingo: the same old problem.
>>
>> It was somewhat hard to believe that the path could be a reason,
>> specially
>> when the path that causes the problems has no spaces and the one which
>> works
>> fine does have some of them.
>>
>> This is the path with issues:
>> C:\Desarrollo\Libs+Tools\Apache\Tomcat-6.0.18\webapps
>>
>> This one works fine: C:\Archivos de programa\Desarrollo\Tomcat-6.0.18
>>
>> Weird, isn't it? 
>>
>> So I made the final test: I remove the '+' character from the first path,
>> since it is the only "strange" character. And it worked!
>>
>> Could it be perhaps that the '+' causes strange behaviours within a
>> classpath? Seems something like that to me (could be perhaps an useful
>> hint
>> for including it in a FAQ).
>>
>> Regards,
>>
>> Alberto
>>
>>
>>
>>
>> David Blevins wrote:
>>   
>>> On Feb 13, 2009, at 1:36 AM, Alberto López wrote:
>>>
>>>     
>>>> My problem is that I hadn't the opportunity to even begin the  
>>>> installation,
>>>> since after the failed deployment attempt the URL for the install  
>>>> page does
>>>> not work, which is not strange after all ;-)
>>>>       
>>> Is the Tomcat instance by chance installed as a windows service?  I've  
>>> seen some classloading strangeness with Tomcat installs that run as  
>>> windows services, seems windows refuses to truly restart the VM  
>>> causing all sorts of issues.
>>>
>>> I guess the better way to answer that question is to know how you  
>>> installed Tomcat.  All releases are tested on Windows XP, but we  
>>> simply download the zip file and unpack it and do not use the  
>>> installer exe files.
>>>
>>> -David
>>>
>>>
>>>     
>>>> Jean-Louis MONTEIRO wrote:
>>>>       
>>>>> Hola Alberto,
>>>>>
>>>>> Did the installation (as described here
>>>>> http://openejb.apache.org/tomcat.html) work without any errors ?
>>>>> After installation complete, you should have an OpenEJB Listener in
>>>>> catalina server.xml
>>>>> Moreover you should have 2 additional jar files in the
>>>>> ${catalina.home}/lib
>>>>> - openejb-tomcat-loader-3.1.jar
>>>>> - openejb java agent (necessary for openjpa)
>>>>>
>>>>> Finally, openejb installer makes changes in sh/bat scripts.
>>>>>
>>>>> Can you please check if it's ok and give us a feed back ?
>>>>>
>>>>> Adios ;-)
>>>>> Jean-Louis
>>>>>
>>>>>
>>>>>
>>>>> Alberto López wrote:
>>>>>         
>>>>>> Hi,
>>>>>>
>>>>>> I'm new to OpenEJB and I would like to use it in my organization.
>>>>>>
>>>>>> But the first steps have been somewhat complicated, every time I
 
>>>>>> deploy
>>>>>> the openejb.war I get the error below.
>>>>>>
>>>>>> I'm using Tomcat 6.0.18 under Windows XP. I also tried Tomcat 5.5
 
>>>>>> on the
>>>>>> same machine, but with the same result.
>>>>>>
>>>>>> Would be very grateful for some feedback.
>>>>>>
>>>>>> Java version: 1.6.0_11-b03
>>>>>> OpenEJB version: 3.1
>>>>>>
>>>>>> Alberto López
>>>>>>
>>>>>>
>>>>>> OpenEJB init-params:
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.apache.openejb.tomcat.loader.TomcatHook
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .openejb.tomcat.loader.TomcatEmbedder.embed(TomcatEmbedder.java:71)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .openejb.tomcat.loader.LoaderServlet.init(LoaderServlet.java:44)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:

>>>>>> 1172)
>>>>>>        at
>>>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:

>>>>>> 992)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.core.StandardContext.loadOnStartup(StandardContext.java:

>>>>>> 4058)
>>>>>>        at
>>>>>> org 
>>>>>> .apache.catalina.core.StandardContext.start(StandardContext.java:

>>>>>> 4371)
>>>>>>        at
>>>>>> org 
>>>>>> .apache.catalina.core.StandardContext.reload(StandardContext.java:

>>>>>> 3099)
>>>>>>        at
>>>>>> org 
>>>>>> .apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:

>>>>>> 916)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:536)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:

>>>>>> 114)
>>>>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:

>>>>>> 617)
>>>>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:

>>>>>> 717)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .core 
>>>>>> .ApplicationFilterChain 
>>>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:

>>>>>> 206)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina 
>>>>>> .authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:

>>>>>> 109)
>>>>>>        at
>>>>>> org 
>>>>>> .apache 
>>>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>>>        at
>>>>>> org 
>>>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:

>>>>>> 845)
>>>>>>        at
>>>>>> org.apache.coyote.http11.Http11Protocol 
>>>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>>        at
>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:

>>>>>> 447)
>>>>>>        at java.lang.Thread.run(Thread.java:619)
>>>>>>
>>>>>>
>>>>>>
>>>>>>           
>>>>>         
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/ClassNotFoundException-when-deploying-openejb.war-tp21858040p21993053.html
>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>>
>>>>
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ClassNotFoundException-when-deploying-openejb.war-tp21858040p22106764.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message