Hi,
I'm trying to create a Java Enterprise web application. I used Netbeans to automatically generate entities and entity session beans, then created a servlet to test the dependency injection was working. It isn't. I think I must have got something wrong with the persistence unit?
It currently looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="Plantlore-ejbPU" transaction-type="JTA">
<jta-data-source>SybaseDS</jta-data-source>
<properties/>
</persistence-unit>
</persistence>
The trace from my application attempting to run shows lots of successful things, then followed by:
Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy.
WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: java.lang.RuntimeException: javax.naming.NameNotFoundException: SybaseDS not found
run-deploy:
Browsing: http://localhost:8080/Plantlore-war/ListPlantNames
run-display-browser:
run:
BUILD SUCCESSFUL (total time: 34 seconds)
Driver I am using is: ianywhere.ml.jdbcodbc.jdbc3.IDriver
Thanks for your help!!
I'm trying to create a Java Enterprise web application. I used Netbeans to automatically generate entities and entity session beans, then created a servlet to test the dependency injection was working. It isn't. I think I must have got something wrong with the persistence unit?
It currently looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="Plantlore-ejbPU" transaction-type="JTA">
<jta-data-source>SybaseDS</jta-data-source>
<properties/>
</persistence-unit>
</persistence>
The trace from my application attempting to run shows lots of successful things, then followed by:
Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy.
WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: java.lang.RuntimeException: javax.naming.NameNotFoundException: SybaseDS not found
run-deploy:
Browsing: http://localhost:8080/Plantlore-war/ListPlantNames
run-display-browser:
run:
BUILD SUCCESSFUL (total time: 34 seconds)
Driver I am using is: ianywhere.ml.jdbcodbc.jdbc3.IDriver
Thanks for your help!!