You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kencana <bl...@hotmail.com> on 2007/05/04 09:07:50 UTC
JDBC Database connection
Hi all,
I am a new bie of axis. What I am trying now is to connect the service to
the database.
can somebody teach or tell me the step of connecting to the JDBC database.
is there any guidelines of doing it?any reference?
Thank you
Regards,
Kencana
--
View this message in context: http://www.nabble.com/JDBC-Database-connection-tf3690546.html#a10317941
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On Fri, 2007-05-04 at 01:59 -0700, Kencana wrote:
> Hi,
>
> sorry but i dun get what you mean in the last post.
> "So I do you know you can't establish a connection?"
You said there are no errors, right?, However the fact that you can't
establish a connection to the db server is an error, so it should be
logged somewhere (app server/servlet container or your own logs).
>
> anyway in the previous post you mentioned about class loader error.
> if in that case how do we handle that?
A class loader problem means that a library is not found. You should see
an error like ClassNotFoundException. You sort it out by putting the
required jar files to the path.
If you use Tomcat it should be $CATALINA_HOME/common/lib and in /lib of
your service (aar) file.
Michele
> maybe i can try it out
>
> Thanks
> Regards,
> Kencana
>
> Michele Mazzucco-2 wrote:
> >
> > So I do you know you can't establish a connection?
> >
> > Michele
> >
> > On Fri, 2007-05-04 at 01:40 -0700, Kencana wrote:
> >> Hi,
> >>
> >> there is no error message at all (either from the log file or from the
> >> browser)
> >>
> >> Kencana
> >>
> >>
> >> Michele Mazzucco-2 wrote:
> >> >
> >> > What's the error? Could it be a class loader issue?
> >> >
> >> > Michele
> >> >
> >> > On Fri, 2007-05-04 at 01:29 -0700, Kencana wrote:
> >> >> Hi Michele,
> >> >>
> >> >> Thanks for the reply. if it is similar to the normal case, I cant get
> >> >> through the following phase
> >> >> Class.forName(drivername);
> >> >> I don't know why I can't establish the connection
> >> >>
> >> >> any idea of this?
> >> >>
> >> >> Thanks
> >> >>
> >> >> Regards,
> >> >> Kencana
> >> >>
> >> >>
> >> >>
> >> >> Michele Mazzucco-2 wrote:
> >> >> >
> >> >> > On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
> >> >> >> Hi all,
> >> >> >>
> >> >> >> I am a new bie of axis. What I am trying now is to connect the
> >> service
> >> >> to
> >> >> >> the database.
> >> >> >> can somebody teach or tell me the step of connecting to the JDBC
> >> >> >> database.
> >> >> >> is there any guidelines of doing it?any reference?
> >> >> >
> >> >> > Is there any difference compared to the 'normal' case?, I guess no.
> >> >> > http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
> >> >> > +tutorial&btnG=Google+Search&meta=
> >> >> >
> >> >> > Michele
> >> >> >
> >> >> >>
> >> >> >> Thank you
> >> >> >>
> >> >> >> Regards,
> >> >> >> Kencana
> >> >> >
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Kencana <bl...@hotmail.com>.
Hi,
sorry but i dun get what you mean in the last post.
"So I do you know you can't establish a connection?"
anyway in the previous post you mentioned about class loader error.
if in that case how do we handle that?
maybe i can try it out
Thanks
Regards,
Kencana
Michele Mazzucco-2 wrote:
>
> So I do you know you can't establish a connection?
>
> Michele
>
> On Fri, 2007-05-04 at 01:40 -0700, Kencana wrote:
>> Hi,
>>
>> there is no error message at all (either from the log file or from the
>> browser)
>>
>> Kencana
>>
>>
>> Michele Mazzucco-2 wrote:
>> >
>> > What's the error? Could it be a class loader issue?
>> >
>> > Michele
>> >
>> > On Fri, 2007-05-04 at 01:29 -0700, Kencana wrote:
>> >> Hi Michele,
>> >>
>> >> Thanks for the reply. if it is similar to the normal case, I cant get
>> >> through the following phase
>> >> Class.forName(drivername);
>> >> I don't know why I can't establish the connection
>> >>
>> >> any idea of this?
>> >>
>> >> Thanks
>> >>
>> >> Regards,
>> >> Kencana
>> >>
>> >>
>> >>
>> >> Michele Mazzucco-2 wrote:
>> >> >
>> >> > On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
>> >> >> Hi all,
>> >> >>
>> >> >> I am a new bie of axis. What I am trying now is to connect the
>> service
>> >> to
>> >> >> the database.
>> >> >> can somebody teach or tell me the step of connecting to the JDBC
>> >> >> database.
>> >> >> is there any guidelines of doing it?any reference?
>> >> >
>> >> > Is there any difference compared to the 'normal' case?, I guess no.
>> >> > http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
>> >> > +tutorial&btnG=Google+Search&meta=
>> >> >
>> >> > Michele
>> >> >
>> >> >>
>> >> >> Thank you
>> >> >>
>> >> >> Regards,
>> >> >> Kencana
>> >> >
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>> >
>> >
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JDBC-Database-connection-tf3690546.html#a10319213
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
So I do you know you can't establish a connection?
Michele
On Fri, 2007-05-04 at 01:40 -0700, Kencana wrote:
> Hi,
>
> there is no error message at all (either from the log file or from the
> browser)
>
> Kencana
>
>
> Michele Mazzucco-2 wrote:
> >
> > What's the error? Could it be a class loader issue?
> >
> > Michele
> >
> > On Fri, 2007-05-04 at 01:29 -0700, Kencana wrote:
> >> Hi Michele,
> >>
> >> Thanks for the reply. if it is similar to the normal case, I cant get
> >> through the following phase
> >> Class.forName(drivername);
> >> I don't know why I can't establish the connection
> >>
> >> any idea of this?
> >>
> >> Thanks
> >>
> >> Regards,
> >> Kencana
> >>
> >>
> >>
> >> Michele Mazzucco-2 wrote:
> >> >
> >> > On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
> >> >> Hi all,
> >> >>
> >> >> I am a new bie of axis. What I am trying now is to connect the service
> >> to
> >> >> the database.
> >> >> can somebody teach or tell me the step of connecting to the JDBC
> >> >> database.
> >> >> is there any guidelines of doing it?any reference?
> >> >
> >> > Is there any difference compared to the 'normal' case?, I guess no.
> >> > http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
> >> > +tutorial&btnG=Google+Search&meta=
> >> >
> >> > Michele
> >> >
> >> >>
> >> >> Thank you
> >> >>
> >> >> Regards,
> >> >> Kencana
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Kencana <bl...@hotmail.com>.
Hi,
there is no error message at all (either from the log file or from the
browser)
Kencana
Michele Mazzucco-2 wrote:
>
> What's the error? Could it be a class loader issue?
>
> Michele
>
> On Fri, 2007-05-04 at 01:29 -0700, Kencana wrote:
>> Hi Michele,
>>
>> Thanks for the reply. if it is similar to the normal case, I cant get
>> through the following phase
>> Class.forName(drivername);
>> I don't know why I can't establish the connection
>>
>> any idea of this?
>>
>> Thanks
>>
>> Regards,
>> Kencana
>>
>>
>>
>> Michele Mazzucco-2 wrote:
>> >
>> > On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
>> >> Hi all,
>> >>
>> >> I am a new bie of axis. What I am trying now is to connect the service
>> to
>> >> the database.
>> >> can somebody teach or tell me the step of connecting to the JDBC
>> >> database.
>> >> is there any guidelines of doing it?any reference?
>> >
>> > Is there any difference compared to the 'normal' case?, I guess no.
>> > http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
>> > +tutorial&btnG=Google+Search&meta=
>> >
>> > Michele
>> >
>> >>
>> >> Thank you
>> >>
>> >> Regards,
>> >> Kencana
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>> >
>> >
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JDBC-Database-connection-tf3690546.html#a10318954
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
What's the error? Could it be a class loader issue?
Michele
On Fri, 2007-05-04 at 01:29 -0700, Kencana wrote:
> Hi Michele,
>
> Thanks for the reply. if it is similar to the normal case, I cant get
> through the following phase
> Class.forName(drivername);
> I don't know why I can't establish the connection
>
> any idea of this?
>
> Thanks
>
> Regards,
> Kencana
>
>
>
> Michele Mazzucco-2 wrote:
> >
> > On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
> >> Hi all,
> >>
> >> I am a new bie of axis. What I am trying now is to connect the service to
> >> the database.
> >> can somebody teach or tell me the step of connecting to the JDBC
> >> database.
> >> is there any guidelines of doing it?any reference?
> >
> > Is there any difference compared to the 'normal' case?, I guess no.
> > http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
> > +tutorial&btnG=Google+Search&meta=
> >
> > Michele
> >
> >>
> >> Thank you
> >>
> >> Regards,
> >> Kencana
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Kencana <bl...@hotmail.com>.
Hi Michele,
Thanks for the reply. if it is similar to the normal case, I cant get
through the following phase
Class.forName(drivername);
I don't know why I can't establish the connection
any idea of this?
Thanks
Regards,
Kencana
Michele Mazzucco-2 wrote:
>
> On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
>> Hi all,
>>
>> I am a new bie of axis. What I am trying now is to connect the service to
>> the database.
>> can somebody teach or tell me the step of connecting to the JDBC
>> database.
>> is there any guidelines of doing it?any reference?
>
> Is there any difference compared to the 'normal' case?, I guess no.
> http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
> +tutorial&btnG=Google+Search&meta=
>
> Michele
>
>>
>> Thank you
>>
>> Regards,
>> Kencana
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/JDBC-Database-connection-tf3690546.html#a10318822
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: JDBC Database connection
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On Fri, 2007-05-04 at 00:07 -0700, Kencana wrote:
> Hi all,
>
> I am a new bie of axis. What I am trying now is to connect the service to
> the database.
> can somebody teach or tell me the step of connecting to the JDBC database.
> is there any guidelines of doing it?any reference?
Is there any difference compared to the 'normal' case?, I guess no.
http://www.google.co.uk/search?source=ig&hl=en&q=java+%26+jdbc
+tutorial&btnG=Google+Search&meta=
Michele
>
> Thank you
>
> Regards,
> Kencana
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: JDBC Database connection
Posted by "Rudolph, Troy" <Tr...@ca.com>.
Hello Kencana,
I am using JDBC with Axis2 on Tomcat 5.5.
You need to put the .jar files for your JDBC driver in
%CATALINA_HOME%\commmon\lib. Also, I added an implementation of
ServiceLifeCycle to my project. In ServiceLifeCycle.startUp(), I
initialize the connection pooling and do other initializations. To make
Axis2 call your implementation, you must identify it in the services.xml
file.
<service name="CUS"
class="com.ca.contentupdate.cus.CUSLifeCycle">
Hope this helps.
Troy
-----Original Message-----
From: Kencana [mailto:bluesky_dyx@hotmail.com]
Sent: Friday, May 04, 2007 2:08 AM
To: axis-user@ws.apache.org
Subject: JDBC Database connection
Hi all,
I am a new bie of axis. What I am trying now is to connect the service
to the database.
can somebody teach or tell me the step of connecting to the JDBC
database.
is there any guidelines of doing it?any reference?
Thank you
Regards,
Kencana
--
View this message in context:
http://www.nabble.com/JDBC-Database-connection-tf3690546.html#a10317941
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org