perfsonar-dev - Re: [pS-dev] geant2-java-sql-ma startup
Subject: perfsonar development work
List archive
- From: Piotr Pikusa <>
- To:
- Cc:
- Subject: Re: [pS-dev] geant2-java-sql-ma startup
- Date: Tue, 17 Nov 2009 11:04:46 +0100
I don't know if simple linking /webapps/geant2-java-sql-ma to your code would work and make all libs visible to your classes. Notice that packages with classes are in /usr/share/tomcat5.5/webapps/geant2-java-sql-ma/WEB-INF/classes directory. Try copy your new and changed classes to proper directories and don't link anything. And copy all new built jars (ie. perfsonar-base) to webapps/geant2-java-sql-ma/WEB-INF/lib .
To sum up. Don't link anything - just copy all files from yout build dir to proper directories in webapps directory. Remember that changing anything in code you touch many dependencies.
But it's nice to hear that you want develop new functionality, could you tell something more about it?
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.
- 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.