Java EE 6 Web Profile [message #1158037] |
Sun, 27 October 2013 13:14  |
Eclipse User |
|
|
|
Does Virgo Nano 3.6.2 support the Java EE 6 Web Profile? If partially, which parts are missing?
I'm not able to deploy simple sample apps, e.g. the moviefun.war from openejb/examples.
In particular, I'm having trouble defining a datasource.
Adding the usual stuff to configuration/openejb.xml, I get the following exception in the logs.
java.lang.NullPointerException: null
at org.apache.derby.jdbc.EmbeddedDriver.acceptsURL(Unknown Source)
at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1442)
Any ideas?
Thanks,
Harald
|
|
|
|
|
|
|
|
|
|
Re: Java EE 6 Web Profile [message #1162951 is a reply to message #1162736] |
Wed, 30 October 2013 14:44  |
Eclipse User |
|
|
|
Hi,
- I downloaded Virgo Nano Full.
- I added the following to the <VNF>/configuration/context.xml
<Resource name="movieDatabase"
type="javax.sql.DataSource"
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:movies;create=true"
JtaManaged="true"/>
<Resource name="movieDatabaseUnmanaged"
type="javax.sql.DataSource"
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:movies;create=true"
JtaManaged="false"/>
- I added org.apache.derby bundle to the impl.bunldes property located in <VNF>/configuration/config.ini
impl.bundles=org.eclipse.persistence.jpa;bundle-version\=2.4.1.v20121003-ad44345,org.eclipse.persistence.core;bundle-version\=2.4.1.v20121003-ad44345,org.apache.openwebbeans.impl;bundle-version\=1.1.7.v201304201405,org.apache.openwebbeans.web;bundle-version\=1.1.7.v201304201405,org.apache.openwebbeans.jsf;bundle-version\=1.1.7.v201304201405,org.apache.derby;bundle-version\=10.8.2.2_v201211210650
- I also added to the bootdelegation javax.management.* : <VNF>/configuration/java6-server.profile
org.osgi.framework.bootdelegation = \
org.eclipse.virgo.nano.authentication,\
com.sun.*,\
javax.xml.*,\
org.apache.xerces.jaxp.*,\
org.w3c.*,\
org.xml.*,\
sun.*,\
javax.management.*,\
javax.management
When I request http://localhost:8080/moviefun/setup.jsp I'm receiving:
javax.naming.NameNotFoundException: Name [org.superbiz.moviefun.ActionServlet/moviesBean] is not bound in this Context. Unable to find [org.superbiz.moviefun.ActionServlet].
org.apache.naming.NamingContext.lookup(NamingContext.java:820)
org.apache.naming.NamingContext.lookup(NamingContext.java:154)
May be I'm missing some other dependency that is available in Tomee but not in Virgo.
Please note that the steps above (except datasource declaration) are added because the application is not a bundle but a non-OSGI application.
Regards
Violeta
|
|
|
Powered by
FUDForum. Page generated in 0.20877 seconds