[ 
https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971124#action_12971124
 ] 

Han Hong Fang commented on GERONIMODEVTOOLS-689:
------------------------------------------------

Hi again,

after a little bit of debugging, it seems to me that the problem is that I've 
deleted ejbModule/META-INF/openejb-jar.xml in the SampleEJB project, as is 
suggested in

https://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html


Since that file is gone, the check
file.getName().equals(GeronimoUtils.OPENEJB_PLAN_NAME) && file.exists()
in DependencyHelper Line 538 is false, so "environment" in DependencyHelper 
Line 442 is never set for the EJB project.

Did I misread the instructions to delete ejbModule/META-INF/openejb-jar.xml?

By the way, a NullpointerException also occurs if one adds a "Utility Project" 
to the EAR (since there's only handling for Web, EJB, EAR, RAR and AppClient 
modules).

Maybe I'm simply misunderstanding how Geronimo works (I've been using JBoss for 
a long time, and have just started using Geronimo).

Best regards,
Martin

> NullPointerException when publishing with Geronimo Eclipse Plugin v2.1.7
> ------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-689
>                 URL: 
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-689
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 2.1.7
>            Reporter: Han Hong Fang
>            Assignee: Delos Dai
>
> Hi everybody,
> I just updated to Geronimo Eclipse Plugin v2.1.7, and now I get a 
> NullpointerException whenever I try to publish to the server:
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.put(Unknown Source)
> at 
> org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:442)
> at 
> org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:109)
> at 
> org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:243)
> at 
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:948)
> at 
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
> at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
> at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> The project I used for testing is the one described here:
> https://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html
> The exception disappears when switching back to 2.1.6 of the eclipse plugin
> I'm using Eclipse 3.6.1
> Any ideas?
> Martin

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to