wrong System encoding

2006-01-18 Thread jacky
hi,
RedHat7.3(System encoding is iso8859-15), tomcat 4.1.30
When i use System.getProperty("file.encoding") in a jsp, it print "utf-8". 
I think the "utf-8" must be the encode of tomcat,but how can i get the system 
encode: iso8859-15?  In fact, i need the right encode to write/read file.
BTW, i wander why the encode of tomcat container changes to "utf-8". Is the 
reason because i used "reponse.setContentType("text/html; charset=utf-8")?
    Any suggestion is helpful!

 Best Regards.
   jacky  
   

jdbc context

2006-02-13 Thread jacky
hi,
   I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the 
following code in server.xml:


  
  
  
 maxActive

 100


 maxIdle

 30


 maxWait

 15000


 removeAbandoned

 true


 removeAbandonedTimeout

 60


 logAbandoned

 false


 factory

 org.apache.commons.dbcp.BasicDataSourceFactory
  
usernamesa
password
driverClassName
  
com.microsoft.jdbc.sqlserver.SQLServerDriver
url
  
jdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflow
  


It works well. But now, we need to migrate myworkflow into another 
tomcat4.1.31, in which the server.xml can't be modified.
So what shall i do to deploy the jdbc context? Thanks for your help!

 Best Regards.
   jacky  
   

Re: jdbc context

2006-02-13 Thread jacky
ok, thanks a lot!

 Best Regards.
   jacky  
   
- Original Message - 
From: "Duan, Nick" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, February 14, 2006 12:21 AM
Subject: RE: jdbc context


Well, I guess it was my mistake.  In Tomcat 5.5 you will be able to
define the context information within each web app, by creating a
context.xml in your war file, and the corresponding resource-ref in
web.xml.  Apparently this is not available in tomcat 4.1

I guess there are two options you may consider:  One is to upgrade your
tomcat to 5.5.  The other is to change the web app not to use JNDI, but
to use the data source factory directly in your code.

Hope this helps.

ND

-Original Message-
From: chen jacky [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 13, 2006 10:49 AM
To: users@tomcat.apache.org
Subject: RE: jdbc context

hi,
  Do you mean add the following code in the web.xml?

  DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container
  

But this still need to add the jdbc config in the server.xml,right?
Can you give me some suggestions?

>From: "Duan, Nick" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" 
>To: "Tomcat Users List" 
>Subject: RE: jdbc context
>Date: Mon, 13 Feb 2006 10:11:34 -0500
>
>You should be able to add the context info in your web.xml file.  In
>other words, instead of making the JDBC resource available to all web
>apps, you make it only to particular applications.  If this JDBC
>connection is only used by the workflow web app, defining it in web.xml
>is actually preferred.
>
>ND
>
>-Original Message-
>From: jacky [mailto:[EMAIL PROTECTED]
>Sent: Monday, February 13, 2006 5:07 AM
>To: users@tomcat.apache.org
>Subject: jdbc context
>
>hi,
>I have deploy a workflow webapp in Tomcat4.1.31. First time, i add
>the following code in server.xml:
>
>
>   
>   
>   
>  maxActive
> 
>  100
> 
> 
>  maxIdle
> 
>  30
> 
> 
>  maxWait
> 
>  15000
> 
> 
>  removeAbandoned
> 
>  true
> 
> 
>  removeAbandonedTimeout
> 
>  60
> 
> 
>  logAbandoned
> 
>  false
> 
> 
>  factory
> 
>  org.apache.commons.dbcp.BasicDataSourceFactory
>   
>
>usernamesa
>
password
> driverClassName
>
>com.microsoft.jdbc.sqlserver.SQLServerDriver
> url
>
>jdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflo
w
>
>   
>
>
>It works well. But now, we need to migrate myworkflow into another
>tomcat4.1.31, in which the server.xml can't be modified.
>So what shall i do to deploy the jdbc context? Thanks for your help!
>
>  Best Regards.
>jacky
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



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


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



context error

2006-02-13 Thread jacky
hi,
   When i add a Context in the server.xml, an error occurs:

Apache Tomcat/4.1.31
Catalina.start: LifecycleException:  Context startup failed due to previous 
errors
LifecycleException:  Context startup failed due to previous errors
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException:  Coyote connector has not been started
LifecycleException:  Coyote connector has not been started
at 
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
at 
org.apache.catalina.core.StandardService.stop(StandardService.java:499)
at 
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

If i remove the added context, tomcat will start.
In fact, i rearrange the directories, i don't know if this will impact on the 
Context. If i put all directories under $CATALINA_HOME, tomcat will work well 
with the Context.

 $CATALINA_HOME/bin/
   shared/
   server/

$CATALINA_BASE/bin/
   conf/
   webapps/
   logs/
   work/

Context is as following:   

   
 Best Regards.
   jacky  
   

Re: context error

2006-02-14 Thread jacky
hi, Mike,
   Do you mean put all directories together? 
No, we need to separate them. So, any other suggestions about this problem?

 Best Regards.
   jacky  
   
- Original Message - 
From: "Mike Sabroff" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, February 14, 2006 10:56 PM
Subject: Re: context error


> Then do that
> 
> jacky wrote:
> >
> > hi,
> > When i add a Context in the server.xml, an error occurs:
> >
> > Apache Tomcat/4.1.31
> > Catalina.start: LifecycleException: Context startup failed due to
> > previous errors
> > LifecycleException: Context startup failed due to previous errors
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)
> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
> > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:450)
> > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
> > Stopping service Tomcat-Standalone
> > Catalina.stop: LifecycleException: Coyote connector has not been started
> > LifecycleException: Coyote connector has not been started
> > at
> > org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
> > at org.apache.catalina.core.StandardService.stop(StandardService.java:499)
> > at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
> >
> > If i remove the added context, tomcat will start.
> > In fact, i rearrange the directories, i don't know if this will impact
> > on the Context. If i put all directories under $CATALINA_HOME, tomcat
> > will work well with the Context.
> >
> > $CATALINA_HOME/bin/
> > shared/
> > server/
> >
> > $CATALINA_BASE/bin/
> > conf/
> > webapps/
> > logs/
> > work/
> >
> > Context is as following:
> > 
> >
> > Best Regards.
> > jacky
> >
> 
> -- 
> Mike Sabroff
> Web Services
> Developer
> [EMAIL PROTECTED]
> 920-568-8379
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Re: Re: context error

