• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Starting WL 5.1 after deploying an Entity bean

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot seem to figure out why my WL sever will not start after creating my entity bean. Everything seems to be in order, but I can't make sense of the error on startup of WL... Any help?
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.VerifyError: (class: com/
mm/enterprise/party/pparty/PartyEJBHomeImpl, method: create signature: (ILjava/l
ang/String;Ljava/lang/String Lcom/mm/enterprise/party/pparty/Party Wrong retu
rn type in function
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at java.beans.Beans.instantiate(Beans.java:211)
at java.beans.Beans.instantiate(Beans.java:55)
at weblogic.ejb.internal.EJBDeploymentImpl.createBeanHome(EJBDeploymentI
mpl.java:527)
at weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:565)
at weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:34
9)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:316)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:239)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
java.lang.VerifyError: (class: com/mm/enterprise/party/pparty/PartyEJBHomeImpl,
method: create signature: (ILjava/lang/String;Ljava/lang/String Lcom/mm/enterpr
ise/party/pparty/Party Wrong return type in function
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at java.beans.Beans.instantiate(Beans.java:211)
at java.beans.Beans.instantiate(Beans.java:55)
at weblogic.ejb.internal.EJBDeploymentImpl.createBeanHome(EJBDeploymentI
mpl.java:527)
at weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:565)
at weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:34
9)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:316)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:239)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It may help to post some of the source you have used to get this error. For example, the xml files you used to generate the bean, and/or the source code.
 
Dana Spice
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Below are the two deployment XML files. I would post code, but the EJB is pretty much a generic one created via visual cafe. The error occurred during WebLogic's startup...
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Party</ejb-name>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/partyPool</res-ref-name>
<jndi-name>weblogic.jdbc.jts.partyPool</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>Party</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>
<enterprise-beans>
<entity>
<description></description>
<ejb-name>Party</ejb-name>
<home>com.mm.enterprise.party.pparty.PartyHome</home>
<remote>com.mm.enterprise.party.pparty.Party</remote>
<ejb-class>com.mm.enterprise.party.pparty.PartyEJB</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>com.mm.enterprise.party.pparty.PartyPK</prim-key-class>
<reentrant>false</reentrant>
<resource-ref>
<res-ref-name>jdbc/partyPool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Party</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Diana,
This kind of exception is raised when one or more classes used by your bean have changed. The server could deploy the bean as there was no problem with the bean per se. But, some file change was not reflected in your bean.
Ashutosh

Originally posted by Dana Spice:
I cannot seem to figure out why my WL sever will not start after creating my entity bean. Everything seems to be in order, but I can't make sense of the error on startup of WL... Any help?
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: java.lang.VerifyError: (class: com/
mm/enterprise/party/pparty/PartyEJBHomeImpl, method: create signature: (ILjava/l
ang/String;Ljava/lang/String Lcom/mm/enterprise/party/pparty/Party Wrong retu
rn type in function
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at java.beans.Beans.instantiate(Beans.java:211)
at java.beans.Beans.instantiate(Beans.java:55)
at weblogic.ejb.internal.EJBDeploymentImpl.createBeanHome(EJBDeploymentI
mpl.java:527)
at weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:565)
at weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:34
9)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:316)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:239)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
java.lang.VerifyError: (class: com/mm/enterprise/party/pparty/PartyEJBHomeImpl,
method: create signature: (ILjava/lang/String;Ljava/lang/String Lcom/mm/enterpr
ise/party/pparty/Party Wrong return type in function
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:241)
at java.beans.Beans.instantiate(Beans.java:211)
at java.beans.Beans.instantiate(Beans.java:55)
at weblogic.ejb.internal.EJBDeploymentImpl.createBeanHome(EJBDeploymentI
mpl.java:527)
at weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:565)
at weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:34
9)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:316)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:239)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)


 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic