Hi, Imran
Ok. If you could provide the application or provide a small test case
which would manifest the problem, I can try it from my side also.
Thanks,
- Hong
Imran M Yousuf wrote:
> Hi Hong,
>
> I also tried the same web.xml in another web application and also
> tried with version attribute along with others, but I get the same
> error message. The problem occurred when I tried to redeploy a
> application named event-ws. I will try again today to solve it and
> will let you know the update.
>
> Thank you,
>
> Imran
>
> On 8/10/07, *Hong Zhang* <Hong.Zhang_at_sun.com
> <mailto:Hong.Zhang_at_sun.com>> wrote:
>
> Hi, Imran
> The error message in your server.log came from the underlying JAXP
> Parser when validating the deployment descriptors. However, I couldn't
> reproduce this problem when I copy/paste your web.xml into a small
> test
> web application. The deployment went through fine for me.
> The error message is complaining about web-app_2_4.xsd and
> web-app_2_5.xsd having different name spaces. These two schemas do
> have
> different name spaces, one is j2ee name space, and the other one is
> javaee name space. However, I don't see your web.xml declaring
> schema at
> all (in which case, the web-app_2_5.xsd will be used as the default
> schema), so I am not sure where the conflict came from.
> Do you have other web.xml files in your application, the error
> message was complaining about the web.xml in [event-ws]. Also
> while I am
> not sure about the cause of this error message from the web.xml you
> attached, you could try explicitly declare the schema ( 2.4 or 2.5) in
> your web.xml and see whether that helps.
>
> Thanks,
>
> - Hong
>
> Imran M Yousuf wrote:
>
> > Dear Users,
> >
> > Whenever I try to deploy my web application I get the following
> error.
> > I have attached the web.xml in the log. Please have a look and
> please
> > let me know.
> >
> > Thank you,
> >
> > Imran
> >
> >
> >
> [#|2007-08-10T18:56:17.305+0600|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=19
> ;_ThreadName=Thread-74;Deployment
> > descriptor file WEB-INF/web.xml in archive [event-ws].;3;10;General
> > Schema Error: Schema in web-app_2_4.xsd has a different target
> > namespace from the one specified in the instance document
> >
> :web-app_2_5.xsd.;_RequestID=8fbd6160-64df-4006-aaea-eff98268bf20;|"DPL8015:
> > Invalid Deployment Descriptors in Deployment descriptor file
> > WEB-INF/web.xml in archive [event-ws].
> > Line 3 Column 10 -- General Schema Error: Schema in web-app_2_4.xsd
> > has a different target namespace from the one specified in the
> > instance document :web-app_2_5.xsd."|#]
> >
> >
> [#|2007-08-10T18:56:17.305+0600|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=19
>
> > ;_ThreadName=Thread-74;General Schema Error: Schema in
> web-app_2_4.xsd
> > has a different target namespace from the one specified in the
> > instance document
> >
> :web-app_2_5.xsd.;_RequestID=8fbd6160-64df-4006-aaea-eff98268bf20;|"DPL8005:
>
> > Deployment Descriptor parsing failure : General Schema Error: Schema
> > in web-app_2_4.xsd has a different target namespace from the one
> > specified in the instance document :web-app_2_5.xsd."|#]
> >
> >
> [#|2007-08-10T18:56:17.322+0600|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=19;_ThreadName=Thread-74;_RequestID=8fbd6160-64df-4006-aaea-eff98268bf20;|Exception
> > occured in J2EEC Phase
> > com.sun.enterprise.deployment.backend.IASDeploymentException: Error
> > loading deployment descriptors for module [event-ws] Line 3
> Column 10
> > -- Deployment descriptor file WEB-INF/web.xml in archive
> [event-ws].
> > General Schema Error: Schema in web-app_2_4.xsd has a different
> target
> > namespace from the one specified in the instance document
> > :web-app_2_5.xsd.
> > at
> > com.sun.enterprise.deployment.backend.Deployer.loadDescriptors
> (Deployer.java:352)
> > at
> >
> com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:395)
> > at
> > com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy
> > (WebModuleDeployer.java:155)
> > at
> >
> com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
> > at
> > com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase
> (J2EECPhase.java
> > :169)
> > at
> >
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
> > at
> >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases
> (PEDeploymentService.java
> > :871)
> > at
> >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
> > at
> > com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy
> (PEDeploymentService.java:739)
> >
> > at
> >
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
> > at
> > com.sun.enterprise.management.deploy.DeployThread.run
> (DeployThread.java:210)
> > Caused by: org.xml.sax.SAXParseException : General Schema Error:
> > Schema in web-app_2_4.xsd has a different target namespace from the
> > one specified in the instance document :web-app_2_5.xsd.
> > at
> > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
> > (DeploymentDescriptorFile.java:285)
> > at
> > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
> (DeploymentDescriptorFile.java:207)
> > at
> >
> com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor
> > (Archivist.java:467)
> > at
> >
> com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors
> (Archivist.java:292)
> > at
> >
> com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:200)
> > at
> >
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive
> (ApplicationArchivist.java:750)
> > at
> >
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java
> > :731)
> > at
> > com.sun.enterprise.deployment.backend.Deployer.loadDescriptors
> (Deployer.java:327)
> > ... 10 more
> > |#]
> >
> > --
> > Imran M Yousuf
> > Entrepreneur & Software Engineer
> > Smart IT Engineering
> > Dhaka, Bangladesh
> > Email: imran_at_smartitengineering.com
> <mailto:imran_at_smartitengineering.com>
> <mailto:imran_at_smartitengineering.com
> <mailto:imran_at_smartitengineering.com>>
> > Mobile: +880-1711402557
> >
> >------------------------------------------------------------------------
>
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> >
> ><web-app>
> >
> >
> > <listener>
> > <listener-class>
> > com.sun.xml.ws.transport.http.servlet.WSServletContextListener
> > </listener-class>
> > </listener>
> > <servlet>
> > <servlet-name>WSServlet</servlet-name>
> > <!--
> > <display-name>WSServlet</display-name>
> > -->
> > <servlet-class>
> > com.sun.xml.ws.transport.http.servlet.WSServlet
> > </servlet-class>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>WSServlet</servlet-name>
> > <url-pattern>/ws</url-pattern>
> > </servlet-mapping>
> > <session-config>
> > <session-timeout>30</session-timeout>
> > </session-config>
> > <security-constraint>
> > <display-name>SecurityConstraint</display-name>
> > <web-resource-collection>
> > <web-resource-name>Event Manager Web
> Service</web-resource-name>
> > <url-pattern>/ws</url-pattern>
> > </web-resource-collection>
> > <auth-constraint>
> > <role-name>publicationadmin</role-name>
> > <role-name>administrator</role-name>
> > <role-name>reader</role-name>
> > </auth-constraint>
> > <user-data-constraint>
> > <transport-guarantee>NONE</transport-guarantee>
> > </user-data-constraint>
> > </security-constraint>
> > <security-role>
> > <role-name>publicationadmin</role-name>
> > </security-role>
> > <security-role>
> > <role-name>administrator</role-name>
> > </security-role>
> > <security-role>
> > <role-name>reader</role-name>
> > </security-role>
> > <login-config>
> > <!--
> > <auth-constraint>BASIC</auth-constraint>-->
> > <auth-method>BASIC</auth-method>
> > <realm-name>LdapRealmByMarc</realm-name>
> > </login-config>
> ></web-app>
> >
> >
> >------------------------------------------------------------------------
>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> >For additional commands, e-mail:
> users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
>
> --
> Imran M Yousuf
> Entrepreneur & Software Engineer
> Smart IT Engineering
> Dhaka, Bangladesh
> Email: imran_at_smartitengineering.com <mailto:imran_at_smartitengineering.com>
> Mobile: +880-1711402557