Hi Jamie
When will be this Cookbook available? Is early access of this book
available?
Regards
Krzysztof
On 16.04.2014 01:04, Jamie G. wrote:
Hi,
The below is from the work in progress of Apache Karaf Cookbook:
Chapter 7 :: Providing a persistence layer with Apache Aries and OpenJPA.
What the log says is that your bundle requires an EntityManagerFactory
for the persistence unit test but can not find one.
Unfortunately there are several possible reasons and aries jpa does not
show good errors.
1. Possibly your Manifest does not contain the Meta-Persistence entry.
Make
Hi Krzysztof,
We're hoping to have the book out in a few months. There is no early
access program :(
-Jamie
On Wed, Apr 16, 2014 at 4:27 AM, Christian Schneider
ch...@die-schneider.net wrote:
What the log says is that your bundle requires an EntityManagerFactory for
the persistence unit test
Thanks for the info Christian, I tried at first with hibernate and found that
the jpa 2.1 version might be the issue so I went back to OpenJPA. I also
made sure I used the 2.2.2 version as it seems like that had been a bit
better tested.
My bundle does have the Meta-Persistence info it, here is
Ok, just got it working. One exception caused me to double check some
settings, when I logged out of the karaf console I got:
java.lang.IllegalStateException: No persistence units defined for bundle
com.pww.test.demo/1.0.0.SNAPSHOT.
at
I think the silent failures are related to
https://issues.apache.org/jira/browse/ARIES-1160 .
The problem is that aries currently does not log the exceptions the
persistence provider throws.
In many cases this leads to the probblem that the EntityManagerFactory
can not be found but no error is
Code:
import org.springframework.context.support.ClassPathXmlApplicationContext;
...
ClassPathXmlApplicationContext context = new
ClassPathXmlApplicationContext(workflow-ws-context.xml);
also tried:
ClassPathXmlApplicationContext context = new
This is the first time I'm seeing this exception when i uninstall bundle or
halt system. Please provide more info as to why this may be happening and
how to fix. I modified the WAB code to use slf4j instead of log4j and util
logging. thx.
admin@NextGate uninstall 245
ERROR: Bundle
https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples/war-spring-osgi
I'm trying to build and test this sample project but it's failing:
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to
Same error on multiple builds:
org.ops4j.pax.web/samples/helloworld-hs
org.ops4j.pax.web/samples/war-spring
--
View this message in context:
http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032808.html
Sent from the Karaf - User
Looks a lot like it is mavens related, could you please use maven 3.0.x.
The project is still built with that version and proven to work with that
version.
Regards, Achim
sent from mobile device
Am 16.04.2014 21:54 schrieb asookazian2 asookaz...@gmail.com:
Same error on multiple builds:
Fails with 3.0.5 and 3.2.1 as well. Looks like mvn is using 1.6 JDK to
compile. Not having any problem with my work project builds however.
NextGates-MacBook-Pro:helloworld-hs arbisookazian$ mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
2014-02-14T09:37:52-08:00)
ok setting JAVA_HOME to installation path for JDK 7 fixed that problem.
now i successfully did 'mvn clean install' for the spring osgi pom and
getting following on startup in karaf 3.0.0:
admin@NextGate install
manifest.mf from WAR:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven Bundle Plugin
Built-By: arbisookazian
Build-Jdk: 1.7.0_51
Bnd-LastModified: 1397686489449
Bundle-Classpath: WEB-INF/classes
Bundle-Description: Pax Web Samples
Bundle-DocURL:
there is no WEB-INF/lib with these spring dependencies in the WAR/WAB. So
which other bundles/projects are required for installation in karaf to test
this spring osgi karaf web app???
--
View this message in context:
I've opened https://issues.apache.org/jira/browse/KARAF-2917 to track #1. I
would find this useful too... or maybe we need a sed command in Karaf :-)
Not sure we should implement #2 as bundle:install operates on a bundle list
so the args should applicable to the whole bundle list IMO.
On Tue,
war-spring/pom.xml:
Bundle-Classpath
WEB-INF/classes,
WEB-INF/lib/aopalliance-1.0.jar,
WEB-INF/lib/commons-logging-1.1.1.jar,
WEB-INF/lib/spring-aop-3.1.0.RELEASE.jar,
Made the bundle-classpath match for both but there is no WEB-INF/lib
directory being created by mvn during mvn install...
--
View this message in context:
http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032817.html
Sent from the
Ok the problem was that some of the dependencies in the osgi spring pom were
defined as provided, etc. so none of the libs were making it into the
web-inf/lib dir, now they're there.
I am able to install and activate the war-spring.war (OSGi spring version).
I am able to navigate to
just realized those code samples from org.ops4j.pax.web don't use this type
of code:
ClassPathXmlApplicationContext context = new
ClassPathXmlApplicationContext(WEB-INF/classes/workflow-ws-context.xml);
and it's not able to resolve that reference to that resource. how to
handle?
--
View this
In regards to #2 the '-s' start flag operates on all the bundles
listed, it would appear to be fare game to set a list of bundles to a
particular start level as well. The 'help' entry should have
appropriate notice of how it operates of course.
--Jamie
On Wed, Apr 16, 2014 at 8:05 PM, Jon Anstey
Just some quick hints from my side. You are using pax web samples in
version 4.0.0-snapshot those won't work with karaf 3. You'll need to use
the 3.1 samples available from maven central if you have karaf 3.0.1. And
make sure the required features are installed. That would be spring-dm and
some
22 matches
Mail list logo