You need a ResourceLink in your META-INF/context.xml
file to make the global resource available to the web application.
<ResourceLink name="jdbc/mydb"
global="jdbc/mydb"
type="javax.sql.DataSource" />
More Related Contents:
- Cannot create JDBC driver of class ‘ ‘ for connect URL ‘null’ : I do not understand this exception
- java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException
- JSF request scoped bean keeps recreating new Stateful session beans on every request?
- How to implement “Stay Logged In” when user login in to the web application
- Servlet vs RESTful
- What does the servlet value signify
- Maven2: Best practice for Enterprise Project (EAR file)
- Java EE Web Profile vs Java EE Full Platform
- The meaning of NoInitialContextException error
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- Stop scheduled timer when shutdown tomcat [duplicate]
- EJB Transactions in local method-calls
- Tomcat vs Weblogic JNDI Lookup
- Correlation between Java EE / J2EE to J2SE / JDK versions
- Where to use EJB 3.1 and CDI?
- Packaging EJB in JavaEE 6 WAR vs EAR
- javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
- Notify only specific user(s) through WebSockets, when something is modified in the database
- What is Java EE? [duplicate]
- What is a host only cookie?
- Proper usage of JDBC Connection Pool (Glassfish)
- How to include values from .properties file into web.xml?
- EJB 3.0 – Nested Transaction != Requires New?
- Is it possible to @Inject a @RequestScoped bean into a @Stateless EJB?
- how to enable hot deploy in tomcat
- Is it possible to inject a CDI Bean into a static variable in Java EE 6?
- How to set the context path of a web application in Tomcat 7.0
- Can someone explain mappedBy in JPA and Hibernate?
- Java Web Service client basic authentication
- Retrieve current Windows user in Java EE web application for Single Sign On purposes