Hi
This is not an issue, I had a wrong service.xml file, so now everything is
fine, but thanks for all the help
Håkon
2008/11/12 Ognjen Blagojevic <[EMAIL PROTECTED]>
> If this is still the issue, here is my config (Tomcat 6.0.13, Axis 1.3,
> OpenJPA 1.2.0), very similar to what Jeremy posted e
If this is still the issue, here is my config (Tomcat 6.0.13, Axis 1.3,
OpenJPA 1.2.0), very similar to what Jeremy posted earlier. The only
difference I see is tag in persistence.xml.
--- context.xml ---
type="javax.sql.DataSource"
maxActive="7"
maxIdle="3"
Hi
Thanks so much for the help, now it works for the serlvet, so just trying to
get it to work for the web service also and I'll be a happy guy
cheers, Håkon
2008/11/5 Jeremy Bauer <[EMAIL PROTECTED]>
> Hi Håkon,
>
> Try defining a non-jta data source in your persistence.xml. That should
> cor
Hi Håkon,
Try defining a non-jta data source in your persistence.xml. That should
correct the problem. You can even use the same data source as you've
defined for your jta-data-source name.
ex: java:comp/env/jdbc/workflowdb
-Jeremy
On Wed, Nov 5, 2008 at 7:08 AM, Håkon Sagehaug
<[EMAIL PROTEC
Hi
I tried to get it to just work on a servlet and have more success here, but
have now this problem, when I want to get the transaction in my servlet like
this I
em.getTransaction().begin();
and error is thrown
Caused by: java.sql.SQLException: Unable to obtain a TransactionManager
using null.
Hi all,
I don't know exactly my problems lies, but think it may be in axis or I'm
not sure. Because i got hold of the context in a normail servlet with this
code
Context initCtx = null;
Context envCtx;
DataSource ds = null;
try {
initCtx = new InitialContext();
envCt
Hi
I am not sure whether you are still facing the issue.
if yes i think you can try like this:
It worked for me. Try again. All the best.
-Mani
Håkon Sagehaug wrote:
>
> Hi
>
> I think you may have to send me a
Hi
I think you may have to send me all ;). I tried from the beginning with a
clean tomcat and axis 2 install, and configured like you said, but still the
same problem, so if you could send me what you think I need for getting it
to work I would appreciate it
cheers, Håkon
2008/11/3 Jeremy Bauer
Are you running a packaged service within the Axis2 app (an .aar archive) or
is your service deployed as part of a separate web application? I was able
to get an OpenJPA-based Axis2 service to work deployed within a standalone
web application. I used Tomcat 5.5, Axis 2-1.4.1 and OpenJPA 1.2.0.
I
I found this:
http://www.experts-exchange.com/Software/Server_Software/Application_Servers/Java/Apache_Tomcat/Q_23207819.html
which
indicated that you need to create a resource link between the data source
you defined in the service.xml and resource ref in the web.xml, by defining
this in the conte
got resolved as soon as I removed those
conflicting jars from my webapp. you can try the same. Hopefully this will help.
Thanks
Sandhya
--- On Mon, 11/3/08, Håkon Sagehaug <[EMAIL PROTECTED]> wrote:
From: Håkon Sagehaug <[EMAIL PROTECTED]>
Subject: Re: Using datasource from to
Hi
when I try to do this programmatically like this
Context initCtx = null;
Context envCtx;
DataSource ds = null;
try {
initCtx = new InitialContext();
// envCtx = (Context) initCtx.lookup("java:/comp/env");
ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/
You may also need to define a resource reference in your web.xml.
This link contains a good example on how to configure and use a data
source:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html.
The configuration part is what is important for OpenJPA, since it
just looks
Hi
I added resource configuration to the web.xml of axis2, and tried also to
make a web.xml for the web service but neither of this worked. Any onther
tips, it world be realy nice to get this to work for me
cheers, Håkon
2008/11/3 Jeremy Bauer <[EMAIL PROTECTED]>
> You may also need to define a
hi
Some more information
Since the ws is running inside axis2 i used this context tag configuration
in server.xml
2008/11/3 Håkon Sagehaug <[EMAIL PROTECTED]>
> Hi
>
> Yes I've tried this, but still gets the same message, any other hints ??
>
> I use openjpa 1.2.0 , tomcat 5.5.26 and ax
Hi
Yes I've tried this, but still gets the same message, any other hints ??
I use openjpa 1.2.0 , tomcat 5.5.26 and axis2 1.3 if this is of use
cheers, Håkon
2008/11/3 Michael Dick <[EMAIL PROTECTED]>
> Have you tried
> java:comp/env/jdbc/workflowdb instead of
> the property for openjpa.Connec
Have you tried
java:comp/env/jdbc/workflowdb instead of
the property for openjpa.ConnectionFactoryName?
-mike
On Mon, Nov 3, 2008 at 8:22 AM, Håkon Sagehaug
<[EMAIL PROTECTED]>wrote:
> Hi all,
>
> I've got a axis2 web service that is deployed in tomcat and talk to a
> database using openjpa. Thi
17 matches
Mail list logo