-
1. Re: resource-ref jdbc/dataSource found in jboss-web.xml but not in web.xml
jaikiran Feb 23, 2016 5:09 AM (in response to jamili.chewe)Please post relevant content from jboss-web.xml and web.xml and also the exact version of application server you are using.
-
2. Re: resource-ref jdbc/dataSource found in jboss-web.xml but not in web.xml
jamili.chewe Feb 23, 2016 5:28 AM (in response to jaikiran)Dear jaikiran
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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"
version="2.4">
<resource-ref>
<description>jUDDI DataSource</description>
<res-ref-name>jdbc/juddiDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>
<servlet>
<servlet-name>JUDDIServlet</servlet-name>
<servlet-class>org.jboss.jaxr.juddi.JUDDIServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>jUDDIRegistryServlet</servlet-name>
<servlet-class>org.apache.juddi.registry.RegistryServlet</servlet-class>
<init-param>
<param-name>juddi.propertiesFile</param-name>
<param-value>/WEB-INF/juddi.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>JUDDIServlet</servlet-name>
<url-pattern>/inquiry</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JUDDIServlet</servlet-name>
<url-pattern>/publish</url-pattern>
</servlet-mapping>
<!-- ENABLE When Jboss Saaj implementation is not based on axis
<servlet>
<servlet-name>jUDDIAdminService</servlet-name>
<display-name>jUDDI Admin Service</display-name>
<servlet-class>org.apache.juddi.registry.AdminService</servlet-class>
</servlet>
<servlet>
<servlet-name>UDDIV2InquiryService</servlet-name>
<display-name>UDDI Version 2.0 Inquiry Service</display-name>
<servlet-class>org.apache.juddi.registry.InquiryService</servlet-class>
</servlet>
<servlet>
<servlet-name>UDDIV2PublishService</servlet-name>
<display-name>UDDI Version 2.0 Publish Service</display-name>
<servlet-class>org.apache.juddi.registry.PublishService</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>jUDDIAdminService</servlet-name>
<url-pattern>/admin</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UDDIV2InquiryService</servlet-name>
<url-pattern>/inquiry</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UDDIV2PublishService</servlet-name>
<url-pattern>/publish</url-pattern>
</servlet-mapping> -->
</web-app>
jboss-web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jboss-web PUBLIC
"-//JBoss//DTD Web Application 2.3V2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
<jboss-web>
<context-root>juddi</context-root>
<resource-ref>
<res-ref-name>jdbc/juddiDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:MysqlDS</jndi-name>
</resource-ref>
</jboss-web>
Am using jboss 4
Thank you