|
 |
j2ee thread: EJB deploy
Message #1 by "riyaz" <riyaz707@y...> on Tue, 19 Feb 2002 07:19:28
|
|
hi riyaz,
From what is displayed i feel its some problem thats associated with the jar
file. As far as what i could gather from the mail, you are trying to run the
example files of WL 5.1. The exception is a Deployment Exception so you need
to check out the jar file. I would suggest you to create a new jar file from
scratch and re deploy and see what happens. Also check out if the packages
for the classes match and they are imported.
cordially
easwar
----- Original Message -----
From: "riyaz" <riyaz707@y...>
To: "Java 2 Enterprise Edition" <j2ee@p...>
Sent: 19 February, 2002 7:19 AM
Subject: [j2ee] EJB deploy
> Hello there,
>
> I'm getting the following error while deploying even for sample EJB in
> BEAWeblogic5.1.
> Pl'z go through the error and suggest me some solution for that.
> reply me as early as possible....it's urgent....
>
> thanx and regards,
> Riyaz
>
>
>
> /********************************************************************
>
> Sat Feb 19 12:10:09 EST 2000:<E> <EJB> Could not
> deploy: 'C:/weblogic/examples/e
> jb/basic/statefulSession/build/std_ejb_basic_statefulSession.jar': file is
> not a
> valid jar file, or does not
> contain a valid bean
>
> weblogic.ejb.common.DeploymentException: DeploymentException opening JAR
> file C:
>
\weblogic\examples\ejb\basic\statefulSession\build\std_ejb_basic_statefulSe
> ssion.jar; nested exception is:weblogic.ejb.deployment.JarLoadException -
with nested exception:
> [weblogic.ejb.common.DeploymentException: Problem creating deployment
>
C:/weblogic/examples/ejb/basic/statefulSession/build/std_ejb_basic_statefulS
ession.jar from
>
C:\weblogic\examples\ejb\basic\statefulSession\build\std_ejb_basic_statefulS
ession.jar; nested exception is:
> java.lang.ClassCastException: com.sun.xml.tree.TextNode]
> weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/examples/ejb/basic/statefulSession/build/std_ejb_basic_statefulS
ession.jar
> from
C:\weblogic\examples\ejb\basic\statefulSession\build\std_ejb_basic_statefulS
ession.jar; nested exception is:
> java.lang.ClassCastException: com.sun.xml.tree.TextNode
java.lang.ClassCastException: com.sun.xml.tree.TextNode
> at weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName
> (DOMUtils.java:204)
> at weblogic.xml.dom.DOMUtils.getOptionalElementByTagName
> (DOMUtils.java:170)
> at weblogic.xml.dom.DOMUtils.getOptionalValueByTagName
> (DOMUtils.java:97)
>
> at weblogic.ejb.deployment.dd.EJBReadDOM.getDescriptionValue
> (EJBReadDOM.
> java:404)
> at
weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit
> (Desc
> riptorLoader.java:200)
> at weblogic.ejb.internal.EJBJarLoader.initialize
> (EJBJarLoader.java:113)
> at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:85)
> at weblogic.ejb.internal.EJBJarDeployment.setupJar
> (EJBJarDeployment.java
> :344)
> at weblogic.ejb.internal.EJBJarDeployment.setup
> (EJBJarDeployment.java:21
> 1)
> at weblogic.ejb.internal.EJBJarDeployment.setup
> (EJBJarDeployment.java:18
> 2)
> at weblogic.ejb.internal.EJBJarDeployment.setup
> (EJBJarDeployment.java:16
> 4)
> at weblogic.ejb.internal.EJBDeploymentImpl.<init>
> (EJBDeploymentImpl.java
> :172)
> at weblogic.ejb.internal.EJBJarDeployment.<init>
> (EJBJarDeployment.java:1
> 22)
> at weblogic.ejb.internal.EJBJarDeployment.<init>
> (EJBJarDeployment.java:1
> 12)
> at weblogic.ejb.internal.EJBManagerImpl.deploy
> (EJBManagerImpl.java:305)
> at weblogic.ejb.internal.EJBManagerImpl.deployBeans
> (EJBManagerImpl.java:
> 629)
> at weblogic.ejb.internal.EJBManagerImpl.<init>
> (EJBManagerImpl.java:242)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1295)
> at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
> 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)
> --------------- nested within: ------------------
> weblogic.ejb.deployment.JarLoadException - with nested exception:
> [weblogic.ejb.common.DeploymentException: Problem creating deployment
>
C:/weblogic/examples/ejb/basic/statefulSession/build/std_ejb_basic_statefulS
ession.ja
> r from
>
C:\weblogic\examples\ejb\basic\statefulSession\build\std_ejb_basic_statefulS
ession.jar; nested exception is:
> java.lang.ClassCastException: com.sun.xml.tree.TextNode]
> at weblogic.ejb.internal.EJBManagerImpl.deploy
> (EJBManagerImpl.java:313)
> at weblogic.ejb.internal.EJBManagerImpl.deployBeans
> (EJBManagerImpl.java:
> 629)
> at weblogic.ejb.internal.EJBManagerImpl.<init>
> (EJBManagerImpl.java:242)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1295)
> at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
> 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)
>
> Sat Feb 19 12:10:09 EST 2000:<I> <EJB> 0 EJB jar files loaded, containing
> 0 EJBs
>
> Sat Feb 19 12:10:09 EST 2000:<I> <EJB> 0 deployed, 0 failed to deploy.
>
> *********************************************************************/
>
> i even set the package in classpath in startweblogic.cmd file.
>
>
>
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|
|
 |