perfsonar-dev - Re: [pS-dev] geant2-java-sql-ma startup
Subject: perfsonar development work
List archive
- From: Piotr Pikusa <>
- To:
- Subject: Re: [pS-dev] geant2-java-sql-ma startup
- Date: Tue, 17 Nov 2009 16:10:58 +0100
Hi André!
As you probably know, java.lang.NoClassDefFoundError: ServletContextListener may be caused for many reasons. Why don't you try to download tomcat5.5 and run it in different port? If everything would by ok with it stop tomcat, build your project and copy WAR file to webapps of new tomcat and run tomcat one more time observing logs. Of course service won't work because of lack of eXist and SQL connection but it should start and show web admin page. This little test tell us more about what can be wrong.
Cheers
Piotr Pikusa
wrote:
Hi Piotr,
First of all, i would like to thank you for the support.
Well, i use maven to compile it. It compiles just fine. The problem happens when i up tomcat with my compiled code in webapps. I get the error i sent earlier.
The solution you gave me wont work, since i would have to recompile the code with the changes i make. So adding my classes to /usr/lib/perfsonar... wouldnt work. You see, if i point ../webapps/geant2-java-sql-ma to a fresh checked out code from the repository, after compiling it, it works. When i make the changes, it doesnt (it compiles, but for some reason tomcat doesnt startup properly). The problem might be here, but i do not do major changes, i just add a new class to perfsonar_base, make some changes on NMWG (actually Murilo Vetter did it.. we are working together) and 2 new classes to sql-ma.
Well my friend, we are working to make sql-ma work with owampSummary. That's basically the idea. Guilherme Fernandes had the hard work done. Im just finishing it.
Att.
André Durieux
Quoting Piotr Pikusa
<>:
Hi!
Could you please tell me how did you build project with new clasess?
Cheers
Piotr Pikusa
wrote:
Hello there.
I've checked out geant2-java-sql-ma's source code and added some new classes (basically to make it support OwampSummary). Some changes to nmwg and perfsonar_base have been made as well. After installing sql-ma from apt-get, it starts up just fine. But when i make a link to my code (../webapps/geant2-java-sql-ma pointing to my compiled code) it just does not startup corretly.
I would like to know if someone out there have had a similar problem or it's just me? I mean something wrong with my code.
Thx for the help!
Att.
André Durieux
The error follows below:
- Error configuring application listener of class org.perfsonar.service.base.container.listeners.StartupInitializer
java.lang.NoClassDefFoundError: ServletContextListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.ClassNotFoundException: ServletContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
... 31 more
- Skipped installing application listeners due to previous error(s)
Nov 16, 2009 6:26:57 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 16, 2009 6:26:57 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geant2-java-sql-ma] startup failed due to previous errors
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
- geant2-java-sql-ma startup, durieux, 11/16/2009
- Re: [pS-dev] geant2-java-sql-ma startup, Piotr Pikusa, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, durieux, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, Piotr Pikusa, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, Piotr Pikusa, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, Piotr Pikusa, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, durieux, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, Piotr Pikusa, 11/17/2009
- Re: [pS-dev] geant2-java-sql-ma startup, Piotr Pikusa, 11/17/2009
Archive powered by MHonArc 2.6.16.