Re: [Vif-devel] Problem with database access
Brought to you by:
aktion-hip
|
From: Luthiger S. B. <ben...@id...> - 2006-06-20 15:35:43
|
Dear Harry
It seems that you encounter the same problem I've faced once. This has =
to do with the JNDI lookup mechanism I guess.
I've been able to solve the problem by changing the attributes in the =
Tomcat instances server.xml.
When I set the attributes of the <Host> element as follows:
<Host name=3D"localhost" appBase=3D"webapps"=20
unpackWARs=3D"true" autoDeploy=3D"false" />
the application was able to create the JNDI context and, therefore, to =
lookup the resources.
When I set autoDeploy=3D"true", I recognized that my changes to the =
context.xml (in $TOMCAT/webapps/vifapp/META-INF/context.xml) where =
overwritten by the original context.xml provided by the vifapp.war.
HTH
Benno
-----Original Message-----
From: vif...@li... =
[mailto:vif...@li...]On Behalf Of Harry =
Glasgow
Sent: Dienstag, 20. Juni 2006 15:39
To: vif...@li...
Subject: Re: [Vif-devel] Vif-devel Digest, Vol 1, Issue 93
Dear Benno,
I have made some progress. I am able to get the smoke to show the =
database information but only if I use the tomcat administration console =
to create the data source. jdbc/VIF exists in the vifapp resources but =
is initially unconfigured. Which file configures this? I have tried =
changing vifapp\META-INF\Context.xml and restarting but it does not =
alter things.
Also I have substituted the servlet jar from tomcat and can now compile =
the code base, thanks.
Regards,
Harry
=20
|