- This topic has 7 replies, 3 voices, and was last updated 20 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
mijailMemberHello there,
This is my configuration:
Operating System and version: Windows XP Pro
Eclipse version: 3.0.1
Eclipse build id: 200409161125
Fresh Eclipse install (y/n): y
MyEclipse version: 3.8.3
Eclipse JDK version:
Application Server JDK version: 1.3.1I’m deploying my project as a pakaged aplication to the corresponding WebSphere directory using MyEclipse. The deployment is successful: I see the deployment marked ok in the MyEclipse deployments window and I have a war file inthe WebSphere InstallableApps directory. So far so good.
Now I use the Install aplication wizard from the WebSphere administration console to *really* deploy the application. I select the MyEclipse generated war file, set a WS logical name for the app a webcontext that will be prepended to whatever is specified in the web.xml, I click next and I get the following error:
CNTR0020E: Exception occurred in method createEarWrapper in bean BeanId(admin#repository.jar#FileBrowserService, 101ee4d6695): java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xmljava.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xmlcom.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException: Could not load resource: WEB-INF/web.xml in archive StrutsTest.war
Stack trace of nested exception:
com.ibm.etools.archive.exception.ArchiveRuntimeException: Failed to invoke the method named: parse
Stack trace of nested exception:
com.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=;SYSTEM_ID=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
at com.ibm.etools.j2ee.xml.J2EEXmlDtDEntityResolver.resolveEntity(J2EEXmlDtDEntityResolver.java:46)
at org.apache.xerces.validators.common.XMLValidator$Resolver.resolveEntity(XMLValidator.java:2937)
at org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar(XMLValidator.java:2737)
at org.apache.xerces.validators.common.XMLValidator.parseSchemas(XMLValidator.java(Inlined Compiled Code))
at org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElementAndAttributes(XMLValidator.java(Compiled Code))
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java(Compiled Code))
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java(Compiled Code))
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java(Compiled Code))
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.invokeMethod(GeneralXmlDocumentReader.java:228)
at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse(GeneralXmlDocumentReader.java:240)
at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parseDocument(GeneralXmlDocumentReader.java:250)
It goes on…. with other nested exceptions.
It looks like a problem with the generated web.xml???Any help appreciated.
Javier Salado
Riyad KallaMembercom.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=;SYSTEM_ID=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
Don’t try and deploy a webapplication using the 2.4 web spec to an application server that doesn’t support it.
It looks like a problem with the generated web.xml???
Any help appreciated.
When you create a new Web project, be sure to select J2EE 1.3 and not J2EE 1.4, that should generate a default web.xml file for you, then just copy the doctype definition over to your existing StrutsTest project, or just drop your resourecs from the 1.4 projects into the 1.3 project… whichever is easier.
mijailMemberThank you, Riyad,
I’ve tried what you suggest and when I try to instal a war file from a J2EE 1.3 web project from the WebSphere admin console I get the same error only that it seems that what is not supported is PUBLIC_ID=-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN;SYSTEM_ID=http://java.sun.com/dtd/web-app_2_3.dtd (see bellow). Any ideas? Thanks.
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException: Could not load resource: WEB-INF/web.xml in archive StrutsTest.war
Stack trace of nested exception:
com.ibm.etools.archive.exception.ArchiveRuntimeException: Failed to invoke the method named: parse
Stack trace of nested exception:
com.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN;SYSTEM_ID=http://java.sun.com/dtd/web-app_2_3.dtd
at com.ibm.etools.j2ee.xml.J2EEXmlDtDEntityResolver.resolveEntity(J2EEXmlDtDEntityResolver.java:46)
Javier Salado
Riyad KallaMemberJavier,
I wish I could be of more help, but this is really an issue with your app server. I googled for the exception and got quite a few other posts that went unanswered as well… it seems this ‘just happens’ with WS sometimes… I didn’t come across a solution but i only looked at the first 8 links:
http://www.google.com/search?q=com.ibm.etools.archive.exception.NotSupportedException&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
mijailMemberRiyad,
thanks for your help. I found a solution, the doctype definition in the web.xml file should be:
<!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN” “http://java.sun.com/j2ee/dtds/web-app_2_2.dtd”>in stead of:
<!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”>
that is generated whe you create the J2EE 1.3 web project. Once the project is created I’ve manualy changed this and from there it works.Javier Salado
Riyad KallaMemberThank you for posting the solution.
applebykMemberI had the same problem. I was very careful to put in the correct versions for all of my products. However MyEclipse generated the incorrect doctype definitions. A fix would be nice as it is not pleasant for a first time Eclipse, Struts, TomCat, …. user.
Riyad KallaMemberapplebyk,
Please clarify the problem you had, it is not the same as the above user’s issue… MyEclipse supports (out of the box) Web spec 2.3 and 2.4, he needed 2.2 so had to do some manual leg work. If you are using Tomcat 4.x you need to use Web spec 2.3 when creating a new project, 2.4 is the default. If you are using Tomcat 5, I believe you can use either. -
AuthorPosts