2006-02-15 Thread jacky
hi,
   RedHat7.3,  J2sdk1.4.2_10
server.xml is the default server.xml:









  



  

  
  




























  
  

  
  

  

  

  

  

  

  

  
  














 //here, 
myworkflow is my web app.
  



  

  

  
  






  
  

  
  



  




 Best Regards.
   jacky  
   
- Original Message - 
From: "Warren Pace" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, February 15, 2006 6:42 PM
Subject: Re: Re: context error


> 
> > 
> > From: "jacky" <[EMAIL PROTECTED]>
> > Date: 2006/02/14 Tue PM 08:32:56 EST
> > To: "Tomcat Users List" , 
> > <[EMAIL PROTECTED]>
> > Subject: Re: context error
> > 
> > hi, Mike,
> >Do you mean put all directories together? 
> > No, we need to separate them. So, any other suggestions about this problem?
> > 
> >  Best Regards.
> >jacky  
> > 
> Could you send us your server.xml with and without the added context?  I see 
> you're using 4.1.  What OS and what JVM are you using?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Re: Re: context error

2006-02-15 Thread jacky
BTW, if i remove the  from 
the server.ml,
then tomcat can start. but  i can't login the manager tool
which is http://localhost:8080/manager/html with admin/admin, and still can't 
access myworkflow by http://localhost:8080/myworkflow/

 Best Regards.
   jacky  
   
- Original Message - 
From: "jacky" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, February 16, 2006 10:00 AM
Subject: Re: Re: context error


> hi,
>RedHat7.3,  J2sdk1.4.2_10
> server.xml is the default server.xml:
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
>   
> 
>   
>   
> 
> 
> 
> 
> port="8080" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0" connectionTimeout="2"
>useURIValidationHack="false" disableUploadTimeout="true" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
> 
>   
>  prefix="catalina_log." suffix=".txt"
>   timestamp="true"/>
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
>   unpackWARs="true" autoDeploy="true">
> 
> 
> 
> 
> 
>   directory="logs"  prefix="localhost_access_log." 
> suffix=".txt"
>  pattern="common"/>
> 
> 
>   directory="logs"  prefix="localhost_log." suffix=".txt"
>  timestamp="true"/>
> 
> 
> 
> 
> 
>  //here, 
> myworkflow is my web app.
>   
> 
> 
> 
>   
> 
>   
> 
>   
>   
> 
>   port="8008" minProcessors="5" maxProcessors="75"
>  enableLookups="true"
>  acceptCount="10" debug="0"/>
> 
> 
>   name="Apache" debug="0" appBase="webapps">
> 
>   
>  prefix="apache_log." suffix=".txt"
>   timestamp="true"/>
> 
>   
>   
> 
> 
> 
>   
> 
> 
> 
> 
>  Best Regards.
>jacky  
>
> - Original Message - 
> From: "Warren Pace" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Wednesday, February 15, 2006 6:42 PM
> Subject: Re: Re: context error
> 
> 
> > 
> > > 
> > > From: "jacky" <[EMAIL PROTECTED]>
> > > Date: 2006/02/14 Tue PM 08:32:56 EST
> > > To: "Tomcat Users List" , 
> > > <[EMAIL PROTECTED]>
> > > Subject: Re: context error
> > > 
> > > hi, Mike,
> > >Do you mean put all directories together? 
> > > No, we need to separate them. So, any other suggestions about this 
> > > problem?
> > > 
> > >  Best Regards.
> > >jacky  
> > > 
> > Could you send us your server.xml with and without the added context?  I 
> > see you're using 4.1.  What OS and what JVM are you using?
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >

Re: Re: context error

2006-02-16 Thread jacky
  I added the   reloadable="true" crossContext="true", but the same errors 
occur.

 Best Regards.
   jacky  
   
- Original Message - 
From: "Warren Pace" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, February 17, 2006 5:35 AM
Subject: Re: Re: context error


> 
> > 
> > From: "jacky" <[EMAIL PROTECTED]>
> > Date: 2006/02/15 Wed PM 09:00:29 EST
> > To: "Tomcat Users List" 
> > Subject: Re: Re: context error
> > 
> > hi,
> >RedHat7.3,  J2sdk1.4.2_10
> > server.xml is the default server.xml:
> 
> > 
> > 
> >  //here, 
> > myworkflow is my web app.
> Been a while since I used 4.1 - this is from memory.
> try
>reloadable="true" crossContext="true">
> 
> >   
> > 
> > 
> > 
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >  >  port="8008" minProcessors="5" maxProcessors="75"
> >  enableLookups="true"
> >  acceptCount="10" debug="0"/>
> > 
> > 
> >  >  name="Apache" debug="0" appBase="webapps">
> > 
> >   
> >>   prefix="apache_log." suffix=".txt"
> >   timestamp="true"/>
> > 
> >   
> >   
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > 
> >  Best Regards.
> >jacky  
> >
> > - Original Message - 
> > From: "Warren Pace" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" 
> > Sent: Wednesday, February 15, 2006 6:42 PM
> > Subject: Re: Re: context error
> > 
> > 
> > > 
> > > > 
> > > > From: "jacky" <[EMAIL PROTECTED]>
> > > > Date: 2006/02/14 Tue PM 08:32:56 EST
> > > > To: "Tomcat Users List" , 
> > > > <[EMAIL PROTECTED]>
> > > > Subject: Re: context error
> > > > 
> > > > hi, Mike,
> > > >Do you mean put all directories together? 
> > > > No, we need to separate them. So, any other suggestions about this 
> > > > problem?
> > > > 
> > > >  Best Regards.
> > > >jacky  
> > > > 
> > > Could you send us your server.xml with and without the added context?  I 
> > > see you're using 4.1.  What OS and what JVM are you using?
> > > 
> > > 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Re: Re: context error

2006-02-16 Thread jacky
I added the , it still doesn't work

 Best Regards.
   jacky  
   
- Original Message - 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, February 17, 2006 10:13 AM
Subject: RE: Re: context error


> From: "jacky" <[EMAIL PROTECTED]>
> Subject: Re: Re: context error
> 
> server.xml is the default server.xml:
> 
> 
> 

Part of the problem may be that you have no default .  There
should be one (and only one)  tag with path="".  If you want
your app to be the default, you can just set its path to "".

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



servlet url pattern problem!

2007-04-03 Thread jacky

in web.xml:

   login
   /servlet/login

in jsp:

There is an error when the jsp is submit (URL:
http://localhost:8080/test/servlet/login):

type Status report
message /test/servlet/
description The requested resource (/test/servlet/) is not available.

If i remove servlet/,the url http://localhost:8080/test/login can be
accessed correctly.
in web.xml:

   login
   /login

in jsp:


Your help is appreciated!
--
 Best Regards.
 jacky


Re: servlet url pattern problem!

2007-04-04 Thread jacky

It is /servlet/login indeed. In fact, my jsp structure is as
following:
in index.jsp:
 

in top.jsp:

..

//here, the form will be submit



On 4/3/07, David Delbecq <[EMAIL PROTECTED]> wrote:


En l'instant précis du 03/04/07 11:47, jacky s'exprimait en ces termes:
> in web.xml:
> 
> login
> /servlet/login
> 
> in jsp:
>  method="POST" >
> There is an error when the jsp is submit (URL:
> http://localhost:8080/test/servlet/login):
>
> type Status report
> message /test/servlet/
> description The requested resource (/test/servlet/) is not available.
You tried to post to /servlet, not /servlet/login
according to your error message. Check you didn't forget a /login
somewhere in your jsp.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
 Best Regards.
 jacky


Re: servlet url pattern problem!

2007-04-04 Thread jacky

It is amazing! Thanks, i will look into it to find out what is the problem.

On 4/5/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:


If you compile the Servlet class and Re-start Tomcat after defining
the mapping in web.xml it should work.

I tried the following and it works:

-
web.xml
-
   
   login
   test66.LoginServlet
   
   
   login
   /servlet/login
   

--
LoginServlet   compiled
--
package test66;

import javax.servlet.*;

public class LoginServlet extends HttpServlet {
   public void doPost(HttpServletRequest request, HttpServletResponse
response){
   doGet(request,response);
   }

   public void doGet(HttpServletRequest request, HttpServletResponse
response){
   System.out.println(" Inside Login Servlet");
   }
}



JSP


<%@ page contentType="text/html;charset=UTF-8" language="java" %>




 
 




-Rashmi

On 4/5/07, jacky <[EMAIL PROTECTED]> wrote:
> It is /servlet/login indeed. In fact, my jsp structure is as
> following:
> in index.jsp:
>   
>
> in top.jsp:
>  onsubmit="return loginCheck(this);">
> ..
> 
> //here, the form will be submit
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
 Best Regards.
 jacky


Re: wrong System encoding

2006-01-18 Thread chen jacky

hi,
 Yes, i have run a java application at commant prompt, it prints 
"ISO-8859-15".




From: Anto Paul <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: wrong System encoding
Date: Wed, 18 Jan 2006 16:32:14 +0530

On 1/18/06, jacky <[EMAIL PROTECTED]> wrote:
> hi,
> RedHat7.3(System encoding is iso8859-15), tomcat 4.1.30
> When i use System.getProperty("file.encoding") in a jsp, it print 
"utf-8". I think the "utf-8" must be the encode of tomcat,but how can i get 
the system encode: iso8859-15?  In fact, i need the right encode to 
write/read file.
> BTW, i wander why the encode of tomcat container changes to 
"utf-8". Is the reason because i used "reponse.setContentType("text/html; 
charset=utf-8")?

> Any suggestion is helpful!


I dont know the solution but just to know did you tried running a java
application at the command prompt to test the value of
System.getProperty("file.encoding") ?


--
rgds
Anto Paul

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





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



RE: jdbc context

2006-02-13 Thread chen jacky

hi,
 Do you mean add the following code in the web.xml?

 DB Connection
 jdbc/TestDB
 javax.sql.DataSource
 Container
 

But this still need to add the jdbc config in the server.xml,right?
Can you give me some suggestions?


From: "Duan, Nick" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: RE: jdbc context
Date: Mon, 13 Feb 2006 10:11:34 -0500

You should be able to add the context info in your web.xml file.  In
other words, instead of making the JDBC resource available to all web
apps, you make it only to particular applications.  If this JDBC
connection is only used by the workflow web app, defining it in web.xml
is actually preferred.

ND

-----Original Message-
From: jacky [mailto:[EMAIL PROTECTED]
Sent: Monday, February 13, 2006 5:07 AM
To: users@tomcat.apache.org
Subject: jdbc context

hi,
   I have deploy a workflow webapp in Tomcat4.1.31. First time, i add
the following code in server.xml:


  
  
  
 maxActive

 100


 maxIdle

 30


 maxWait

 15000


 removeAbandoned

 true


 removeAbandonedTimeout

 60


 logAbandoned

 false


 factory

 org.apache.commons.dbcp.BasicDataSourceFactory
  

usernamesa
password
driverClassName

com.microsoft.jdbc.sqlserver.SQLServerDriver
url

jdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflow

  


It works well. But now, we need to migrate myworkflow into another
tomcat4.1.31, in which the server.xml can't be modified.
So what shall i do to deploy the jdbc context? Thanks for your help!

 Best Regards.
   jacky


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





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