facebook

Problems Deploying Enterprise Application Project to JBoss3

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #197965 Reply

    wilkerd1
    Member

    😕 I was able to deploy a web app successfully to jboss 3.2.2 RC2 through the enterprise application project (.ear), however, when I included the ejb project with a test session bean and re-deployed, everything broke. BTW – XDoclet ran fine on the ejb and created the ejb-jar.xml. When I deployed the second time with the ejb project goodies, my jsp that deployed previously with success no longer worked.

    HELP!!! Am I not setting the correct properties for XDoclet??? Any suggestions????

    Thanks!
    Daniel

    18:05:11,784 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.2RC2/server/default/deploy/TEST.ear
    18:05:11,794 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.2RC2/server/default/deploy/TEST.ear
    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Section: 7.10.5
    Warning: The remote interface must extend the javax.ejb.EJBObject interface.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public String getMessage() throws EJBException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public void ejbCreate() throws CreateException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public void ejbRemove() throws EJBException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public void ejbActivate() throws EJBException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public void ejbPassivate() throws EJBException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public void setSessionContext(SessionContext) throws EJBException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public native int hashCode()
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public final native Class getClass()
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public final void wait(long, int) throws InterruptedException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public final void wait() throws InterruptedException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public final native void wait(long) throws InterruptedException
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public boolean equals(Object)
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public String toString()
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public final native void notify()
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 WARN [verifier] EJB spec violation:
    Bean : TestSession
    Method : public final native void notifyAll()
    Section: 7.10.5
    Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

    18:05:11,985 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.2RC2/server/default/tmp/deploy/tmp44206TEST.ear-contents/TESTEJB.jar
    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:768)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy7.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
    at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:394)
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy5.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
    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:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy6.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:383)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:290)
    at org.jboss.Main.boot(Main.java:150)
    at org.jboss.Main$1.run(Main.java:388)
    at java.lang.Thread.run(Thread.java:536)
    18:05:12,005 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.2RC2/server/default/deploy/TEST.ear
    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:768)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy7.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
    at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:394)
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy5.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
    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:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy6.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:383)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:290)
    at org.jboss.Main.boot(Main.java:150)
    at org.jboss.Main$1.run(Main.java:388)
    at java.lang.Thread.run(Thread.java:536)
    18:05:12,005 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@ad5ed6ad{ url=file:/C:/jboss-3.2.2RC2/server/default/deploy/TEST.ear, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:768)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy7.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
    at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:394)
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy5.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
    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:324)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy6.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:383)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:290)
    at org.jboss.Main.boot(Main.java:150)
    at org.jboss.Main$1.run(Main.java:388)
    at java.lang.Thread.run(Thread.java:536)
    18:05:12,015 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation ‘checkIncompleteDeployments()’
    Cause: Incomplete Deployment listing:
    Packages waiting for a deployer:
    <none>
    Incompletely deployed packages:
    [org.jboss.deployment.DeploymentInfo@ad5ed6ad { url=file:/C:/jboss-3.2.2RC2/server/default/deploy/TEST.ear }
    deployer: org.jboss.deployment.EARDeployer@23bdd1
    status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
    state: FAILED
    watch: file:/C:/jboss-3.2.2RC2/server/default/deploy/TEST.ear
    lastDeployed: 1061417111855
    lastModified: 1061417111784
    mbeans:
    ]MBeans waiting for classes:
    <none>
    MBeans waiting for other MBeans:
    <none>

    #197966 Reply

    Scott Anderson
    Participant

    Daniel,

    HELP!!! Am I not setting the correct properties for XDoclet??? Any suggestions????

    You’re guess is a good one. I’d imagine that you don’t have XDoclet configured properly for either your project structure, the package names you’ve chosen, or the EJB name you’ve chosen. We’ve updated the documentation on the website in the user guide. In the Tasks section there’s a write-up on creating an EJB and using XDoclet to generate the interfaces and deployment descriptors. I’d give it a read and it should shed some light on the issue. The top level of the documentation is at:
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp

    In the default settings of XDoclet, a source directory called ‘src’ is expected, you’re ejb package should end with .ejb, and your main bean class should end with Bean. All this is configurable, but that would be a good starting point.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problems Deploying Enterprise Application Project to JBoss3

You must be logged in to post in the forum log in