For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 1 reply, 1 voice, and was last updated 19 years, 7 months ago by
jadeite1000.
-
AuthorPosts
-
jadeite1000MemberHi:
I was able to get the Weblogic 7 sp1 with MyEclipse 5.1 to create an Enterprise Application with EJB.
My application.xml is the following for weblogic 7 and this works:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE application PUBLIC “-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN” “http://java.sun.com/dtd/application_1_3.dtd”><application>
<display-name>ex07</display-name>
<module id=”myeclipse.1073063579093″>
<web>
<web-uri>ex07Web.war</web-uri>
<context-root>/ex07Web</context-root>
</web>
</module>
<module id=”myeclipse.1073063579234″>
<ejb>ex07EJB.jar</ejb>
</module>
</application>I tried to created an Enterprise Web Application using Weblogic 8.1 SP6 with MyEclipse 5.1 and my application.xml is the following:
<?xml version=”1.0″ encoding=”UTF-8″?>
<application xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”1.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd”>
<display-name>Ex07Weblogic81</display-name>
<module id=”myeclipse.1073111173218″>
<web>
<web-uri>Ex071Weblogic81Web.war</web-uri>
<context-root>/Ex071Weblogic81Web</context-root>
</web>
</module>
<module id=”myeclipse.1073085627500″>
<ejb>Ex071Weblogic81EJB.jar</ejb>
</module>
</application>In Weblogic 8.1 with the same code as weblogic 7 sp1, I get the following error when I tried to deploy the Enterprise application on weblogic 8.1:
Caused by: weblogic.management.ApplicationException: weblogic.management.DeploymentException: Error while loading descriptors: Error processing file ‘META-INF/application.xml’. weblogic.xml.process.XMLProcessingException: XML document does not appear to contain a properly formed DOCTYPE header – with nested exception:Is MyEclipse 5.1 generating the wrong application.xml for an Enterprise application for weblogic 8.1 which is JDK 1.42?
Yours,
Desperate.
January 3, 2007 at 9:35 am #264079
jadeite1000MemberHi All:
I was able to get it to work now.
I have to change the dtd for the application.xml to the following:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE application PUBLIC “-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN” “http://java.sun.com/dtd/application_1_3.dtd”>
<application>The one generated from MyEclipse 5.1 for Weblogic 8.1 caused the problem:
<?xml version=”1.0″ encoding=”UTF-8″?>
<application xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”1.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd”>My question is did anybody get the Enterprise application to work using MyEclipse 5.1 on weblogic 8.1 sp6 or did they have to do like me change the application.xml generated by MyEclipse 5.1
Yours,
Desperate
-
AuthorPosts
