Hi! Thank you for your response.
Yes I think so, because in the project properties all checkboxes for embedding
frameworks are checked and grayed out, since it is a servlet deployment.
Bundleless builds result in the same errors, except that I cannot run my
WOApplication inside eclipse anymore (but I can build the war file and the
deployment still fails), I get the following error:
[2014-12-11 9:32:46 CET] <main> java.lang.ExceptionInInitializerError
at
er.extensions.appserver.ERXApplication.createResourceManager(ERXApplication.java:1090)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:841)
at
er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:30)
at
er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1097)
at your.app.Application.<init>(Application.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:374)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:866)
at your.app.Application.main(Application.java:11)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: 9
at java.lang.String.substring(String.java:1907)
at
com.webobjects._ideservices._WOAntProject.antProjectAtPath(_WOAntProject.java:62)
at
com.webobjects._ideservices._WOProject.ideProjectAtPath(_WOProject.java:118)
at
com.webobjects.appserver._private.WOProjectBundle._isProjectBundlePath(WOProjectBundle.java:226)
at
com.webobjects.appserver._private.WOProjectBundle._projectsInDirectory(WOProjectBundle.java:284)
at
com.webobjects.appserver._private.WOProjectBundle._WOAllProjects(WOProjectBundle.java:459)
at
com.webobjects.appserver._private.WOProjectBundle.projectBundleForProject(WOProjectBundle.java:493)
at
com.webobjects.appserver._private.WODeployedBundle.projectBundle(WODeployedBundle.java:807)
at
com.webobjects.appserver.WOResourceManager._bundleWithNSBundle(WOResourceManager.java:187)
at
com.webobjects.appserver.WOResourceManager._locateBundleForFrameworkNamed(WOResourceManager.java:208)
at
com.webobjects.appserver.WOResourceManager._cachedBundleForFrameworkNamed(WOResourceManager.java:233)
at
com.webobjects.appserver.WOResourceManager._initFrameworkProjectBundles(WOResourceManager.java:254)
at
com.webobjects.appserver.WOResourceManager.<init>(WOResourceManager.java:69)
at
er.extensions.appserver.ERXResourceManager.<init>(ERXResourceManager.java:48)
at
er.extensions.appserver.ERXApplication.createResourceManager(ERXApplication.java:1090)
at
com.webobjects.appserver.WOApplication.resourceManager(WOApplication.java:1663)
at
er.extensions.foundation.ERXFileUtilities.inputStreamForResourceNamed(ERXFileUtilities.java:627)
at
er.extensions.foundation.ERXFileUtilities.readPropertyListFromFileInFramework(ERXFileUtilities.java:820)
at
er.extensions.appserver.ERXResourceManager._additionalMimeTypes(ERXResourceManager.java:405)
at
er.extensions.appserver.ERXResourceManager.<clinit>(ERXResourceManager.java:46)
... 13 more
I keep on investigating... Thanks.
Anthonin Lizé
De : Theodore Petrosky [mailto:[email protected]]
Envoyé : Wednesday, December 10, 2014 5:11 PM
À : Lize Anthonin (@JCOMMOPS)
Cc : WebObjects-Dev
Objet : Re: Deploying issue
this is just a guess!
Are you embedding all frameworks?
select the project and get info look in WOLips Deployment (you want to embed
all your frameworks)
and what about bundleless builds?
On Dec 10, 2014, at 10:26 AM, Lize Anthonin (@JCOMMOPS) <[email protected]
<mailto:[email protected]> > wrote:
Hello everyone,
I am developing some webobjects(wonder) applications and when I want to deploy
them on a linux server, within a tomcat, I get this error (HelloWorld examples
for simplicity) :
Dec 09 12:51:37 HelloWorld[-1] WARN NSLog - Failed to get localhost address
Dec 09 12:51:37 HelloWorld[-1] WARN NSLog - <WOApplication>: Cannot be
initialized.java.net.UnknownHostException: <my_host>: <my_host>: Name or
service not known
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:421)
at
com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.java:95)
at
com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:652)
at
er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.java:66)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5231)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5518)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.webobjects.foundation.NSForwardException
[java.net.UnknownHostException] <my_host>: Name or service not
known:<your.app.Application> failed instantiation. Exception thrown :
com.webobjects.foundation.NSForwardException [java.net.UnknownHostException]
<my_host>: Name or service not known:<WOApplication>: Cannot be initialized.:
<WOApplication>: Cannot be initialized.
at
com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:632)
at
com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:646)
at
com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:634)
... 25 more
Caused by: java.net.UnknownHostException: <my_host>: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:811)
at
er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:30)
at
er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1097)
at your.app.Application.<init>(Application.java:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at
com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.java:642)
... 26 more
It works fine on a local tomcat (I develop under Ubuntu), but not on my server
(tomcat under RedHat Enterprise). Do you guys have any idea about what is going
on ? Maybe I miss a configuration property, or maybe it is caused by a network
configuration ? Other tomcat apps work (like tomcat manager).
On another subject, because of some work constraints, I try do work under
windows and everything is fine, I can run my Wonder Application inside eclipse
but when I try to launch it on a local tomcat, I get the following exception:
java.lang.IllegalArgumentException:
<com.webobjects.appserver._private.WOComponentDefinition> Class 'Main' exists
but is not a subclass of WOComponent.
I already encountered this error (only on windows) an fixed it with something
I found in the mailing archives in order to specify the right main class:
_NSUtilities.setClassForName(Main.class, Main.class.getSimpleName());
But this time, nothing seems to change.
Thanks for your help.
Regards,
Anthonin LIZÉ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected]
<mailto:[email protected]> )
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
<https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
This email sent to [email protected] <mailto:[email protected]>
Cliquez ici
<https://www.mailcontrol.com/sr/CFVpCV9lc7jGX2PQPOmvUkES9S2ONzCW8zSVrVFuXgxPQ4TpBQnc24BKd70K5gHEsc5ceY9JPkP1JTd!1uc+!w==>
si ce message est indésirable (pourriel).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]