Deployment in a servlet - NSBundle problem
Deployment in a servlet - NSBundle problem
- Subject: Deployment in a servlet - NSBundle problem
- From: peter mcgregor <email@hidden>
- Date: Thu, 13 Nov 2003 16:36:41 +1300
Hi,
I am running webobjects 5.2.1 under tomcat 4.1.24, java 1.4.1 and
redhat 7.3(and Redhat 8.0) and I am getting
an error when 3 webobjects apps are deployed at the same time.
The first app seems to load successfully but the next two apps fail with
java.lang.IllegalStateException: <com.webobjects.foundation.NSBundle>
warning: There is already a unique instance for Framework named
'JavaFoundation'.
When I remove the app that started successfully the other two load and
work fine.
I'm not using packages, but how could that be the problem when the
error occurs with a WebObjects Framework?
Also aren't servlets supposed to be kept separate from each other
inside Tomcat?
Any help welcomed.
- peter
The full stack trace follows :-
Found MainBundle at: /var/tomcat4/webapps/nwaWeb/WEB-INF/nwaWeb.woa
Classpath for WebObjects classloader is
/var/tomcat4/webapps/nwaWeb/WEB-INF/nwaWeb.woa/Contents/Resources/Java/
nwaweb.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/
JavaFoundation.framework/Resources/Java/javafoundation.jar:/var/
tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/
JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/var/tomcat4/
webapps/nwaWeb/WEB-INF/Library/Frameworks/JavaEOAccess.framework/
Resources/Java/javaeoaccess.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/
Library/Frameworks/JavaWebObjects.framework/Resources/Java/
javawebobjects.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Library/
Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Library/
Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/var/tomcat4/
webapps/nwaWeb/WEB-INF/Library/Frameworks/JavaJDBCAdaptor.framework/
Resources/Java/javajdbcadaptor.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/
Library/Frameworks/JavaWOJSPServlet.framework/Resources/Java/
javawojspservlet.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Library/
Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/var/
tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/ERJars.framework/
Resources/Java/junit.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Library/
Frameworks/ERJars.framework/Resources/Java/log4j-1.2.8.jar:/var/
tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/
PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar:/var/
tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/
JavaDirectToWeb.framework/Resources/Java/javadirecttoweb.jar:/var/
tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/
JavaDTWGeneration.framework/Resources/Java/javadtwgeneration.jar:/var/
tomcat4/webapps/nwaWeb/WEB-INF/Library/Frameworks/
JavaEOProject.framework/Resources/Java/javaeoproject.jar:/var/tomcat4/
webapps/nwaWeb/WEB-INF/Extensions/wsdl4j.jar:/var/tomcat4/webapps/
nwaWeb/WEB-INF/Extensions/avalon-framework-4.1.2.jar:/var/tomcat4/
webapps/nwaWeb/WEB-INF/Extensions/jaxrpc.jar:/var/tomcat4/webapps/
nwaWeb/WEB-INF/Extensions/logkit-1.0.1.jar:/var/tomcat4/webapps/nwaWeb/
WEB-INF/Extensions/commons-discovery.jar:/var/tomcat4/webapps/nwaWeb/
WEB-INF/Extensions/axis.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/
Extensions/log4j-1.2.4.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/
Extensions/axis-ant.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Extensions/
commons-logging.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Extensions/
saaj.jar:/var/tomcat4/webapps/nwaWeb/WEB-INF/Extensions/
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAda
ptor.java:322)
at
com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.
java:70)
at
com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:53
8)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown
Source)
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at
org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown Source)
at org.apache.catalina.core.ContainerBase.addChild(Unknown
Source)
at org.apache.catalina.core.StandardHost.addChild(Unknown
Source)
at
org.apache.catalina.core.StandardHostDeployer.install(Unknown Source)
at org.apache.catalina.core.StandardHost.install(Unknown Source)
at
org.apache.catalina.startup.HostConfig.deployDirectories(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployApps(Unknown
Source)
at org.apache.catalina.startup.HostConfig.start(Unknown Source)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown
Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at
com.webobjects.appserver.WOApplication.primeApplication(WOApplication.ja
va:359)
... 36 more
Caused by: java.lang.IllegalStateException:
<com.webobjects.foundation.NSBundle> warning: There is already a unique
instance for Framework named 'JavaFoundation'. Use
NSBundle.bundleForName(JavaFoundation) to access it:
<com.webobjects.foundation.NSBundle name:'JavaFoundation'
bundlePath:'/var/tomcat4/webapps/quote/WEB-INF/Library/Frameworks/
JavaFoundation.framework' packages:'("com.webobjects.foundation",
"com.webobjects.foundation.xml")' 207 classes >
at
com.webobjects.foundation.NSBundle.LookupOrCreateBundleWithPath(NSBundle
.java:665)
at
com.webobjects.foundation.NSBundle._bundleWithPath(NSBundle.java:398)
at
com.webobjects.foundation.NSBundle.bundleWithPath(NSBundle.java:390)
at
com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(NSBundle.jav
a:596)
at
com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:307)
... 37 more
13/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.