Re: NullPointerException "Could not publish to Server" from Eclipse
Hi Ziplies, that is good news. Please let us know if you have other problems. Ziplies wrote: Hi! Thx to all who tried to help me but I found my very VERY stupid mistake. As I said, I tried with every VM, especially the JDK5. Chaned every path and HOME variable etc. pp. BUT what I did not think of was that I had hardcoded the -vm in the eclipse.ini (to fix an m2eclipse error). And that pointed to JDK6. I'm so sorry I didn't remember that. After changing to JDK5 the geronimo-web finally got created. Again my appreciation for the help. Regards Tim McConnell-2 wrote: Hi Ziplies, If you've already tried with a 1.5 JRE then I'll walk you through the same steps (I did with Dave) to uncover your problem. I'll need to get a zipped version of your Eclipse installation directory, which we don't want to exchange via this mailing list. So, I'll contact you offline so we can work out the details of this exchange. This may seem like an odd request, but it'll save us a LOT of time, and hopefully some frustration on your part. Thanks Ziplies wrote: Hi, I am currently having the exact same problem as described here. Of course I read and tried everything with Java5 but nothing changed. The only difference I have is that I use Eclipse Ganymede with GEP2.1.1. Referencing the Server, geronimo-tomcat.2.1.1, works fine. It starts, I can access it, the console, everything wonderful. But if I create a dynweb-project it does not create the geronimo-web.xml and throws NullPointerExceptions if I try to deploy to the server, even if if create the geronimo-web.xml myself. I tried to be clever and downloaded and extracted eclipse 3.3.2. Installed WTP and so on over the Update Sites and wanted to again create a DynWeb Project. But the same thing happened. No geronimo-web.xml but Server gets connected correctly and starts and everything. I tried several Eclipse Versions, clean installs, clean workspaces, no old plugins, metadata or configurations. I hope anybody can help me, because I am trying for three days know and my nerves are on the bring of collapse. I thank anyone in advance. If more information is needed, just ask! Regards Tim McConnell-2 wrote: Hello everyone, after working with Dave off-line over the weekend we discovered that he was using Java 1.6 instead of Java 1.5. Once he switched to Java 1.5 the GEP starting functioning as designed. It seems that we can probably be more clear about this in our GEP documentation. For example, we say that we prereq Java 1.5, but we don't explicitly state that we do not yet support Java 1.6. I shall open a documentation JIRA to make these changes. Thanks everyone for assisting.. Dave Syer wrote: I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a basic HelloWorld application created from File->New... has the same problem. An error shows up in Eclipse's errors view: java.lang.NullPointerException at org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) at org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Anyone know where that comes from? How to fix it? The server is running (I can visit its home page and log into the admin console and everything). -- Thanks, Tim McConnell -- Thanks, Tim McConnell -- Thanks, Tim McConnell
Re: NullPointerException "Could not publish to Server" from Eclipse
Hi! Thx to all who tried to help me but I found my very VERY stupid mistake. As I said, I tried with every VM, especially the JDK5. Chaned every path and HOME variable etc. pp. BUT what I did not think of was that I had hardcoded the -vm in the eclipse.ini (to fix an m2eclipse error). And that pointed to JDK6. I'm so sorry I didn't remember that. After changing to JDK5 the geronimo-web finally got created. Again my appreciation for the help. Regards Tim McConnell-2 wrote: > > Hi Ziplies, If you've already tried with a 1.5 JRE then I'll walk you > through the > same steps (I did with Dave) to uncover your problem. I'll need to get a > zipped > version of your Eclipse installation directory, which we don't want to > exchange > via this mailing list. So, I'll contact you offline so we can work out the > details of this exchange. This may seem like an odd request, but it'll > save us a > LOT of time, and hopefully some frustration on your part. Thanks > > Ziplies wrote: >> Hi, >> >> I am currently having the exact same problem as described here. Of course >> I >> read and tried everything with Java5 but nothing changed. The only >> difference I have is that I use Eclipse Ganymede with GEP2.1.1. >> Referencing the Server, geronimo-tomcat.2.1.1, works fine. It starts, I >> can >> access it, the console, everything wonderful. >> >> But if I create a dynweb-project it does not create the geronimo-web.xml >> and >> throws NullPointerExceptions if I try to deploy to the server, even if if >> create the geronimo-web.xml myself. >> >> I tried to be clever and downloaded and extracted eclipse 3.3.2. >> Installed >> WTP and so on over the Update Sites and wanted to again create a DynWeb >> Project. But the same thing happened. No geronimo-web.xml but Server gets >> connected correctly and starts and everything. >> >> I tried several Eclipse Versions, clean installs, clean workspaces, no >> old >> plugins, metadata or configurations. I hope anybody can help me, because >> I >> am trying for three days know and my nerves are on the bring of collapse. >> >> I thank anyone in advance. If more information is needed, just ask! >> >> >> Regards >> >> >> >> Tim McConnell-2 wrote: >>> Hello everyone, after working with Dave off-line over the weekend we >>> discovered >>> that he was using Java 1.6 instead of Java 1.5. Once he switched to Java >>> 1.5 the >>> GEP starting functioning as designed. It seems that we can probably be >>> more clear >>> about this in our GEP documentation. For example, we say that we prereq >>> Java 1.5, >>> but we don't explicitly state that we do not yet support Java 1.6. I >>> shall >>> open a >>> documentation JIRA to make these changes. Thanks everyone for >>> assisting.. >>> >>> Dave Syer wrote: I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a basic HelloWorld application created from File->New... has the same problem. An error shows up in Eclipse's errors view: java.lang.NullPointerException at org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) at org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Anyone know where that comes from? How to fix it? The server is running (I can visit its home page and log into the admin console and everything). >>> -- >>> Thanks, >>> Tim McConnell >>> >>> >> > > -- > Thanks, > Tim McConnell > > -- View this message in context: http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18788948.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: NullPointerException "Could not publish to Server" from Eclipse
Hi Ziplies, If you've already tried with a 1.5 JRE then I'll walk you through the same steps (I did with Dave) to uncover your problem. I'll need to get a zipped version of your Eclipse installation directory, which we don't want to exchange via this mailing list. So, I'll contact you offline so we can work out the details of this exchange. This may seem like an odd request, but it'll save us a LOT of time, and hopefully some frustration on your part. Thanks Ziplies wrote: Hi, I am currently having the exact same problem as described here. Of course I read and tried everything with Java5 but nothing changed. The only difference I have is that I use Eclipse Ganymede with GEP2.1.1. Referencing the Server, geronimo-tomcat.2.1.1, works fine. It starts, I can access it, the console, everything wonderful. But if I create a dynweb-project it does not create the geronimo-web.xml and throws NullPointerExceptions if I try to deploy to the server, even if if create the geronimo-web.xml myself. I tried to be clever and downloaded and extracted eclipse 3.3.2. Installed WTP and so on over the Update Sites and wanted to again create a DynWeb Project. But the same thing happened. No geronimo-web.xml but Server gets connected correctly and starts and everything. I tried several Eclipse Versions, clean installs, clean workspaces, no old plugins, metadata or configurations. I hope anybody can help me, because I am trying for three days know and my nerves are on the bring of collapse. I thank anyone in advance. If more information is needed, just ask! Regards Tim McConnell-2 wrote: Hello everyone, after working with Dave off-line over the weekend we discovered that he was using Java 1.6 instead of Java 1.5. Once he switched to Java 1.5 the GEP starting functioning as designed. It seems that we can probably be more clear about this in our GEP documentation. For example, we say that we prereq Java 1.5, but we don't explicitly state that we do not yet support Java 1.6. I shall open a documentation JIRA to make these changes. Thanks everyone for assisting.. Dave Syer wrote: I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a basic HelloWorld application created from File->New... has the same problem. An error shows up in Eclipse's errors view: java.lang.NullPointerException at org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) at org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Anyone know where that comes from? How to fix it? The server is running (I can visit its home page and log into the admin console and everything). -- Thanks, Tim McConnell -- Thanks, Tim McConnell
Re: NullPointerException "Could not publish to Server" from Eclipse
On Thu, Jul 31, 2008 at 8:33 AM, Ziplies <[EMAIL PROTECTED]> wrote: > > Hi, > > I am currently having the exact same problem as described here. Of course I > read and tried everything with Java5 but nothing changed. The only > difference I have is that I use Eclipse Ganymede with GEP2.1.1. > Referencing the Server, geronimo-tomcat.2.1.1, works fine. It starts, I can > access it, the console, everything wonderful. > > But if I create a dynweb-project it does not create the geronimo-web.xml > and > throws NullPointerExceptions if I try to deploy to the server, even if if > create the geronimo-web.xml myself. > > From this thread http://www.nabble.com/GEP%3A-NullPointerException-when-deploying-project-tp18052894s134p18052894.html I can tell you that the GEP is not supported for Ganymede. > I tried to be clever and downloaded and extracted eclipse 3.3.2. Installed > WTP and so on over the Update Sites and wanted to again create a DynWeb > Project. But the same thing happened. No geronimo-web.xml but Server gets > connected correctly and starts and everything. > > I tried several Eclipse Versions, clean installs, clean workspaces, no old > plugins, metadata or configurations. I hope anybody can help me, because I > am trying for three days know and my nerves are on the bring of collapse. > I don't know what's wrong with that, but I got Eclipse IDE for J2EE devs (you can download it here: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-win32.zip I got it working with the WAS CE Plugin (basically the same as GEP) and I got no problems at all. > I thank anyone in advance. If more information is needed, just ask! > > Regards > Hope this helps Luciano
Re: NullPointerException "Could not publish to Server" from Eclipse
Hi, I am currently having the exact same problem as described here. Of course I read and tried everything with Java5 but nothing changed. The only difference I have is that I use Eclipse Ganymede with GEP2.1.1. Referencing the Server, geronimo-tomcat.2.1.1, works fine. It starts, I can access it, the console, everything wonderful. But if I create a dynweb-project it does not create the geronimo-web.xml and throws NullPointerExceptions if I try to deploy to the server, even if if create the geronimo-web.xml myself. I tried to be clever and downloaded and extracted eclipse 3.3.2. Installed WTP and so on over the Update Sites and wanted to again create a DynWeb Project. But the same thing happened. No geronimo-web.xml but Server gets connected correctly and starts and everything. I tried several Eclipse Versions, clean installs, clean workspaces, no old plugins, metadata or configurations. I hope anybody can help me, because I am trying for three days know and my nerves are on the bring of collapse. I thank anyone in advance. If more information is needed, just ask! Regards Tim McConnell-2 wrote: > > Hello everyone, after working with Dave off-line over the weekend we > discovered > that he was using Java 1.6 instead of Java 1.5. Once he switched to Java > 1.5 the > GEP starting functioning as designed. It seems that we can probably be > more clear > about this in our GEP documentation. For example, we say that we prereq > Java 1.5, > but we don't explicitly state that we do not yet support Java 1.6. I shall > open a > documentation JIRA to make these changes. Thanks everyone for > assisting.. > > Dave Syer wrote: >> I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a >> basic >> HelloWorld application created from File->New... has the same problem. >> An >> error shows up in Eclipse's errors view: >> >> java.lang.NullPointerException >> at >> org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) >> at >> org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) >> at >> org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) >> at >> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) >> at >> org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) >> at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) >> at >> org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) >> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) >> >> >> Anyone know where that comes from? How to fix it? >> >> The server is running (I can visit its home page and log into the admin >> console and everything). > > -- > Thanks, > Tim McConnell > > -- View this message in context: http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18752630.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: NullPointerException "Could not publish to Server" from Eclipse
Hello everyone, after working with Dave off-line over the weekend we discovered that he was using Java 1.6 instead of Java 1.5. Once he switched to Java 1.5 the GEP starting functioning as designed. It seems that we can probably be more clear about this in our GEP documentation. For example, we say that we prereq Java 1.5, but we don't explicitly state that we do not yet support Java 1.6. I shall open a documentation JIRA to make these changes. Thanks everyone for assisting.. Dave Syer wrote: I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a basic HelloWorld application created from File->New... has the same problem. An error shows up in Eclipse's errors view: java.lang.NullPointerException at org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) at org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Anyone know where that comes from? How to fix it? The server is running (I can visit its home page and log into the admin console and everything). -- Thanks, Tim McConnell
Re: NullPointerException "Could not publish to Server" from Eclipse
I literally have a clean install of Eclipse (M20080221-1800 as per Ted's message) plus GEP (added from Servers View), plus nothing else. I would like to add some other stuff, but I'll stick with this until I get Geronimo working. The server starts fine. I can see the admin console. I can even start a web app if I create the deployment descriptor manually from your code sample you posted earlier. And, yes, the Target Runtime points to that server when I create the new project. As I said, the GEP facet is created, but no deployment descriptor. It's the same for an EJB project as well. Tim McConnell-2 wrote: > > Hi again Dave, I'm trying to understand why the wizards are not creating > the > Geronimo deployment plans automatically for you. Do you have something > other than > the GEP and the eclipse-jee-europa zip file in your Eclipse installation > ?? Does > the Geronimo server you have defined in the GEP start okay ?? And finally, > are > you using that as the "Target Runtime" when you create your project with > those > wizards (e.g., dynamic-web application) ?? > -- View this message in context: http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18173023.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: NullPointerException "Could not publish to Server" from Eclipse
Hi again Dave, I'm trying to understand why the wizards are not creating the Geronimo deployment plans automatically for you. Do you have something other than the GEP and the eclipse-jee-europa zip file in your Eclipse installation ?? Does the Geronimo server you have defined in the GEP start okay ?? And finally, are you using that as the "Target Runtime" when you create your project with those wizards (e.g., dynamic-web application) ?? Dave Syer wrote: Tim, I have the Eclipse version downloaded from the link posted earlier in this thread. It looks like it has all the JEE stuff (file downloaded was eclipse-jee-europa-winter-win32.zip - I tried on Linux as well, where obviously the filename is different). Attached is a dynamic web project created from the wizard (foo.zip). The GEP facet was attached, but no deployment descriptor is present. It probably doesn't tell you much. I did get another web app to deploy by copying your deployment descriptor verbatim. The GEP editor still didn't work on it (opened but not editable), but at least the app worked. Can you do the same magic now for an openejb-jar.xml (also not created by the wizard). I copied one from the samples in trunk, but that didn't work - same symptoms as the web case (cannot open in GEP, and NPE when it deploys). Thanks, Dave. Tim McConnell-2 wrote: Hi Dave, that message is benign. Would you be able to export your project from Eclipse and attach it (or email it to me) ?? Also, do you have the Eclipse prereq for the GEP (i.e., Eclipse IDE for Java EE Developers) ?? http://www.nabble.com/file/p18171886/foo.zip foo.zip -- Thanks, Tim McConnell
Re: NullPointerException "Could not publish to Server" from Eclipse
Tim, I have the Eclipse version downloaded from the link posted earlier in this thread. It looks like it has all the JEE stuff (file downloaded was eclipse-jee-europa-winter-win32.zip - I tried on Linux as well, where obviously the filename is different). Attached is a dynamic web project created from the wizard (foo.zip). The GEP facet was attached, but no deployment descriptor is present. It probably doesn't tell you much. I did get another web app to deploy by copying your deployment descriptor verbatim. The GEP editor still didn't work on it (opened but not editable), but at least the app worked. Can you do the same magic now for an openejb-jar.xml (also not created by the wizard). I copied one from the samples in trunk, but that didn't work - same symptoms as the web case (cannot open in GEP, and NPE when it deploys). Thanks, Dave. Tim McConnell-2 wrote: > > Hi Dave, that message is benign. Would you be able to export your project > from > Eclipse and attach it (or email it to me) ?? Also, do you have the Eclipse > prereq > for the GEP (i.e., Eclipse IDE for Java EE Developers) ?? > http://www.nabble.com/file/p18171886/foo.zip foo.zip > -- View this message in context: http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18171886.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: NullPointerException "Could not publish to Server" from Eclipse
Hi Dave, that message is benign. Would you be able to export your project from Eclipse and attach it (or email it to me) ?? Also, do you have the Eclipse prereq for the GEP (i.e., Eclipse IDE for Java EE Developers) ?? Dave Syer wrote: Thanks Tim, that got me started, at least. Still can't deploy my application, so don't go away! Updating the namespace as below means that I can open the descriptor with the GEP editor. But nothing I do to it seems to change the source code, so I'm not convinced it actually works yet. The wiki is out of date I guess because it shows version 1.0 of the schemas being used. So I wasn't using an invalid namespace (I even downloaded the schema to see if it told me anything), just the wrong one. I guess the tooling could do a better job of telling me what's going on there. As far as creating a new project, I won't attach anything because there is only one entry (and it's a warning not an error): "More than one declaration found for action type INSTALL of projet facet org.apache.geronimo.facet 1.2." Does that mean anything? What about adding descriptors to existing projects. Shouldn't there be a New->... menu for it or something? Dave. Tim McConnell-2 wrote: Hi Dave, actually that is significant. It means that one (or more) of the namespaces in your deployment descriptor is not valid. If you're using a simple dynamic web app, the namespaces at the top of the geronimo-web.xml should look something like this: http://geronimo.apache.org/xml/ns/deployment-1.2"; xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";> default test 1.0 car /test Also, the fact that you're not getting a geronimo-web.xml automatically is problematic. Could you attach the .log file from your workspace .metadata directory so we can see if you're getting any exceptions. Thanks -- Thanks, Tim McConnell
Re: NullPointerException "Could not publish to Server" from Eclipse
Thanks Tim, that got me started, at least. Still can't deploy my application, so don't go away! Updating the namespace as below means that I can open the descriptor with the GEP editor. But nothing I do to it seems to change the source code, so I'm not convinced it actually works yet. The wiki is out of date I guess because it shows version 1.0 of the schemas being used. So I wasn't using an invalid namespace (I even downloaded the schema to see if it told me anything), just the wrong one. I guess the tooling could do a better job of telling me what's going on there. As far as creating a new project, I won't attach anything because there is only one entry (and it's a warning not an error): "More than one declaration found for action type INSTALL of projet facet org.apache.geronimo.facet 1.2." Does that mean anything? What about adding descriptors to existing projects. Shouldn't there be a New->... menu for it or something? Dave. Tim McConnell-2 wrote: > > Hi Dave, actually that is significant. It means that one (or more) of the > namespaces in your deployment descriptor is not valid. If you're using a > simple > dynamic web app, the namespaces at the top of the geronimo-web.xml should > look > something like this: > > > http://geronimo.apache.org/xml/ns/deployment-1.2"; > > xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";> > > > default > test > 1.0 > car > > > /test > > > Also, the fact that you're not getting a geronimo-web.xml automatically is > problematic. Could you attach the .log file from your workspace .metadata > directory so we can see if you're getting any exceptions. Thanks > -- View this message in context: http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18168593.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: NullPointerException "Could not publish to Server" from Eclipse
Hi Dave, actually that is significant. It means that one (or more) of the namespaces in your deployment descriptor is not valid. If you're using a simple dynamic web app, the namespaces at the top of the geronimo-web.xml should look something like this: http://geronimo.apache.org/xml/ns/deployment-1.2"; xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";> default test 1.0 car /test Also, the fact that you're not getting a geronimo-web.xml automatically is problematic. Could you attach the .log file from your workspace .metadata directory so we can see if you're getting any exceptions. Thanks Dave Syer wrote: Yes, I am using Europa - Winter (although it doesn't make any difference if I use a different Europa). There was no geronimo-web.xml in any of the webapps I tried. I created one by hand from the HelloWorld I found on the wiki, but that didn't change the error. (Not sure if it's significant, but Eclipse cannot open this file in its default editor - there is an error there as well, and it falls back to text.) -- Thanks, Tim McConnell
Re: NullPointerException "Could not publish to Server" from Eclipse
Yes, I am using Europa - Winter (although it doesn't make any difference if I use a different Europa). There was no geronimo-web.xml in any of the webapps I tried. I created one by hand from the HelloWorld I found on the wiki, but that didn't change the error. (Not sure if it's significant, but Eclipse cannot open this file in its default editor - there is an error there as well, and it falls back to text.) -- View this message in context: http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18157341.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: NullPointerException "Could not publish to Server" from Eclipse
I tried to create a simple dynamic web project using Eclipse and noticed that geronimo-web.xml is not generated (I did choose to generate the file at the panels). Without the file, this exception could throw. Also, what configuration do we recommend users to launch Eclipse? I got OOM after a while. Lin On Fri, Jun 27, 2008 at 10:03 AM, Dave Syer <[EMAIL PROTECTED]> wrote: > > I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a basic > HelloWorld application created from File->New... has the same problem. An > error shows up in Eclipse's errors view: > > java.lang.NullPointerException >at > org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) >at > org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) >at > org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) >at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) >at > org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) >at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) >at > org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) >at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > > > Anyone know where that comes from? How to fix it? > > The server is running (I can visit its home page and log into the admin > console and everything). > -- > View this message in context: > http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18155922.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >
Re: NullPointerException "Could not publish to Server" from Eclipse
Do you have Europa Winter, Version: 3.3.2, Build id: M20080221-1800? It is available from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-jee-europa-winter-win32.zip. Ted Kirby On Fri, Jun 27, 2008 at 10:03 AM, Dave Syer <[EMAIL PROTECTED]> wrote: > > I can't start any web apps from Eclipse (Europa + GEP 2.1.1). Even a basic > HelloWorld application created from File->New... has the same problem. An > error shows up in Eclipse's errors view: > > java.lang.NullPointerException >at > org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:353) >at > org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:97) >at > org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:216) >at > org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669) >at > org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887) >at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874) >at > org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72) >at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > > > Anyone know where that comes from? How to fix it? > > The server is running (I can visit its home page and log into the admin > console and everything). > -- > View this message in context: > http://www.nabble.com/NullPointerException-%22Could-not-publish-to-Server%22-from-Eclipse-tp18155922s134p18155922.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >