MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
somsahi
Post subject: Failed to parse jboss-web.xml  PostPosted: Jul 07, 2005 - 02:28 PM



Joined: Jun 24, 2005
Posts: 25

Hi i am getting error
1)yment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml)
2)resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml
contents of file are as follows
1)<jboss-web>
<resource-ref>
<res-ref-name>jdbc/BookDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/jdbc/BookDB</jndi-name>
</resource-ref>
</jboss-web>
2)<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
-->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>BookstoreWAR</display-name>
<filter>
<filter-name>HitCounterFilter</filter-name>
<filter-class>samples.webapps.bookstore.filters.HitCounterFilter</filter-class>
</filter>
<filter>
<filter-name>OrderFilter</filter-name>
<filter-class>samples.webapps.bookstore.filters.OrderFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HitCounterFilter</filter-name>
<servlet-name>BookStoreServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>OrderFilter</filter-name>
<servlet-name>ReceiptServlet</servlet-name>
</filter-mapping>
<listener>
<listener-class>samples.webapps.bookstore.listeners.ContextListener</listener-class>
</listener>
<servlet>
<display-name>BannerServlet</display-name>
<servlet-name>BannerServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.BannerServlet</servlet-class>
</servlet>
<servlet>
<display-name>ShowCartServlet</display-name>
<servlet-name>ShowCartServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.ShowCartServlet</servlet-class>
</servlet>
<servlet>
<display-name>CashierServlet</display-name>
<servlet-name>CashierServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.CashierServlet</servlet-class>
</servlet>
<servlet>
<display-name>CatalogServlet</display-name>
<servlet-name>CatalogServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.CatalogServlet</servlet-class>
</servlet>
<servlet>
<display-name>ReceiptServlet</display-name>
<servlet-name>ReceiptServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.ReceiptServlet</servlet-class>
</servlet>
<servlet>
<display-name>BookStoreServlet</display-name>
<servlet-name>BookStoreServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.BookStoreServlet</servlet-class>
</servlet>
<servlet>
<display-name>BookDetailsServlet</display-name>
<servlet-name>BookDetailsServlet</servlet-name>
<servlet-class>samples.webapps.bookstore.BookDetailsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>BannerServlet</servlet-name>
<url-pattern>/banner</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ShowCartServlet</servlet-name>
<url-pattern>/showcart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CashierServlet</servlet-name>
<url-pattern>/cashier</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CatalogServlet</servlet-name>
<url-pattern>/catalog</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReceiptServlet</servlet-name>
<url-pattern>/receipt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>BookStoreServlet</servlet-name>
<url-pattern>/enter</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>BookDetailsServlet</servlet-name>
<url-pattern>/bookdetails</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<error-page>
<exception-type>samples.webapps.bookstore.exception.BooksNotFoundException</exception-type>
<location>/errorpage.html</location>
</error-page>
<error-page>
<exception-type>javax.servlet.UnavailableException</exception-type>
<location>/errorpage.html</location>
</error-page>
<error-page>
<exception-type>samples.webapps.bookstore.exception.BookNotFoundException</exception-type>
<location>/errorpage.html</location>
</error-page>
<resource-ref>
<res-ref-name>jdbc/BookDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
thanxs in adv.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 07, 2005 - 08:06 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

You really need to repost all that code using the "code" button below to maintain indenting, it's really hard to read that.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
somsahi
Post subject:   PostPosted: Jul 08, 2005 - 07:00 AM



Joined: Jun 24, 2005
Posts: 25

Hi i am getting error
1)yment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml)
2)resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml .the exact contents of file are as follows
Code:

 
 
 View user's profile Send private message  
Reply with quote Back to top
gadiga
22 Post subject: JBoss Deployment problem  PostPosted: Jul 29, 2005 - 10:14 AM
Veteran Member
Veteran Member


Joined: Jul 29, 2005
Posts: 5

Hello jbosses
Please Help me out. I get this error deploying the example Tutorial app.
I am desperate..

Thanks a ton
noBoss

05:02:41,421 WARN [Tomcat5] Failed to parse descriptors for war(file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp1/server/default/tmp/deploy/tmp59942FiboApp.ear-contents/FiboWeb-exp.war/)
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/Fibo found in jboss-web.xml but not in web.xml)
at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:655)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:294)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:848)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.jboss.deployment.DeploymentException: ejb-ref ejb/Fibo found in jboss-web.xml but not in web.xml
at org.jboss.metadata.WebMetaData.importJBossWebXml(WebMetaData.java:806)
at org.jboss.metadata.WebMetaData.importXml(WebMetaData.java:478)
at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:650)
... 69 more
 
 View user's profile Send private message  
Reply with quote Back to top
amir55
Post subject:   PostPosted: Jun 12, 2011 - 11:55 AM
Registered Member
Registered Member


Joined: Oct 15, 2005
Posts: 216

hi all

I am full subscriber of MyEclipse of spring and tied to run the examplw on demand for SimpleFaceletsExample on JBoss but I get the same error

org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected only one url-pattern tag)


any idea from amyone is highly apprecited

Amir
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits