Re: WAR deployment as SSDD
Re: WAR deployment as SSDD
- Subject: Re: WAR deployment as SSDD
- From: "Daniele Corti" <email@hidden>
- Date: Fri, 2 Nov 2007 11:43:30 +0100
2007/10/31, Dov Rosenberg <email@hidden>:
If there is an error during startup the WOServletAdaptor is not deployed and your app will not run. Check your WEB-INF/web.xml to make sure all of the pieces referenced in the WOCLASSPATH node are available where expected. If you are using an EOModel make sure the model is available in the framework search path.
Dov Rosenberg
I've did but they are all correct!
On 10/31/07 11:56 AM, "Daniele Corti" <email@hidden> wrote:
Hi all,
I'm attemping in the WAR deployment of a almost empty App, just to see if it is not too complicated using WOLips.
After some digging in apple guides, I decide to look at the build.xml file and I found out the ssdd target.
I've followed the step to enable this target and finally I've compiled as ssdd. Ok, I've checked what it copies in the WEB-INF/ directory and it seems to me that it is the correct tree showed in
http://developer.apple.com/documentation/WebObjects/JSP_and_Servlets/Servlets/chapter_2_section_6.html
I've installed tamcat 5 and I've setted up my app following the directive in
http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Tomcat+Deployment
<http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Tomcat+Deployment>
after this, I lunch the app and in the logs/catalina.out file there is this error:
Found MainBundle at: /Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/DeployOnWar.woa
Classpath for WebObjects classloader is /Applications/apache- tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Resources/Java/:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/DeployOnWar.woa/Contents/Resources/Java/deployonwar.jar:/Applications/apache-
tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/Applications/apache- tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/Applications/apache-
tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERJars.framework/Resources/Java/icu4j_2_8.jar:/Applications/apache- tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERJars.framework/Resources/Java/icu4jdocs_2_8.jar:/Applications/apache-
tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERJars.framework/Resources/Java/junit.jar:/Applications/apache- tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERJars.framework/Resources/Java/log4j-
1.2.14.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaWOJSPServlet.framework/Resources/Java/javawojspservlet.jar:/Applications/apache-tomcat-5.5.25/webapps/DeployOnWar/WEB-INF//Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/Library/WebObjects/Extensions/axis-ant.jar:/Library/WebObjects/Extensions/axis.jar:/Library/WebObjects/Extensions/commons-discovery.jar:/Library/WebObjects/Extensions/commons-logging.jar:/Library/WebObjects/Extensions/jaxrpc.jar:/Library/WebObjects/Extensions/log4j-1.2.8.jar:/Library/WebObjects/Extensions/saaj.jar:/Library/WebObjects/Extensions/wsdl4j.jar:/Library/WebObjects/Extensions/
[2007-10-31 16:48:11 CET] <main> Loaded items: {}
[2007-10-31 16:48:11 CET] <main> Starting up: er.prototypes.ERPrototypes
[2007-10-31 16:48:11 CET] <main> Loaded items: {}
[2007-10-31 16:48:11 CET] <main> Starting up: er.extensions.ERXExtensions
[2007-10-31 16:48:11 CET] <main> Started initialization: er.extensions.ERXExtensions
[2007-10-31 16:48:11 CET] <main> Initialized : er.extensions.ERXExtensions
[2007-10-31 16:48:11 CET] <main> Started initialization: er.prototypes.ERPrototypes
[2007-10-31 16:48:11 CET] <main> Initialized : er.prototypes.ERPrototypes
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WODefaultUndoStackLimit=10
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> NSProjectSearchPath=("..")
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOGenerateWSDL=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOMaxHeaders=200
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOCachingEnabled=false
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOFrameworksBaseURL=/WebObjects/Frameworks
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAllowRapidTurnaround=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAllowsConcurrentRequestHandling=false
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAllowsCacheControlHeader=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOSMTPHost=smtp
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAcceptMalformedCookies=false
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOContextClassName=com.webobjects.jspservlet.WOServletContext
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOMissingResourceSearchEnabled=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOSessionStoreClassName=com.webobjects.jspservlet.WOServletSessionStore
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WODebuggingEnabled=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WODisplayExceptionPages=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOStatisticsStoreSessionMax=50
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAutoOpenClientApplication=false
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAdaptorURL= http://localhost//DeployOnWar/WebObjects
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOApplicationBaseURL=/WebObjects
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOAutoOpenInBrowser=false
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> WOIncludeCommentsInResponse=true
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> ------------------------
<DeployOnWar>[2007-10-31 16:48:11 CET] <main> NSBundle is unable to find " ExtensionsForResources.plist" in the main bundle. Ignoring optional configuration file.
<DeployOnWar>[2007-10-31 16:48:12 CET] <main> Cannot use rapid turnaround. Please start Xcode and open the project for this application.
java.lang.reflect.InvocationTargetException
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:585)
at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:415)
at com.webobjects.jspservlet.WOServletAdaptor.initStatics (WOServletAdaptor.java:78)
at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:629)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start (StandardContext.java:4230)
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:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
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:585)
at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: com.webobjects.foundation.NSForwardException [java.lang.NullPointerException ] null: <Application> failed instantiation. Exception thrown :
java.lang.NullPointerException: null
at com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:567)
at com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:581)
at com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:411)
... 34 more
- Marking servlet WOServletAdaptor as unavailable
- Servlet /DeployOnWar threw load() exception
javax.servlet.UnavailableException: Error initializing servlet adaptor: null
at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java :435)
at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.java:78)
at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:629)
at javax.servlet.GenericServlet.init (GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup (StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
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:920)
at org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
sorry if I've posted so many log rows.
the problem seems to be the failing of the Application class instantiation, but I've not do any changes from the one WOLips creates for a WOnderApplication.
Has someone faced this kind of problem before?
A couple of info:
I've a valid deploy license (I've asked to my boss the content of the /System/Library/Frameworks/JavaWebObjects.framework/Resources/License.key file on our Mac OSX Server, but I don't know of it is what I need, there's few documentation about this...)
I've created a file LICENSE in my project, containing the license string, and the I've made the build.xml to copy it in WEB-INF.
The app is the empty one, generated by WOLips while creating a WonderApplication, no changes in Properties.
Thank you for every helps!
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden