Re: Apache 2, Tomcat 5, and JK2.

2003-11-24 Thread Davide Gurgone
Thanks a lot!!!

Davide Gurgone!

> http://jakarta.apache.org/tomcat/faq/
>
> Any where it say tomcat 4.1 (its probbaly the same for 5)
>
> -Tim
>
> John Bell wrote:
> > Hi,
> >
> > Can anyone point me to a how-to please.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNDI without edit server.xml

2005-02-07 Thread Davide Gurgone
Hi all,
I've got a problem.
I'm using tomcat 5.0 with Oracle 9.2i. Now I want to upgrade tomcat to 
the newest version, but the same configuration doesn't work again.

I used this solution for tomcat 5.0, because I don't whant to write 
anithing on tomcat server.xml file.

To configure and use it I created ONLY this xml and put it on 
$TOMCAT_HOME/conf/catalina/localhost/strutsProva.xml file.


  

  
driverClassName
oracle.jdbc.OracleDriver
  
  
url
jdbc:oracle:thin:@localhost:1521:sweet
  
  
username
dasit
  
  
password
dasilab
  
  
maxActive
1
  
  
maxWait
5000
  
  
maxIdle
2
  


Anybody knows how to configure a jndi service on tomcat, without write 
anithing on server.xml file? I have to leave it clean 'cause I don't 
know who will install my application.

Thanks all,
Davide
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JNDI without edit server.xml

2005-02-07 Thread Davide Gurgone
fstmncn wrote:
you should edit context.xml under META-INF in your
web-application.
HTH,
Fausto.
Hi Fausto,
Thank you for the response,
I try your solution, but I think I wrong something, 'cause the problem 
is the same:
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
.

In order I delete the strutsProva.xml from
  $TOMCAT_HOME/conf/Catalina/localhost
and I put the same content in a new $WEB_APP/META-INF/context.xml file.
Finally I deployed the application from the tomcat manager, adding the 
Directory URL and the Context Path.

I think Tomcat doesn't read the file!
How can I say to Tomcat the file location?
Have you got any other suggests?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JNDI without edit server.xml

2005-02-07 Thread Davide Gurgone
fstmncn wrote:
It looks like it can't find the db driver.
Try putting it under WeB-INF\lib if you haven't done
it yet.
Moreover be sure to have the references in the web.xml
of your application. These are mine, for example:
[CUT]
I'm sorry for the late, unfortunately today I was away from the office.
Well... I try both of your solution, but the resource doesn't work again..
I put
  classes12.jar
  jndi.jar
  jdbc2_0-stdext.jar
  commons-pool-1.2.jar
  commons-dbcp-1.2.1.jar
in WEB-INF/lib dir (but they are also leave there in 
$TOMCAT_HOME/common/lib dir).
I write the context.xml file and I put it into $PROJECT_HOME/META-INF 
dir, like described in my first thread and finally I add this rows in 
WEB-INF/web.xml:

  
  
  
jdbc/strutsProva
javax.sql.DataSource
Container
  
I don't add anything in server.xml or in another file...
What can I do to deploy it correctly?
,-O
I whanna cry!!!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JNDI without edit server.xml

2005-02-08 Thread Davide Gurgone
Harry Mantheakis wrote:
I think your  element is missing the 'factory' parameter.
[CUT]
Thank you 4 the response...
I try it and now the error is changed:
java.lang.NoSuchMethodError: 
org.apache.naming.resources.ProxyDirContext.lookupCache(Ljava/lang/String;)Lorg/apache/nami
ng/resources/CacheEntry;
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:663)

Any idea?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]