|
|
|
Re: Java EE 6 Web Profile [message #1161204 is a reply to message #1158401] |
Tue, 29 October 2013 16:51 |
Lazar Kirchev Messages: 30 Registered: July 2009 Location: Sofia, Bulgaria |
Member |
|
|
Try to add the resources in context.xml as Tomcat resources and remove them from openejb.xml:
<Resource id="movieDatabase"
type="DataSource"
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:memory:movies;create=true"
JtaManaged="true"/>
<Resource id="movieDatabaseUnmanaged"
type="DataSource"
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:memory:movies;create=true"
JtaManaged="false"/>
[Updated on: Tue, 29 October 2013 16:53] Report message to a moderator
|
|
|
|
|
|
|
Re: Java EE 6 Web Profile [message #1162951 is a reply to message #1162736] |
Wed, 30 October 2013 18:44 |
Violeta Georgieva Messages: 278 Registered: October 2010 |
Senior Member |
|
|
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.04984 seconds