Hello;

I was able to get the stack trace by deploying development code and I get the following:

MainBundle will be set to dwtm
Dec 15 10:53:59 dwtm[486] - com.webobjects.examples.utilities.WXFileUtilities.loadConfigAndMergeFile s - ENTEREDs Dec 15 10:53:59 dwtm[486] - com.webobjects.examples.utilities.WXFileUtilities.loadConfigAndMergeFile s - systemPath:null Dec 15 10:53:59 dwtm[486] - com.webobjects.examples.utilities.WXFileUtilities.loadConfigAndMergeFile s - localConfigPath:jar:file:///Developer/Servers/tomcat5028/webapps/ dwtm/WEB-INF/lib/dwtm.jar!/Resources/SPPolicyConfig.plist Dec 15 10:53:59 dwtm[486] - com.webobjects.examples.utilities.WXFileUtilities.loadConfigAndMergeFile s - globalConfigPath:jar:file:///Developer/Servers/tomcat5028/webapps/ dwtm/WEB-INF/lib/dwtm.jar!/Resources/SPPolicyConfig.plist Dec 15 10:53:59 dwtm[486] - com.webobjects.examples.utilities.WXFileUtilities.loadFileAtPath - WXFileUtilities: loadConfigFileAtPath: failed for path:jar:file:/// Developer/Servers/tomcat5028/webapps/dwtm/WEB-INF/lib/dwtm.jar!/ Resources/SPPolicyConfig.plist

I unzipped the dwtm.jar file and the file SPPolicyConfig.plist exists in the Resources directory inside the jar file. Is this an error that points to something else and not that the application cannot find the file?

Don
On Dec 15, 2007, at 10:32 PM, Don Lindsay wrote:

Hello;

I was able to get past the previous error with the license by installing the latest WebObjects from the XCode 2.5 distribution. Now I get the following when I attempt to open the application in the browser:

Classes and frameworks will be loaded out of the WEB-INF/lib and WEB-INF/classes directories.
MainBundle will be set to dwtm
- Application project found: Will locate resources in '' rather than '/Developer/Servers/tomcat5028/webapps/dwtm/WEB-INF/lib/ dwtm.jar' .
- <WOApplication>.primeApplication: The Application name is dwtm
- The URL for webserver connect through Servlet Container is:
http://uranus.local/dwtm/WebObjects/dwtm.woa
-
- Waiting for requests...
- <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
java.lang.NullPointerException

There is no further stack trace. If I could find out where this is occurring I could fix the problem. When I run the application from within the development environment I do not experience any problems, only once it has been deployed to tomcat does the error display itself.

I have checked out the class path, there are no duplicate classes or jars in the classpath.

Don

On Dec 15, 2007, at 5:15 PM, Daniele Corti wrote:



2007/12/15, Don Lindsay <[EMAIL PROTECTED]>:
Hello;

Yes I am using WebObjects 5.3 on Tiger. And tomcat 5.0.18, I have also tried tomcat 5.5.15

Wolips version is not old?
I'm confused, I really had any kind of problem while deploying a wonder app, but not this....

Don

On Dec 15, 2007, at 5:04 PM, Daniele Corti wrote:



2007/12/15, Don Lindsay < [EMAIL PROTECTED]>:
I have checked the license files on 3 machines in the /System/ Library/Frameworks/JavaWebObjects.framework/Resources/License.key file. It there another location for the License Key file?

Don

No, it is the correct path. Are you using wo 5.3? The path refer to this version I don't know if it has changed in Leopard or in wo 5.4

Are you using Wonder? if so, have a look in http:// wiki.objectstyle.org/confluence/display/WONDER/Creating+a+wonder +app+to+deploy+as+a+servlet


On Dec 15, 2007, at 4:37 PM, Daniele Corti wrote:



2007/12/15, Don Lindsay < [EMAIL PROTECTED]>:
Hello;

I am trying to deploy on tomcat with a war file. Everything builds correctly but I get an error : com.webobjects.foundation.NSForwardException [java.lang.IllegalStateException] <WOApplication> The License key B-323-WWB-170-QDA-349-FWZ-001-LZW-340 is not for this product version.: <WOApplication>: Cannot be initialized.: < com.webobjects.appserver.WOApplication> failed instantiation. Exception thrown : com.webobjects.foundation.NSForwardException [java.lang.IllegalStateException] <WOApplication> The License key B-323-WWB-170-QDA-349-FWZ-001-LZW-340 is not for this product version.: <WOApplication>: Cannot be initialized.: <WOApplication> The License key B-323-WWB-170-QDA-349-FWZ-001- LZW-340 is not for this product version.: <WOApplication>: Cannot be initialized.

I have tried two different keys both with the same result. Any ideas? Have I done something wrong?

Are you sure this is your license? Its form seems different from the one I used (I really don't remember the - )

thanks

Don
On Nov 2, 2007, at 6:43 AM, Daniele Corti wrote:



2007/10/31, Dov Rosenberg < [EMAIL PROTECTED]>:
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 PROTECTED]> 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.WOServletSession Store <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._explainInstantiationExcept ion(_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 PROTECTED]

--
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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pccdonl% 40mac.com

This email sent to [EMAIL PROTECTED]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ( Webobjects-dev@lists.apple.com )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae% 40gmail.com

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
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




--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
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




--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pccdonl% 40mac.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to