megloff
asked on
weblogic 6.0 deplying ear, xml parsing error occurs in a repeating deployment of the files !
Hello there !
I am using WLS 6.0 and deploying our application (developed on jboss)
now on weblogic.I am receiving the attached message at the end of this
mail. The Strange thing is, it keeps compiling and generating
wl_comp<nnnnnn>.ear files non-stop in the wl_temp_do_not_delete
directory. I have to delete the ear file that this behavior will stop.
so two questions:
- is there a way to stop this "repeating" behavior, because it only
uses diskpace? Is this a bug in the 6.0 version?
- what exactly is this error, what I have done wrong in my ear, which
xml ?
Thanks for your time.
Regards
Mark
Weblogic Error Message (taken from the log file):
Apr 18, 2002 2:49:03 PM CEST Info Management
MBean=(BankingCSFB:Name=se prosift,Ty pe=Applica tion)
Attribute=(LastModified) modified from (1019134139382) to
(1019134143132).
Apr 18, 2002 2:49:03 PM CEST Error Management Error parsing XML
descriptor for application BankingCSFB:Name=seprosift ,Type=Appl ication
weblogic.xml.process.Proce ssorFactor yException : XML document does not
appear to contain a properly formed DOCTYPE header
at weblogic.xml.process.Proce ssorFactor y.getProce ssor(Proce ssorFactor y.java:189 )
at weblogic.xml.process.Proce ssorFactor y.getProce ssor(Proce ssorFactor y.java:164 )
at weblogic.j2ee.dd.xml.J2EEU tils.loadD eploymentD escriptor( J2EEUtils. java:83)
at weblogic.j2ee.dd.xml.J2EEU tils.loadD eploymentD escriptor( J2EEUtils. java:67)
at weblogic.management.mbeans .custom.Ap plication. getDD(Appl ication.ja va:358)
at weblogic.management.mbeans .custom.Ap plication. adminLoad( Applicatio n.java:284 )
at weblogic.management.mbeans .custom.Ap plication. load(Appli cation.jav a:230)
at java.lang.reflect.Method.i nvoke(Nati ve Method)
at weblogic.management.intern al.Dynamic MBeanImpl. invokeLoca lly(Dynami cMBeanImpl .java:562)
at weblogic.management.intern al.Dynamic MBeanImpl. invoke(Dyn amicMBeanI mpl.java:5 48)
at weblogic.management.intern al.Configu rationMBea nImpl.invo ke(Configu rationMBea nImpl.java :285)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1555)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1523)
at weblogic.management.intern al.MBeanPr oxy.invoke (MBeanProx y.java:437 )
at weblogic.management.intern al.MBeanPr oxy.invoke (MBeanProx y.java:178 )
at $Proxy15.load(Unknown Source)
at weblogic.management.mbeans .custom.Ap plicationM anager.add Applicatio n(Applicat ionManager .java:528)
at weblogic.management.mbeans .custom.Ap plicationM anager.add Applicatio n(Applicat ionManager .java:504)
at weblogic.management.mbeans .custom.Ap plicationM anager.pol l(Applicat ionManager .java:428)
at weblogic.management.mbeans .custom.Ap plicationM anager.pol l(Applicat ionManager .java:380)
at weblogic.management.mbeans .custom.Ap plicationM anager.upd ate(Applic ationManag er.java:15 2)
at weblogic.management.mbeans .custom.Ap plicationM anager$App licationPo ller.run(A pplication Manager.ja va:643)
--------------- nested within: ------------------
weblogic.xml.process.XMLPr ocessingEx ception: XML document does not
appear to contain a properly formed DOCTYPE header - with nested
exception:
[weblogic.xml.process.Proc essorFacto ryExceptio n: XML document does not
appear to contain a properly formed DOCTYPE header]
at weblogic.j2ee.dd.xml.J2EEU tils.loadD eploymentD escriptor( J2EEUtils. java:85)
at weblogic.j2ee.dd.xml.J2EEU tils.loadD eploymentD escriptor( J2EEUtils. java:67)
at weblogic.management.mbeans .custom.Ap plication. getDD(Appl ication.ja va:358)
at weblogic.management.mbeans .custom.Ap plication. adminLoad( Applicatio n.java:284 )
at weblogic.management.mbeans .custom.Ap plication. load(Appli cation.jav a:230)
at java.lang.reflect.Method.i nvoke(Nati ve Method)
at weblogic.management.intern al.Dynamic MBeanImpl. invokeLoca lly(Dynami cMBeanImpl .java:562)
at weblogic.management.intern al.Dynamic MBeanImpl. invoke(Dyn amicMBeanI mpl.java:5 48)
at weblogic.management.intern al.Configu rationMBea nImpl.invo ke(Configu rationMBea nImpl.java :285)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1555)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1523)
at weblogic.management.intern al.MBeanPr oxy.invoke (MBeanProx y.java:437 )
at weblogic.management.intern al.MBeanPr oxy.invoke (MBeanProx y.java:178 )
at $Proxy15.load(Unknown Source)
at weblogic.management.mbeans .custom.Ap plicationM anager.add Applicatio n(Applicat ionManager .java:528)
at weblogic.management.mbeans .custom.Ap plicationM anager.add Applicatio n(Applicat ionManager .java:504)
at weblogic.management.mbeans .custom.Ap plicationM anager.pol l(Applicat ionManager .java:428)
at weblogic.management.mbeans .custom.Ap plicationM anager.pol l(Applicat ionManager .java:380)
at weblogic.management.mbeans .custom.Ap plicationM anager.upd ate(Applic ationManag er.java:15 2)
at weblogic.management.mbeans .custom.Ap plicationM anager$App licationPo ller.run(A pplication Manager.ja va:643)
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
I am using WLS 6.0 and deploying our application (developed on jboss)
now on weblogic.I am receiving the attached message at the end of this
mail. The Strange thing is, it keeps compiling and generating
wl_comp<nnnnnn>.ear files non-stop in the wl_temp_do_not_delete
directory. I have to delete the ear file that this behavior will stop.
so two questions:
- is there a way to stop this "repeating" behavior, because it only
uses diskpace? Is this a bug in the 6.0 version?
- what exactly is this error, what I have done wrong in my ear, which
xml ?
Thanks for your time.
Regards
Mark
Weblogic Error Message (taken from the log file):
Apr 18, 2002 2:49:03 PM CEST Info Management
MBean=(BankingCSFB:Name=se
Attribute=(LastModified) modified from (1019134139382) to
(1019134143132).
Apr 18, 2002 2:49:03 PM CEST Error Management Error parsing XML
descriptor for application BankingCSFB:Name=seprosift
weblogic.xml.process.Proce
appear to contain a properly formed DOCTYPE header
at weblogic.xml.process.Proce
at weblogic.xml.process.Proce
at weblogic.j2ee.dd.xml.J2EEU
at weblogic.j2ee.dd.xml.J2EEU
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at java.lang.reflect.Method.i
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at com.sun.management.jmx.MBe
at com.sun.management.jmx.MBe
at weblogic.management.intern
at weblogic.management.intern
at $Proxy15.load(Unknown Source)
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
--------------- nested within: ------------------
weblogic.xml.process.XMLPr
appear to contain a properly formed DOCTYPE header - with nested
exception:
[weblogic.xml.process.Proc
appear to contain a properly formed DOCTYPE header]
at weblogic.j2ee.dd.xml.J2EEU
at weblogic.j2ee.dd.xml.J2EEU
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at java.lang.reflect.Method.i
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at com.sun.management.jmx.MBe
at com.sun.management.jmx.MBe
at weblogic.management.intern
at weblogic.management.intern
at $Proxy15.load(Unknown Source)
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
--------------------------
ASKER
Thanks for your help, but all the DOCTYPE has the right values. I rewrite the files completly by hand and after that it works... I guess from the copying from solaris to pc and back a strange ascii character has nested in...
howewer I get now another error, see below.
Could someone explain me what this is and how I can solve this?
Thanks for every suggestion.
Best Regards
Mark
Apr 19, 2002 10:42:07 AM CEST Info EJB EJB Deploying file:
SeproSIFT.jar
Apr 19, 2002 10:42:08 AM CEST Error J2EE Error deploying EJB Component
: SeproSIFT
weblogic.ejb20.EJBDeployme ntExceptio n: EJB Deployment errors:; nested
exception is:
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
at weblogic.ejb20.compliance. EJBComplia nceChecker .check(EJB Compliance Checker.ja va:220)
at weblogic.ejb20.compliance. EJBComplia nceChecker .checkDepl oymentInfo (EJBCompli anceChecke r.java:185 )
at weblogic.ejb20.ejbc.EJBCom piler.comp lianceChec kJar(EJBCo mpiler.jav a:295)
at weblogic.ejb20.ejbc.EJBCom piler.chec kComplianc e(EJBCompi ler.java:2 52)
at weblogic.ejb20.ejbc.EJBCom piler.comp ileEJB(EJB Compiler.j ava:135)
at weblogic.ejb20.deployer.De ployer.run EJBC(Deplo yer.java:2 28)
at weblogic.ejb20.deployer.De ployer.dep loy(Deploy er.java:79 9)
at weblogic.j2ee.EJBComponent .deploy(EJ BComponent .java:31)
at weblogic.j2ee.Application. addCompone nt(Applica tion.java: 126)
at weblogic.j2ee.J2EEService. addDeploym ent(J2EESe rvice.java :115)
at weblogic.management.mbeans .custom.De ploymentTa rget.addDe ployment(D eploymentT arget.java :283)
at weblogic.management.mbeans .custom.De ploymentTa rget.addDe ployment(D eploymentT arget.java :109)
at java.lang.reflect.Method.i nvoke(Nati ve Method)
at weblogic.management.intern al.Dynamic MBeanImpl. invokeLoca lly(Dynami cMBeanImpl .java:562)
at weblogic.management.intern al.Dynamic MBeanImpl. invoke(Dyn amicMBeanI mpl.java:5 48)
at weblogic.management.intern al.Configu rationMBea nImpl.invo ke(Configu rationMBea nImpl.java :285)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1555)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1523)
at weblogic.management.intern al.Configu rationMBea nImpl.upda teConfigMB eans(Confi gurationMB eanImpl.ja va:409)
at weblogic.management.intern al.Configu rationMBea nImpl.invo ke(Configu rationMBea nImpl.java :287)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1555)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1523)
at weblogic.management.intern al.Dynamic MBeanImpl. addDeploym ent(Dynami cMBeanImpl .java:866)
at weblogic.management.intern al.Dynamic MBeanImpl. addDeploym ent(Dynami cMBeanImpl .java:853)
at weblogic.management.intern al.Dynamic MBeanImpl. add(Dynami cMBeanImpl .java:838)
at weblogic.management.intern al.Dynamic MBeanImpl. invokeLoca lly(Dynami cMBeanImpl .java:566)
at weblogic.management.intern al.Dynamic MBeanImpl. invoke(Dyn amicMBeanI mpl.java:5 48)
at weblogic.management.intern al.Configu rationMBea nImpl.invo ke(Configu rationMBea nImpl.java :285)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1555)
at com.sun.management.jmx.MBe anServerIm pl.invoke( MBeanServe rImpl.java :1523)
at weblogic.management.intern al.MBeanPr oxy.invoke (MBeanProx y.java:437 )
at weblogic.management.intern al.MBeanPr oxy.invoke (MBeanProx y.java:178 )
at $Proxy21.addTarget(Unknown Source)
at weblogic.management.mbeans .custom.Ap plicationM anager.aut oDeploy(Ap plicationM anager.jav a:486)
at weblogic.management.mbeans .custom.Ap plicationM anager.add Applicatio n(Applicat ionManager .java:557)
at weblogic.management.mbeans .custom.Ap plicationM anager.add Applicatio n(Applicat ionManager .java:504)
at weblogic.management.mbeans .custom.Ap plicationM anager.pol l(Applicat ionManager .java:428)
at weblogic.management.mbeans .custom.Ap plicationM anager.pol l(Applicat ionManager .java:380)
at weblogic.management.mbeans .custom.Ap plicationM anager.upd ate(Applic ationManag er.java:15 2)
at weblogic.management.mbeans .custom.Ap plicationM anager$App licationPo ller.run(A pplication Manager.ja va:643)
Apr 19, 2002 10:42:08 AM CEST Error J2EE Error deploying application
SeproSIFT: Could not deploy: 'SeproSIFT.jar':
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
Apr 19, 2002 10:42:08 AM CEST Info Management
MBean=(BankingCSFB:Name=se prosift,Ty pe=Applica tion)
Attribute=(Deployed) modified from (true) to (true).
howewer I get now another error, see below.
Could someone explain me what this is and how I can solve this?
Thanks for every suggestion.
Best Regards
Mark
Apr 19, 2002 10:42:07 AM CEST Info EJB EJB Deploying file:
SeproSIFT.jar
Apr 19, 2002 10:42:08 AM CEST Error J2EE Error deploying EJB Component
: SeproSIFT
weblogic.ejb20.EJBDeployme
exception is:
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
at weblogic.ejb20.compliance.
at weblogic.ejb20.compliance.
at weblogic.ejb20.ejbc.EJBCom
at weblogic.ejb20.ejbc.EJBCom
at weblogic.ejb20.ejbc.EJBCom
at weblogic.ejb20.deployer.De
at weblogic.ejb20.deployer.De
at weblogic.j2ee.EJBComponent
at weblogic.j2ee.Application.
at weblogic.j2ee.J2EEService.
at weblogic.management.mbeans
at weblogic.management.mbeans
at java.lang.reflect.Method.i
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at com.sun.management.jmx.MBe
at com.sun.management.jmx.MBe
at weblogic.management.intern
at weblogic.management.intern
at com.sun.management.jmx.MBe
at com.sun.management.jmx.MBe
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at weblogic.management.intern
at com.sun.management.jmx.MBe
at com.sun.management.jmx.MBe
at weblogic.management.intern
at weblogic.management.intern
at $Proxy21.addTarget(Unknown
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
at weblogic.management.mbeans
Apr 19, 2002 10:42:08 AM CEST Error J2EE Error deploying application
SeproSIFT: Could not deploy: 'SeproSIFT.jar':
com/sepro/cse/STCSERecord
com/sepro/cse/STCSERecord
Apr 19, 2002 10:42:08 AM CEST Info Management
MBean=(BankingCSFB:Name=se
Attribute=(Deployed) modified from (true) to (true).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thabnk you
seêms to be a very good hint...Yes I'm using EJB1.1
I' am starting weblogic with this commandline:
/usr/bin/nohup/app/java/jd k1.3/java/ bin/java $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=BillingC SFB -Dweblogic.Name=BillingCSF BServer -Dbea.
home=$WL_BINARY_HOME -Djava.security.policy==$A PP_HOME/we blogic.pol icy -Dweblogic.management.pass word=$WLS_ PW $BANKINGDEFS weblogic.Server > /app/Bankin
gCSFB/BillingCSFB/log/Bill ingCSFB.ou t 2>&1 &
Do you have any further hints to me how I can set up the ejb 1.1 compilance?
regards
mark
seêms to be a very good hint...Yes I'm using EJB1.1
I' am starting weblogic with this commandline:
/usr/bin/nohup/app/java/jd
home=$WL_BINARY_HOME -Djava.security.policy==$A
gCSFB/BillingCSFB/log/Bill
Do you have any further hints to me how I can set up the ejb 1.1 compilance?
regards
mark
ASKER
I tried now to deploy with the java.weblogic.deploy tool:
java -cp /app/bea/WebLogic600sp1/li b/weblogic .jar weblogic.deploy -port 9202 -host localhost deploy weblogic SeproSIFT SeproSift.jar
The result:
Undeclared checked exception
any suggestions?
Regards
Mark
java -cp /app/bea/WebLogic600sp1/li
The result:
Undeclared checked exception
any suggestions?
Regards
Mark
ASKER
ok i get the solution for my problem... there was multiple .jar's in the ear file. So weblogic did not find the class files when it was deploying....
ASKER
Your Hint with the command line tool gave me indirect a solution. And after that I was able to see what was really wrong. Thank you
Glad you made it through those cryptic error messages !
Thanks
-S
Thanks
-S
I checked my WL 6.0 web apps, the required DTD in web.xml is :
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
Indeed, AFAIK WL6.0 supports the Servlet 2.2 specs.
For ejb-jar.xml and weblogic-*.xml, look at this page :
http://e-docs.bea.com/wls/docs60/ejb/EJB_reference.html#1048022
and check that your doctypes match those given by BEA.
And finally application.xml :
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/dtd/application_1_2.dtd">
Hope this helps,
-S