RE: "Commit Changes" result in an error in the admin site

2004-09-09 Thread Tam, Michael
Very likely cause by the white spaces in your directory path.

Cheers,
Michael

-Original Message-
From: Jonathan Taub [mailto:[EMAIL PROTECTED]
Sent: September 9, 2004 4:36 PM
To: [EMAIL PROTECTED]
Subject: "Commit Changes" result in an error in the admin site


Just installed Tomcat 5.5 on my windows platform.
When going to the administration site, every time I
hit the "Commit Changes" button an error occurs.
Browsing the log files I found that:

java.io.FileNotFoundException: C:\Program Files\Apache
Software Foundation\Tomcat
5.5\webapps\tomcat-docs\META-INF\context.xml (The
system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at
org.apache.catalina.core.StandardServer.storeContext(StandardServer.java:113
4)
at
org.apache.catalina.core.StandardServer.storeHost(StandardServer.java:1397)
at
org.apache.catalina.core.StandardServer.storeEngine(StandardServer.java:1313
)
at
org.apache.catalina.core.StandardServer.storeService(StandardServer.java:177
5)
at
org.apache.catalina.core.StandardServer.storeServer(StandardServer.java:1731
)
at
org.apache.catalina.core.StandardServer.storeConfig(StandardServer.java:726)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown
Source)
at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown
Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown
Source)
at
org.apache.webapp.admin.CommitChangesAction.perform(CommitChangesAction.java
:107)
at
org.apache.struts.action.Action.execute(Action.java:420)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:482)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:106
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:576)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Unknown Source)
Sep 9, 2004 4:24:21 PM
org.apache.catalina.core.ApplicationContext log
SEVERE: action: Error invoking operation storeConfig
javax.management.MBeanException: Exception invoking
method storeConfig
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:517)
at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown
Source)
at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown
Source)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown
Source)
at
org.apache.webapp.admin.CommitChangesAction.perform(CommitChangesAction.java
:107)
at
org.apache.struts.action.Action.execute(Action.java:420)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org

RE: Can't Setup!

2003-09-24 Thread Tam, Michael
Make sure you have set the environment variable JAVA_HOME & CATALINA_HOME.

-Original Message-
From: Rodrigo Poblanno Balp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:31 PM
To: Tomcat Users List
Subject: Can't Setup!


Hi, I've just installed Tomcat 4.1.24-LE-jdk14 for Windows
and I have Sun's J2SDK1.4.2. The installation seems to go on
perfect, but when I try to see http://localhost:8080
on my browser I get this message (I exclude the exceptions):

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.


What is this?
Is there a conflict between Java an Tomcat?

Thanx For Your Help

Poblanno

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



Testing

2003-09-05 Thread Tam, Michael
Testing my autoreply.

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



RE: JNDI DataSource

2003-06-12 Thread Tam, Michael
You didn't mention about your jdbc jar file in your post and maybe you
should check where did you put the jar file.  In addition, you may want to
try a simple jsp to use driver manager to obtain a connection to see if your
jdbc lib is loaded.

Cheers,
Michael

-Original Message-
From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:57 AM
To: Phillip Qin; Tomcat Users List
Subject: RE: JNDI DataSource


Hi Philip,

I checked, and the URL thing is driver specific. For the driver I'm using,
the format is "jdbc:as400:machineName" and that's what I'm using.

The strange thing is the error message "Cannot load JDBC driver class
'null'". Why does Tomcat see the dirver as null, although I have specified
it in the ResourceParams.

Thanks,
Tarek Nabil


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 8:19 PM
To: 'Tomcat Users List'
Subject: RE: JNDI DataSource


Replace your url with fully qualified url, in Oracle I use
jdbc:oracle:thin:@myhost.myudomain.com:port:sid

-Original Message-
From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] 
Sent: June 12, 2003 1:09 PM
To: 'Tomcat Users List' (E-mail)
Subject: JNDI DataSource

Hi,

I'm trying to setup a JDBC DataSource on Tomcat 4.1.24.

I performed the steps in the documentation:

1- Added this part to the GlobalNamingResources section of the server.xml




  
maxWait
5000
  
  
maxActive
8
  
  
url
jdbc:as400:AS400
  
  
password
access2k
  
  
driverClassName
com.ibm.as400.access.AS400JDBCDriver
  
  
maxIdle
4
  
  
username
DBA
  


  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


2- I added this to my web.xml



Resource reference to a factory for java.sql.Connection
instances that talk to an AS400 database


jdbc/as400


javax.sql.DataSource


Container



3- I put this in a JSP

<%@ page import="javax.naming.*, java.sql.*, javax.sql.*" %> 
<%
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource)
  envCtx.lookup("jdbc/as400");

Connection conn = ds.getConnection();
conn.close();

%>


And Still, I get the following error when accessing the JSP

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Cannot load JDBC driver class 'null'
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:64

RE: win2000 issue with tomcat4.1.24

2003-06-12 Thread Tam, Michael
I would recommend you to uninstall the existing tomcat and re-install it
again WITHOUT using the default path (i.e. try install it in C:\tomcat4.1.24
for example).
For the variables(JAVA_HOME and CATALINA_HOME), you should set them as
environment variables in your win2k not in your autoexec.bat (I'm not sure
if it matters but I believe it is specified in the installation document or
something).

-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:27 AM
To: 'Tomcat Users List'
Subject: RE: win2000 issue with tomcat4.1.24


Yes I did install in "Program Files\Apache Group\Tomcat4.1"

But when I install in other directory I am getting HTTP Status 503 - Servlet
jsp is currently unavailable.

I hav't set the java home and catalina home for win98.

1) installed j2sdk-1_4_1_01-windows-i586.exe in win98
2) I just intall the jakarta-tomcat-4.1.24.exe in win98 and able to acces
the http://localhost:8080

Same thing I did for the win2000 machine but it is giving this problem..
So then I added SET JAVA_HOME = C:\j2sdk-1_4_1_01 to autoexec.bat same
problem..
I will try to add SET CATALINA_HOME = c:\Program Files\Apache
Group\Tomcat4.1 but I can not delete the spaces between the program files
right???

Thanks - srini.



-----Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:32 PM
To: 'Tomcat Users List'
Subject: RE: win2000 issue with tomcat4.1.24


Sorry I didn't follow this topic from the beginning but maybe you should
post where EXACTLY you have tomcat and j2sdk installed and the EXACT values
you have set for JAVA_HOME and CATALINA_HOME so we can see if anything went
wrong of those settings.

In addition, if you install tomcat under "Program Files\Apache Group\Tomcat
4.1" path, you probably get into trouble with the spacing between those
directory names.

Cheers,
Michael

-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 6:43 AM
To: 'Tomcat Users List'
Subject: RE: win2000 issue with tomcat4.1.24


Yoav Shapira,
Could you put me in right direction what is going wrong on this..
1) I have a j2sdk-1_4_1_01\bin in my path
2) I have a JAVA_HOME as j2sdk-1_4_1_01 in my autoexcec.bat file.
3) I have done this
"
The JVM specified in the registry doesn't seem to work for compiling JSPs.
You can edit the registry and change the value of
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat
4.1/Parameters/JVM Library and make it point to the jvm.dll in
javainstallation\jre\bin\server\jvm.dll and that should take care of it.
"

But still no luck same compiler error??? what needs to be done?? let us know
if some body have success in this..
appreciate it.

Thanks - Srini.


-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:27 AM
To: 'Tomcat Users List'
Subject: RE: win2000 issue with tomcat4.1.24


Hi all,
I am using win2000 and trying to install and run the tomcat4.1.24, I am
getting an parser exception as follows when I try to access the home page
http://localhost:8080. I also tried not to install as service, in that case
it
is unable to see the JSP parser servlet. Could some one help on this..

2003-06-10 23:01:47 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
 
An error occurred at line: -1 in the jsp file: null
 
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\index_jsp.java:266:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
[javac]   if (pageContext != null)
pageContext.handlePageException(t);
[javac]   ^
[javac] 1 error
 
 
 
 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
 at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(

RE: win2000 issue with tomcat4.1.24

2003-06-12 Thread Tam, Michael
Sorry I didn't follow this topic from the beginning but maybe you should
post where EXACTLY you have tomcat and j2sdk installed and the EXACT values
you have set for JAVA_HOME and CATALINA_HOME so we can see if anything went
wrong of those settings.

In addition, if you install tomcat under "Program Files\Apache Group\Tomcat
4.1" path, you probably get into trouble with the spacing between those
directory names.

Cheers,
Michael

-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 6:43 AM
To: 'Tomcat Users List'
Subject: RE: win2000 issue with tomcat4.1.24


Yoav Shapira,
Could you put me in right direction what is going wrong on this..
1) I have a j2sdk-1_4_1_01\bin in my path
2) I have a JAVA_HOME as j2sdk-1_4_1_01 in my autoexcec.bat file.
3) I have done this
"
The JVM specified in the registry doesn't seem to work for compiling JSPs.
You can edit the registry and change the value of
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat
4.1/Parameters/JVM Library and make it point to the jvm.dll in
javainstallation\jre\bin\server\jvm.dll and that should take care of it.
"

But still no luck same compiler error??? what needs to be done?? let us know
if some body have success in this..
appreciate it.

Thanks - Srini.


-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:27 AM
To: 'Tomcat Users List'
Subject: RE: win2000 issue with tomcat4.1.24


Hi all,
I am using win2000 and trying to install and run the tomcat4.1.24, I am
getting an parser exception as follows when I try to access the home page
http://localhost:8080. I also tried not to install as service, in that case
it
is unable to see the JSP parser servlet. Could some one help on this..

2003-06-10 23:01:47 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
 
An error occurred at line: -1 in the jsp file: null
 
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\index_jsp.java:266:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
[javac]   if (pageContext != null)
pageContext.handlePageException(t);
[javac]   ^
[javac] 1 error
 
 
 
 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
 at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(Cont

RE: servlet question

2003-05-27 Thread Tam, Michael
I wonder would this solve your problem??


-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 4:32 PM
To: Tomcat Users List
Subject: Re: servlet question


Michael,

If I forward to a servlet, yes I can process the request in second servlet.


- Original Message -
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 4:13 PM
Subject: RE: servlet question


I am not possitive.  I am not familiar with flash but can you process your
post data in servlet 1 and form an url with parameters attached and then
redirect?

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:58 PM
To: Tomcat Users List
Subject: Re: servlet question


My code is doing this way already, but it does not work.You think the method
will change if I forward the "POST" request inside doGet().

- Original Message -
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:44 PM
Subject: RE: servlet question


Just a wild guess, how about servlet 1 doPost() call its own doGet() and
redirect in the doGet body???

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:41 PM
To: Tomcat Users List
Subject: Re: servlet question


Thank you for the help. I think you may misunderstand my question. My
question is how can I forward the request to my next URL and change the
method to 'GET' if the orignal request is using 'POST'.
For example:

test1.html call servlet1 by using "POST" method, but servlet1 need to
forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in
servlet1.

thanks

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

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]

-
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]


-
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: servlet question

2003-05-27 Thread Tam, Michael
I am not possitive.  I am not familiar with flash but can you process your
post data in servlet 1 and form an url with parameters attached and then
redirect?

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:58 PM
To: Tomcat Users List
Subject: Re: servlet question


My code is doing this way already, but it does not work.You think the method
will change if I forward the "POST" request inside doGet().

- Original Message -----
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:44 PM
Subject: RE: servlet question


Just a wild guess, how about servlet 1 doPost() call its own doGet() and
redirect in the doGet body???

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:41 PM
To: Tomcat Users List
Subject: Re: servlet question


Thank you for the help. I think you may misunderstand my question. My
question is how can I forward the request to my next URL and change the
method to 'GET' if the orignal request is using 'POST'.
For example:

test1.html call servlet1 by using "POST" method, but servlet1 need to
forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in
servlet1.

thanks

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

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]

-
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]



RE: servlet question

2003-05-27 Thread Tam, Michael
Just a wild guess, how about servlet 1 doPost() call its own doGet() and
redirect in the doGet body???

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:41 PM
To: Tomcat Users List
Subject: Re: servlet question


Thank you for the help. I think you may misunderstand my question. My
question is how can I forward the request to my next URL and change the
method to 'GET' if the orignal request is using 'POST'.
For example:

test1.html call servlet1 by using "POST" method, but servlet1 need to
forward to servlet2 by using "GET". How can I switch from "POST" to "GET" in
servlet1.

thanks

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


Hi,

I try to forward a HTTP request from my servlet. I am using the following
code.

RequestDispatcher rd =
getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);

I have no problem with code, but I have one issue is how can I change the
request method from "POST" to "GET" before I forward the original request.

I would appreciate any help

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]

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



RE: Test Application with out restart Tomcat

2003-04-03 Thread Tam, Michael
I believe there is an attribute call 'reloadable' for the  element
in server.xml.  Set it to true for your webapp context and the webapp's
servlets will reload when there are changes to them.

Regards,
Michael

-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 4:37 PM
To: 'Tomcat Users List'
Subject: Test Application with out restart Tomcat


What needs to be done if don't have to restart the server every time we make
change to the servlet.

-
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: Can't access my servlet

2003-04-02 Thread Tam, Michael
you need url mapping for your servlet in your web.xml file.  Servlet inovker
is disable since 4.1.12 I believe if you do read the release note carefully
in your tomcat installation.

-Original Message-
From: Lori Bishop [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 4:12 PM
To: tomcat maillist
Subject: Can't access my servlet


I just installed Tomcat and am able to start it up successfully and access
the examples servlet successfully using:
http://localhost:8080/examples/servlet/HelloWorldExample

I have my own servlet in
C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\classes\TestServlet.class

When I try to access it with
http://localhost:8080/stcecilia/servlet/TestServlet

I get this message:
description The requested resource (/stcecilia/servlet/TestServlet) is not
available.

Based on other postings in this mailing list, I added this entry to the
server.xml


 
  
  


Here is my C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\web.xml



http://java.sun.com/dtd/web-app_2_3.dtd";>



StCeciliaSite

  St Cecilia Website



 TestServlet
 TestServlet





Any ideas on what I am doing wrong.  Thanks for your help,

Lori


-
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: Installation problem

2003-04-02 Thread Tam, Michael
I have various tomcat 4.1.x running on my windows xp home with j2sdk 1.4.1.
It should be very simple task - install j2sdk, install tomcat, set 2 env.
variables and done.

Check tomcat log files and they may give you some ideas of what went wrong. 

Regards,
Michael

-Original Message-
From: Klaus Liebler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 9:51 AM
To: 'Tomcat Users List'
Subject: AW: Installation problem


No, I did not set CATALINA_HOME. But even if I set it, nothing changes.

Regards, Klaus

> -Ursprüngliche Nachricht-----
> Von: Tam, Michael [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 2. April 2003 19:34
> An: 'Tomcat Users List'
> Betreff: RE: Installation problem
> 
> 
> Make sure your JAVA_HOME is pointed to jdk 1.4.0 directory 
> not the subdirectory 'bin'. Also, did you set CATALINA_HOME 
> to point to tomcat directory?
> 
> Regards,
> Michael
> 
> -Original Message-
> From: Klaus Liebler [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 9:24 AM
> To: [EMAIL PROTECTED]
> Subject: Installation problem
> 
> 
> Hello List,
> I installed the JDK 1.4.0 & the newest Tomcat and set the 
> environment variable JAVA_HOME to the pathname of the 
> directory into which I installed the JDK release. I'm using 
> Win XP Pro. When pointing my browser to localhost:8080 I get 
> the following error message. What did I wrong?
> 
> Thx Klaus
> 
> 
> 
> HTTP Status 500 - 
> 
> --
> --
> 
> 
> type Exception report
> 
> message 
> 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> 
> exception 
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
> [javac] Since fork is true, ignoring compiler setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler setting.
> 
> 
> 
>   at 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> ultErrorHa
> ndler.java:130)
>   at 
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> patcher.ja
> va:293)
> 
> .
>   at 
> org.apache.coyote.http11.Http11Processor.process(Http11Process
> or.java:59
> 4)
>   at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> r.processC
> onnection(Http11Protocol.java:392)
>   at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:56
> 5)
>   at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool
> .java:619)
>   at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> --
> --
> 
> 
> Apache Tomcat/4.1.24
> 
> 
> 
> 
> -
> 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]

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



RE: Installation problem

2003-04-02 Thread Tam, Michael
Make sure your JAVA_HOME is pointed to jdk 1.4.0 directory not the
subdirectory 'bin'.
Also, did you set CATALINA_HOME to point to tomcat directory?

Regards,
Michael

-Original Message-
From: Klaus Liebler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 9:24 AM
To: [EMAIL PROTECTED]
Subject: Installation problem


Hello List,
I installed the JDK 1.4.0 & the newest Tomcat and set the environment
variable JAVA_HOME to the pathname of the directory
into which I installed the JDK release. I'm using Win XP Pro. When
pointing my browser to localhost:8080 I get the following error message.
What did I wrong?

Thx Klaus



HTTP Status 500 - 




type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:293)

.
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:536)






Apache Tomcat/4.1.24




-
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]



Help: start and shutdown a process through servlet

2003-03-26 Thread Tam, Michael
Hi all,

I am having a problem to use a servlet to invoke an external process and I
wish someone can give me some suggests on my approach which may help me
solve the issue.

Environment:
Windows, J2SDK 1.4.1_02, and Tomcat 4.1.24.


The scenario:

1) I would like to dedicate a servlet to invoke an external process i.e.
init() -> start the process and destroy() -> ends the process.
2) My process is a small and simple server process which use datagramsocket
to listen to localhost:port and handle messages which come from a client
servlet.
3) Currently, in the init() I initiate a static Runtime and get a static
reference of the process which is created by the runtime.exec("java
server",null,"path to the server class").  In the destroy(), I use send a
datagram message to the server which causes the shutdown of the server and I
call the process.waitfor() to wait until the server process completed before
destroy() exits.


problem:

1)  tomcat startups fine and the servlet has invoked the server process.
However, when I use a standalone client to talk to the server process, only
the first send/receive is completed.  The client doesn't receive any thing
corresponded to the second message and is infinitely waiting the response
from the server process.

2) After 1), attempt to shutdown tomcat and tomcat is not responding.
Forcing tomcat to shutdown by closing the prompt, then the server process
starts to work again and execute the 'queued' message.


Any input would be deeply appreciated.

Regards,
Michael

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



RE: request parameter question ...

2003-03-26 Thread Tam, Michael

getParameter is used to obtain data being pass by post or get method

set/getAttribute is used to access the data in the request object.

They are different.  You need to understand which one you do need.

Michael

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:02 AM
To: Tomcat Users List
Subject: Re: request parameter question ...


I guess if i use setAttribute ... i have to use getAttribute ... thats 
the reason i get the blank string .. coz i was using getParameter

my problem is that the jsp uses getParameter ... it would have been 
good if i could have used the same method regardless as how the 
parameter was set.

On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:

> that is what request.setAttribute is there for.
>
> you can also look at JSP forward, that allows you to set parameters, 
> not sure how this translates to a servlet
>
> http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
>
>
> filip
>
>> -Original Message-
>> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 26, 2003 12:33 AM
>> To: Tomcat List
>> Subject: request parameter question ...
>>
>>
>> Hi ,
>>
>> In my servlet I have the following code:
>>
>> String str = request.getParameter("name");
>>
>> if(str.equals("xyz") == true)
>> {
>>  str = "ChangedName";
>>  request.setParameter("name", str);   //
>> <- how
>> do i do this ??? There is no method as request.setParameter()
>> }
>>
>> try
>> {
>>  String path = "/SomeJSP.jsp"
>>  
>> getServletConfig().getServletContext().getRequestDispatcher(pa
>> th).forwar
>> d(request, response);
>> }
>> catch(Exception ex)
>> {
>>  ex.printStackTrace();
>> }
>>
>> one way to do it would be to append the parameter and its
>> changed value
>> to the path:
>> String path = "/SomeJSP.jsp?name=str";
>>
>> But is there some method like setParameter to do what I want to do ?
>>
>> Thanks.
>>
>>
>> -
>> 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]

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



RE: tomcat4.1.18 can not restart after Mysql DataSource configuration.

2003-03-24 Thread Tam, Michael
You need more detail about the crash.

Connector/J doesn't have 4.0 as far as I know.  The current is 3.0 and 3.1
as alpha.
I have almost the same config. except I am running 4.0.11a and Connection/J
3.0.6 .

Regards,
Michael


-Original Message-
From: Fred Wang [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:49 AM
To: [EMAIL PROTECTED]
Subject: tomcat4.1.18 can not restart after Mysql DataSource configuration.


environment:
win200 server(sp3)+jdk1.4.1_02+mysql4.0.12+Connector/J4.0

It's running well after JNDI DataSource configuration, but crashs when
restarting.

can anybody help?

thanks in advance.

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



RE: [OT] Servlet process issue

2003-03-21 Thread Tam, Michael
Hi Eric,

I do understand the Servlet is a request based ( new request -> new thread )
and how to avoid this with session attribute .. etc.

However, my concern was under the same request, if a client make a request
to (A), which passes to(B) and (B) passes to (C) and so on, then a client
could terminate the process by quitting the browser or "stop" the browser am
I correct?  If so, my question would be how to avoid the client to interfere
the process after (A) is completed [If (A) is terminate before it is
complete, then the entire process should terminate and it is ok]?

Regards,
Michael

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:31 PM
To: Tomcat Users List
Subject: Re: [OT] Servlet process issue




Tam, Michael wrote:
> Hi all,
> 
> Sorry for the [OT].  Since many of you are the experts on servlet
> technology, I'd like to ask for suggestions or comments on the servlet
> process I am working on.
> 
> Process:
> 1)  I have a form html (A) to upload data files through an UploadServlet
(B)
> which stores the files in the file system.
> 2) Then (B) will forward the request to ValidationServlet (C) which reads
> the files for validation and generates log file.
> 3) Then (C) will forward the request to LoadServlet (D) which use the log
> file to load the clean data to DB.

A servlet is a highly specialized kind of object that is specifically 
designed to receive, process, and respond to requests.  In the case of 
HttpServlets, this would be HTTP requests.

It seems that unless your ValidationServlet and LoadServlet are ever 
going to be directly accessed with HTTP requests, they're probably 
better off being written as regular Java classes (like Validator and 
Loader).  I do not know anything about the overhead incurred by making 
them servlets, but it just seems that by subclassing HttpServlet for 
these objects, at least for the use case you've described, you're 
inheriting a lot more functionality than you'd ever need.

This will also simplify the design question you're asking -- you don't 
have to "backtrack" anywhere, your UploadServlet can just do whatever it 
is you want to be done when the request processing is finished (dispatch 
to a JSP saying "thank you"?).

Note that when your HTTP request is sent to UploadServlet, UploadServlet 
/is/ a new thread, so the user should not be able to interfere with this 
process.  If the user tries clicking "Submit" again, a totally new 
UploadServlet will respond.  If you wish to disable this ability, there 
is a technique involving the setting of a flag in the user's session 
that prevents any further requests being received until the processing 
is done.  But you have to implement this yourself.  The whole technique 
is detailed at 
<http://developer.java.sun.com/developer/EJTechTips/2003/tt0114.html#2>


HTH,

Erik


-
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]



[OT] Servlet process issue

2003-03-21 Thread Tam, Michael
Hi all,

Sorry for the [OT].  Since many of you are the experts on servlet
technology, I'd like to ask for suggestions or comments on the servlet
process I am working on.

Process:
1)  I have a form html (A) to upload data files through an UploadServlet (B)
which stores the files in the file system.
2) Then (B) will forward the request to ValidationServlet (C) which reads
the files for validation and generates log file.
3) Then (C) will forward the request to LoadServlet (D) which use the log
file to load the clean data to DB.

My question:

What will happen when the process reach 3) and assume it has finished half
of the data loading and the client stop/close the browser?

My understanding is the process will terminate at that point.  This implies
I have to somehow monitor the request so when this condition happens, I have
to reverse the process.  If so, what's the best way to do this?

Or better, what is the best way to spawn another process to perform the
validation and loading after the files being uploaded to avoid the client
interferes the process accidentally?


Any input would be appreciated.  Thank you.

Regards,
Michael


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



RE: Tomcat 4.1.18

2003-03-18 Thread Tam, Michael
there is a exe file call tomcat.exe in the \bin directory
try type in something like tomcat.exe -help and this should help you install
the service.

Cheers,
Michael

-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18


I have just installed and having running Tomcat 4.1.18 for Windows ... I 
am presently starting the server by using the {TOMCAT}\bin\startup.bat 
script  is there a way to start the Tomcat server using services ???

Thanks,
Keith Crosby

-- 
-
Keith S. Crosby
Principal Systems Consultant
Xyvision Enterprise Solutions Inc.
30 New Crossing Rd
Reading, MA 01867
781-756-5669
visit:  www.xyenterprise.com
-



-
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: CD based tomcat (hopefully)

2003-03-17 Thread Tam, Michael
Your CATALINA_HOME is path to your tomcat in the cd then if and only if
yours CD is a CDR and CD-rom is a cd-writer, otherwise how could tomcat be
able to write the logs file??

-Original Message-
From: Oliver Rose [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 2:08 PM
To: [EMAIL PROTECTED]
Subject: CD based tomcat (hopefully)


This is probably a daft question to all you experienced tomcat guys, but 
it's baffled me for a couple of weeks now.
I've got Tomcat 4.1.12 installed (on Windows XP Pro) in c:\tomcat, and 
CATALINA_HOME is set to that in the system environment variables. What I 
want to do is to make a copy of it on a CD as a known stable environment 
to demonstrate a university project, and have it so I can just stick the 
CD in and it starts tomcat and fires up a web browser to my project root 
(for example, http://localhost:8080/WebApp)
The web browser bit isn't much of a problem, but if I make a copy of 
c:\tomcat in another folder with a startup script that fills in all the 
details for catalina_home, java_home (also in a subdir) and so on, the 
tomcat server starts up and then dies without creating a log (or at 
least, not in the new %catalina_home%\logs folder)

Oliver



-
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: HELP: Deploying Simple Servlet

2003-03-17 Thread Tam, Michael
Did you create a  entry in the server.xml of tomcat?

Michael

-Original Message-
From: Shaffin Bhanji [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: HELP: Deploying Simple Servlet


Hello,

I have created a simple HttpServlet in JBuilder 8 Foundation which
looks as follows:


import javax.servlet.*;
import javax.servlet.http.*;

/**
 * Title: 
 * Description: 
 * Copyright: Copyright (c) 2003
 * Company: 
 * @author not attributable
 * @version 1.0
 */

public class HelloServlet extends HttpServlet {

  public void doGet(HttpServletRequest req, HttpServletResponse resp)
  throws ServletException, java.io.IOException {
resp.getWriter().println("Hello
World!!!");
  }

  public void doPost(HttpServletRequest req, HttpServletResponse resp)
  throws ServletException, java.io.IOException {
resp.getWriter().println("Hello
World!!!");
  }
}


I compiled it into a class file "HelloServlet.class" and deployed it as
follows:

{TOMCAT4_PATH}/webapps/HelloServlet/WEB-INF/classes/HelloServlet.class
{TOMCAT4_PATH}/webapps/HelloServlet/WEB-INF/web.xml

My web.xml file looks as follows:



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



HelloServlet


HelloServlet




I start Tomcat and tried to access the servlet as follows:

http://localhost:8080/HelloServlet 
http://localhost:8080/HelloServlet/HelloServlet 

but all fails and i get an error:


HTTP Status 404 - /HelloServlet/HelloServlet


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


Apache Tomcat/4.1.18


Can someone please help






Shaffin N. Bhanji 
Technical Manager 
Cambridge Technology Partners, the global eServices company of Novell,
Inc. 
www.ctp.com 
905.946.4817 | office 
416.524.9520 | cell 
905.940.2688 | fax 
[EMAIL PROTECTED] 
[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]



RE: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-03-12 Thread Tam, Michael
Hi Kevin,

You should not put any CLASS in lib at all.  It is the place for jars only.
Get rib of all the MySQL JDBC driver files anywhere in your webapp and put
the mysql jdbc driver jar file into lib and restart tomcat and see if this
will resolve your problem.  By the way, which version of the driver are you
using, I believe the recent versions are changing the url to something like
'com.mysql.jdbc.Driver'.  'org.gjt.mm.mysql.Driver' is still valid but I
believe it will phase out eventually.

Regards,
Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: java.sql.SQLException: Cannot load JDBC driver class 'null'


Tomcat version - 4.1.12
MySQL version - 3.23.55-nt
OS - WinNT
JDK - 1.4.1_01

I have researched this problem on the internet and in the documentation for
Tomcat, and I still haven't resolved this issue. So, I'm looking for help
from
someone from this list.

Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp
Here is the error I receive:

java.sql.SQLException: Cannot load JDBC driver class 'null' at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:529)

Referencing this URL -
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html:
1. I have a database and table with 1 row of data
2. Here is the chunk of code that I inserted into my
$CATALINA_HOME/conf/server.xml.

  

   

   

   
   
 factory
 
org.apache.commons.dbcp.BasicDataSourceFactory
   

   
   
 maxActive
 100
   

   
   
 maxIdle
 30
   

   
   
 maxWait
 1
   

   
   
username
bugtracker
   
   
password
footin
   

   
   
  driverClassName
  org.gjt.mm.mysql.Driver
   

   
   
 url

jdbc:mysql://localhost:3306/bugtracker
   
   
   
3. Here is my web.xml under $CATALINA_HOME/webapps/dbtest/web-inf/web.xml:
 
http://java.sun.com/dtd/web-app_2_3.dtd";>

  MySQL Test App
  
  DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container
  


4. Added my DB Driver under
$CATALINA_HOME/webapps/dbtest/lib/org/git/mm/mysql/Driver.class. I also
tried
just putting the jar file under the /lib.

5. Created a JSP and class just like in the example above. I just changed my
select statement inside the class, that's all.

6. I have verified that my database is indeed running.

7. In my.ini (for MySQL), the port setting is NOT commented. The
bind-address IS
commented out.

Thanks for any help!
Kevin


-
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: web.xml migration from 3.2 problem

2003-03-10 Thread Tam, Michael
in your url-pattern, don't include your webapp name  

There are solutions to solve this in the list. Please read the message
'strangeness'. 

cheers,
Michael

-Original Message-
From: Giulia Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:51 PM
To: Tomcat Users List
Subject: web.xml migration from 3.2 problem



I'm upgrading tomcat to 4.1 from 3.2 and I'm running into a problem with
the web.xml

After following a suggestion of commenting out the invoker section in the
conf/web.xml of tomcat, I still receive an error when invoking the
servlet, even though, alas, a different one.

the servelet in called as 'servlet/Controller' and 'Controller' from forms
whose url is of the kind http://domain/GenDBconn

here is my web.xml

 GenDBconn
 Test site for GenDB

Controller
Test site for GenDB

edu.berkeley.library.GenDBServlets.GenDBController

allProjectsXML

/data/_n/GenDBconn/WEB-INF/classes/edu/berkeley/library/propert
yFiles/allProjects.xml

 

Controller
/GenDBConn/servlet/Controller

  
30
  
  
index.html
  

---
the web.xml of tomat has the following uncommented



invoker
/servlet/*

---
the error that I see from the logs is:
2003-03-10 15:32:47 StandardContext[/GenDBconn]: Mapping
contextPath='/GenDBconn' with requestURI='/GenDBconn/serv
let/Controller' and relativeURI='/servlet/Controller'
2003-03-10 15:32:47 StandardContext[/GenDBconn]:   Trying exact match
2003-03-10 15:32:47 StandardContext[/GenDBconn]:   Trying prefix match
2003-03-10 15:32:47 StandardContext[/GenDBconn]:  Mapped to servlet
'invoker' with servlet path '/servlet' and pat
h info '/Controller' and update=true
2003-03-10 15:32:47 invoker: included='false',
requestURI='/GenDBconn/servlet/Controller'
2003-03-10 15:32:47 invoker:   servletPath='/servlet',
pathInfo='/Controller'
2003-03-10 15:32:47 invoker: Processing servlet 'Controller' with path
info ''
2003-03-10 15:32:47 invoker: Using wrapper for servlet 'Controller' with
mapping '/servlet/Controller/*'
2003-03-10 15:32:47 StandardWrapper[/GenDBconn:Controller]: Marking
servlet Controller as unavailable
2003-03-10 15:32:47 invoker: Cannot allocate servlet instance for path
/GenDBconn/servlet/Controller

---
I have tried a number of different combinations in the servlet-mapping in
order to find the servlet but, clearly I haven't got the right one.

Suggestions appreciated!

thanks

Giulia


-
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: strangeness

2003-03-10 Thread Tam, Michael
two things you can do:

1) enable the the servlet invoker (probably your immediate solution)
   Goto CATALINA_HOME\conf\,  edit web.xml where the invoker was comment
out.   uncomment it and restart tomcat.
2) put your  entries in your webapp web.xml   [Most
recommended way to do it]
   For example [forgive me if I misname the element names]
   
MyServlet
MyServlet
   
   ..
   .. [other servlets]

   
MyServlet
/servlet/MyServlet
   

Hope this helps.

Cheers,
Michael  

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:34 PM
To: Tomcat Users List
Subject: RE: strangeness


BTW, my webapp is "tad", so the urls look like "/tad/servlet/MyServlet".

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-----
> From: Tam, Michael [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2003 3:29 PM
> To: 'Tomcat Users List'
> Subject: RE: strangeness
>
>
> You just can't make calls like   "localhost\servlet\myservlet"
> any more in
> 4.x.x where it is disabled.  Well, unless you change the setting in the
> global web.xml of tomcat.
>
>
> -Original Message-
> From: Mike Jackson [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2003 3:02 PM
> To: Tomcat Users List
> Subject: RE: strangeness
>
>
> I've got the  in there, but I don't have a servlet-mapping for
> this servlet.  I only have one page that calls it, and it's via request
> dispatcher, so the user doesn't see it.  Are you saying that I
> can't do this
> anymore?
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Tam, Michael [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 10, 2003 2:51 PM
> > To: 'Tomcat Users List'
> > Subject: RE: strangeness
> >
> >
> > servlet-invoker has been disabled by default since 4.x.x.  You
> need to put
> >  and  to your web.xml to locate your
> > servlet and
> > the url-pattern in your liking.
> >
> > Cheers,
> > Michael
> >
> > -Original Message-
> > From: Mike Jackson [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 10, 2003 1:50 PM
> > To: Tomcat Users List
> > Subject: strangeness
> >
> >
> > Ok, I have some kind of a strange behavior here.  I have tomcat 4.0.18
> > running, tied to apache 1.3.27 via mod_jk.  Seems to work fine.
> > I'm in theh
> > process of migrating my installed webapps and I run into
> > something strange.
> > I've got a a servlet (com.cdi.scsd.tty.servlet.XSLTServlet)
> which is in my
> > jar file (tty.jar), that jar file is in the webapps WEB-INF/lib folder.
> > However when I try to access the servlet via
> > /servlet/com.cdi.scsd.tty.servlet.XSLTServlet I get a 404 error.  I've
> > unjarred the file to make sure the class is there, and it is.
> > I've put the
> > unjarred files in the the WEB-INF/classes folder, still a 404.
> > I've checked
> > to be sure I'm not missing a jar file or something from the old install,
> > which I don't appear to be.  I checked the startup options from
> the 3.3.1a
> > version, nothing.  Does anyone have an idea where to look next?
> >
> > --mikej
> > -=-
> > mike jackson
> > [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]
> >
>
>
>
> -
> 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]

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



RE: strangeness

2003-03-10 Thread Tam, Michael
You just can't make calls like   "localhost\servlet\myservlet"  any more in
4.x.x where it is disabled.  Well, unless you change the setting in the
global web.xml of tomcat.


-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:02 PM
To: Tomcat Users List
Subject: RE: strangeness


I've got the  in there, but I don't have a servlet-mapping for
this servlet.  I only have one page that calls it, and it's via request
dispatcher, so the user doesn't see it.  Are you saying that I can't do this
anymore?

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Tam, Michael [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2003 2:51 PM
> To: 'Tomcat Users List'
> Subject: RE: strangeness
>
>
> servlet-invoker has been disabled by default since 4.x.x.  You need to put
>  and  to your web.xml to locate your
> servlet and
> the url-pattern in your liking.
>
> Cheers,
> Michael
>
> -Original Message-
> From: Mike Jackson [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2003 1:50 PM
> To: Tomcat Users List
> Subject: strangeness
>
>
> Ok, I have some kind of a strange behavior here.  I have tomcat 4.0.18
> running, tied to apache 1.3.27 via mod_jk.  Seems to work fine.
> I'm in theh
> process of migrating my installed webapps and I run into
> something strange.
> I've got a a servlet (com.cdi.scsd.tty.servlet.XSLTServlet) which is in my
> jar file (tty.jar), that jar file is in the webapps WEB-INF/lib folder.
> However when I try to access the servlet via
> /servlet/com.cdi.scsd.tty.servlet.XSLTServlet I get a 404 error.  I've
> unjarred the file to make sure the class is there, and it is.
> I've put the
> unjarred files in the the WEB-INF/classes folder, still a 404.
> I've checked
> to be sure I'm not missing a jar file or something from the old install,
> which I don't appear to be.  I checked the startup options from the 3.3.1a
> version, nothing.  Does anyone have an idea where to look next?
>
> --mikej
> -=-
> mike jackson
> [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]
>



-
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: strangeness

2003-03-10 Thread Tam, Michael
servlet-invoker has been disabled by default since 4.x.x.  You need to put
 and  to your web.xml to locate your servlet and
the url-pattern in your liking.

Cheers,
Michael

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 1:50 PM
To: Tomcat Users List
Subject: strangeness


Ok, I have some kind of a strange behavior here.  I have tomcat 4.0.18
running, tied to apache 1.3.27 via mod_jk.  Seems to work fine.  I'm in theh
process of migrating my installed webapps and I run into something strange.
I've got a a servlet (com.cdi.scsd.tty.servlet.XSLTServlet) which is in my
jar file (tty.jar), that jar file is in the webapps WEB-INF/lib folder.
However when I try to access the servlet via
/servlet/com.cdi.scsd.tty.servlet.XSLTServlet I get a 404 error.  I've
unjarred the file to make sure the class is there, and it is.  I've put the
unjarred files in the the WEB-INF/classes folder, still a 404.  I've checked
to be sure I'm not missing a jar file or something from the old install,
which I don't appear to be.  I checked the startup options from the 3.3.1a
version, nothing.  Does anyone have an idea where to look next?

--mikej
-=-
mike jackson
[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]



RE: just to be able to browse the Tomcat default page

2003-03-10 Thread Tam, Michael
Where did you put your html file?  It looks like you're trying to get your
html from the root of tomcat.  if you put your file in your own webapp, you
should try 
http://localhost/yourwebapp/zyx.html 
NOT http://localhost/zyx.html  .
 
Hope this will solve your problem.
 
cheers,
Michael

-Original Message-
From: Qilong Lu [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 7:22 AM
To: [EMAIL PROTECTED]
Subject: just to be able to browse the Tomcat default page 


Dear Sir or Madam,
 
Good morning. I am a new student of Tomcat. My computer
is M.S. WindowsXP. I downloaded and installed Tomcat
successfully. I wrote a simple HTML web page (see the 
attacted file) and put it in Tomcat. But it cann't be browsed.
I try to put it in different directory in Tomcat, but the Tomcat
reaction is same, see the follows.
Before I write email to you, I read Tomcat FAQ at jGuru, no
answer mutch my problem. the FAQ-o-matic pages cann't 
be accessed, maybe some one is updating these pages.
I am a brand new student, just like a dummy, please 
take a special care to me. I am waiting for your answer. 
Thanks
   Qilong Lu

HTTP Status 404 - /zyx.html

  _  


type Status report

message /zyx.html

description The requested resource (/zyx.html) is not available.

  _  



RE: urgent help needed..cannot make changes to conf/server.xml

2003-03-06 Thread Tam, Michael
Stop the service, go to %CATALINA_HOME%\bin and run "catalina run" in CMD.
Then you will able to see the exceptions.

Michael

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: urgent help needed..cannot make changes to conf/server.xml


Hi All,
  I have installed Tomcat4.1 as a WinNT service. If I
try to make any changes conf/server.xml (in order to
set up the SSL) and try to restart it again, I cannot
do so. All I get is a set of exceptions flashing on
the screen. In short, it is not allowing me to do any
changes in server.xml. 
  Where am I going wrong?
If I have installed Tomcat as a service, can I not
stop it and then run it from Start->Program
Files->Apache??

Please help ASAP. I shall appreciate it.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
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: Tomcat on WinXP (Solved??)

2003-03-05 Thread Tam, Michael
This is my wild guess:  If you use the exe format to install tomcat, there
maybe a chance some of these information has been written in the registry.

Michael

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:56 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP (Solved??)


Ok, well here's a strange thing (to me at least)...

I uninstalled Tomcat, and removed CATALINA_HOME & JAVA_HOME environment
variables.  I also removed anything I added to the path, such as
%JAVA_HOME%\bin.

I then reinstalled Tomcat using the Executable.  After the installation the
service is started.  Without setting any environment variables or changes to
path, for the heck of it I tried http://localhost:8080 and wouldn't you know
it, http://localhost:8080/index.jsp comes up fine.  Also, the JSP and
servlet examples all work.

Does anyone have any idea why this would work?  And since its working I
don't want to mess with it - what are the implications of leaving the setup
without CATALINA_HOME & JAVA_HOME set and without adding the bin directories
to the PATH?

Thanks :)

On to the mod_jk setup again...

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 10:12 PM
To: Tomcat Users List
Subject: Re: Tomcat on WinXP


Denise Mangano wrote:

>I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export 
>JAVA_HOME in my PATH variable.  I checked the error logs, and for some 
>reason it is saying "unable to find java compiler".
>
You don't have to set it to 'c:\jdk1.4.1\bin' the top level directory 
will do. Just omit the bin for JAVA_HOME.
JAVA_HOME doesn't need to be exported in the PATH variable. Installing the
jdk on a separate partition or drive is ok. As long as 
you set your JAVA_HOME correctly. You may specify a classpath variable 
if you need. Or you could pass arguments to the java.exe program.



-
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]



RE: Tomcat on WinXP

2003-03-04 Thread Tam, Michael
Denise,

 You told us jdk1.4.1 is located at c:\jdk1.4.1 so your JAVA_HOME should set
to EXACTLY c:\jdk1.4.1

Michael

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:04 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


Thanks everyone for answering.  I changed my JAVA_HOME to c:\jdk1.4.1 and
restarted Tomcat.  I still get the same error.

The exact error in the log file is: Unable to find a javac
compiler;com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME
does not point to the JDK

echo %JAVA_HOME%
C:\jdk1.4

In my PATH I have: %JAVA_HOME%\bin

I'm at a loss - the only other thing I can think of is the fact that I am
trying to access the java compiler from a different partition could be
causing this?  I don't see why it should but then again I've seen stranger
things happen...  What boggles my mind even further is that at the command
prompt I cahnge to G:\tomcat and I try javac test.java and it gives me no
error messages, but no class file is compiled.

Any other thoughts?   Thanks again.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


To Denise,

   You should point your JAVA_HOME to c:\jdk1.4.1 not c:\jdk1.4.1\bin

To Sean,

   Please refer to message "Installation - Tomcat 4.1 -Windows 2k".  Tomcat
works the same way in Win2K/XP.


Hope this help guys.

cheers,
Michael

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I encountered this when I wrote my own start scripts and I failed to add
tools.jar to my CLASSPATH.

-sean


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I am reading these posts on "Installing Tomcat 4.1 on Win2K" and I see this
discussion on  the classpath.  I have tried my setup with and without a
classpath specified, and in either case I am getting the same error message
as Baco.  The only difference is that I have JDK installed.

I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME
in my PATH variable.  I checked the error logs, and for some reason it is
saying "unable to find java compiler".  I created a simple test.java in my
G:\tomcat directory and tried to compile from the command prompt.  I receive
no error messages but the file does not compile.  (When I performed the same
test on my C:\ drive it compiled fine).

Can someone please let me know if having the JDK on a separate partition
could be causing my problem? If so then I would imagine I have to install
the JDK on the same partition - but would this cause conflicts with the JDK
I have installed on the C:\ drive.

I'm trying to get tomcat running as soon as possible, and appreciate any
help.  Thanks in advance.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 1:42 PM
To: 'Tomcat Users List'
Subject: Tomcat on WinXP


Hi everyone.  Yesterday I posted to get help with setting up mod_jk on my
WinXP machine.  As it turns out I was wrong and the httpd that came with the
phpdev package won't except dynamically loaded modules. So my solution is to
reinstall everything without using the phpdev package.

I am following John Turner's how to, and the Apache install went smoothly. I
ran the executable for Tomcat install, and installation was successful.
However when I go to http://localhost:8080 I get the error below.  To me it
seems like a possibly a classpath error for the compiler??  The install
directory for tomcat is G:\tomcat (I have a separate partition set up to
keep my web server separate from everything else on the PC).  My PATH (both
user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin.  I can't
imagine why this set up should cause problems, especially since my PATH is
set, and upon Tomcat install the installer found my jdk1.4.1 installation.

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContex

RE: Oracle JDBC, what do do?

2003-03-04 Thread Tam, Michael
Depends which Oracle version you're running.
For 8i,  I believe you have to get class12.zip and rename it as jar file.
For 9i, I forgot the name of the file but it should work the same way as 8i
which you need to rename it to jar.

Hope this help.

Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:40 PM
To: [EMAIL PROTECTED]
Subject: Oracle JDBC, what do do?


Hi all,

I am trying to connect to Oracle.  What do I need to do to get tomcat to see
the zip files that contain the driver? 

I am running Tomcat 4.1.2 on Win2k.

Thanks very much.

Bao-Ha Dam Bui
 



* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*

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



RE: Tomcat on WinXP

2003-03-04 Thread Tam, Michael
To Denise,

   You should point your JAVA_HOME to c:\jdk1.4.1 not c:\jdk1.4.1\bin

To Sean,

   Please refer to message "Installation - Tomcat 4.1 -Windows 2k".  Tomcat
works the same way in Win2K/XP.


Hope this help guys.

cheers,
Michael

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 12:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I encountered this when I wrote my own start scripts and I failed to add
tools.jar to my CLASSPATH.

-sean


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 1:38 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat on WinXP


I am reading these posts on "Installing Tomcat 4.1 on Win2K" and I see this
discussion on  the classpath.  I have tried my setup with and without a
classpath specified, and in either case I am getting the same error message
as Baco.  The only difference is that I have JDK installed.

I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin and export JAVA_HOME
in my PATH variable.  I checked the error logs, and for some reason it is
saying "unable to find java compiler".  I created a simple test.java in my
G:\tomcat directory and tried to compile from the command prompt.  I receive
no error messages but the file does not compile.  (When I performed the same
test on my C:\ drive it compiled fine).

Can someone please let me know if having the JDK on a separate partition
could be causing my problem? If so then I would imagine I have to install
the JDK on the same partition - but would this cause conflicts with the JDK
I have installed on the C:\ drive.

I'm trying to get tomcat running as soon as possible, and appreciate any
help.  Thanks in advance.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.
 


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 1:42 PM
To: 'Tomcat Users List'
Subject: Tomcat on WinXP


Hi everyone.  Yesterday I posted to get help with setting up mod_jk on my
WinXP machine.  As it turns out I was wrong and the httpd that came with the
phpdev package won't except dynamically loaded modules. So my solution is to
reinstall everything without using the phpdev package.

I am following John Turner's how to, and the Apache install went smoothly. I
ran the executable for Tomcat install, and installation was successful.
However when I go to http://localhost:8080 I get the error below.  To me it
seems like a possibly a classpath error for the compiler??  The install
directory for tomcat is G:\tomcat (I have a separate partition set up to
keep my web server separate from everything else on the PC).  My PATH (both
user and system) includes C:\jdk1.4.1\bin and G:\tomcat\bin.  I can't
imagine why this set up should cause problems, especially since my PATH is
set, and upon Tomcat install the installer found my jdk1.4.1 installation.

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline

RE: Installation - Tomcat 4.1 - Windows 2K

2003-03-04 Thread Tam, Michael
Jeremy,

Classpath is not required.  What you need is JAVA_HOME which set to jdk
directory i.e. c:\j2sdk1.4.1.
I believe classpath was written in the registry during the installation of
jdk (windows).

Regards,
Michael

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 11:22 AM
To: 'Tomcat Users List'
Subject: RE: Installation - Tomcat 4.1 - Windows 2K


Filip,
The classpath is very important.  Here is an installation guide
I've used many times to install tomcat.  It worked every time and it
tells you to set your classpath to include the servlet.jar on Windows
machines.  Here is the link:

http://www.moreservlets.com/Using-Tomcat-4.html

Hope this helps, Jeremy

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 12:20 PM
To: Tomcat Users List
Subject: RE: Installation - Tomcat 4.1 - Windows 2K

don't set your CLASSPATH, tomcat doesn't use it.

Make sure your JAVA_HOME points to a JDK installation, not JRE.

Filip

-Original Message-
From: Graeme Blyth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: Installation - Tomcat 4.1 - Windows 2K


I have been unable to successfully install Tomcat 4.1 on a Windows 2000 
Server machine. After installation I get an error message when
connecting to 
Tomcat, the first two lines are shown below:

>>org.apache.jasper.JasperException: Unable to compile class for JSP

>>An error occurred at line: -1 in the jsp file: null


I believe it must have something to do with how the JAVA_HOME variable
is 
configured on my machine. Below is the path I am using with the above 
variable name:

>>C:\Program Files\Java\j2re1.4.1_01

Any help is appreciated.

Baco






_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail


-
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]

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



RE: RE:setting up tomcat 4.1

2003-02-28 Thread Tam, Michael
This only happens when tomcat can't find JAVA_HOME.  I just tested it a
moment ago when I removed my environment variable.
Did you verify the variable by typing %JAVA_HOME% in the CMT prompt??

-Original Message-
From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: RE:RE:setting up tomcat 4.1


 >Message-ID:
<[EMAIL PROTECTED]>
 >From: "Tam, Michael" <[EMAIL PROTECTED]>
 >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
 >Subject: RE: setting up Tomcat 4.1
 >Date: Fri, 28 Feb 2003 13:18:15 -0500
 >MIME-Version: 1.0
 >Content-Type: text/plain;
 >   charset="iso-8859-1"
 >
 >Did you set JAVA_HOME in your environment variable?
 >i.e.  JAVA_HOME=C:\j2sdk1.4.1

Yes I have JAVA_HOME=D:\j2sdk1.4.1   which is where my Javasdk is located.

 >-Original Message-
 >From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
 >Sent: Friday, February 28, 2003 9:41 AM
 >To: [EMAIL PROTECTED]
 >Subject: setting up Tomcat 4.1
 >
 >I have been trying to setup Tomcat 4.1 I have entered all class and other
 >paths. When I run Startup it goes through a whole set of operations then
 >finishes with "can not find -Djava.endorsed.dirs="
 >I someone can help I'd appreciate it. If you need a log of the startup
 >operations I would create one if I knew how, so if someone can tell me I'd
 >appreciates that also.
 >I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
 >sp3 with all security and other patches.
 >I have Sun's Java j2sdk1.4.1



--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried <mailto:[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]



RE: ejbs and sql server [OT]

2003-02-28 Thread Tam, Michael
Hi Raja,

   Just curious, have you guys tried the JBOSS with embedded TOMCAT?

Regards,
Michael

-Original Message-
From: Raja Sekhar [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:19 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server


Typically if you have a JSP & EJB scnearion, then deploye JSP's on tomcat
and configure JBOSS as EJB Container for ejb components. The way we
configure Apache - Tomcat where tomcat acts as a JSP/ servlet engine,  here
we need to configure Tomcat & JBoss for EJB.

Regards,

..Raj
--

On Fri, 28 Feb 2003 17:09:11  
 Tam, Michael wrote:
>That is only a simple java class.  I think you need to do some more
research
>on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
>give you my $.02 here (To experts, correct me if I am wrong about this).  
>
>EJB need to deployed in a EJB container which tomcat is not and in order to
>use EJB with tomcat you have to do something like the following:
>1) Deploy your EJBs in the EJB container
>2) Provide some interfaces of your EJBs to tomcat such that your app in
>tomcat can use to contact the EJB container and call EJBs to work.
>
>Hope this help.
>
>cheers,
>Michael
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: RE: ejbs and sql server
>
>
>http://128.91.107.144:8080/examples/jsp/index.html
>
>in the tomcat examples there is an example date as shown in the url above.

>that date calls a class from web-apps/classes/date/JspCalendar.  they claim

>this is use of a jsp page making an instance of a ejb (java bean).  how
come
>
>they didn't have to set up additional software?  but everyone is saying you

>need to install additional software so that tomcat can use ejbs?
>
>mike ni
>
>
>
>
>
>
>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>Subject: RE: ejbs and sql server
>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>
>>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>>Later, J
>>
>>-Original Message-
>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:24 PM
>>To: Tomcat Users List
>>Subject: RE: ejbs and sql server
>>
>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>
>>Filip
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 12:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>>
>>inside WEB-INF and they work?
>>
>>mike
>>
>>
>>
>>
>>
>>
>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>> >Subject: RE: ejbs and sql server
>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>> >
>> >Well, you should try search example online i.e. through google.  EJB is
>>a
>> >standard and should work with any DBMS (usually ;) ). Once you find an
>> >example and it should work on your choice of DBMS.
>> >
>> >-Original Message-
>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, February 28, 2003 11:28 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: ejbs and sql server
>> >
>> >
>> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>>I
>> >have different queries that i want to run but i want to make my
>>connection
>> >and queries in a EJB so i dont have to retype it in my JSP pages every
>>time
>> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
>> >
>> >mike
>> >
>> >
>> >
>> >
>> >
>> >_
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>> >-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >---

RE: ejbs and sql server

2003-02-28 Thread Tam, Michael
That is only a simple java class.  I think you need to do some more research
on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
give you my $.02 here (To experts, correct me if I am wrong about this).  

EJB need to deployed in a EJB container which tomcat is not and in order to
use EJB with tomcat you have to do something like the following:
1) Deploy your EJBs in the EJB container
2) Provide some interfaces of your EJBs to tomcat such that your app in
tomcat can use to contact the EJB container and call EJBs to work.

Hope this help.

cheers,
Michael

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server


http://128.91.107.144:8080/examples/jsp/index.html

in the tomcat examples there is an example date as shown in the url above.  
that date calls a class from web-apps/classes/date/JspCalendar.  they claim 
this is use of a jsp page making an instance of a ejb (java bean).  how come

they didn't have to set up additional software?  but everyone is saying you 
need to install additional software so that tomcat can use ejbs?

mike ni






>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Subject: RE: ejbs and sql server
>Date: Fri, 28 Feb 2003 13:23:04 -0700
>
>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>Later, J
>
>-Original Message-
>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 1:24 PM
>To: Tomcat Users List
>Subject: RE: ejbs and sql server
>
>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>
>Filip
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: ejbs and sql server
>
>
>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>
>inside WEB-INF and they work?
>
>mike
>
>
>
>
>
>
> >From: "Tam, Michael" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> >Subject: RE: ejbs and sql server
> >Date: Fri, 28 Feb 2003 15:01:10 -0500
> >
> >Well, you should try search example online i.e. through google.  EJB is
>a
> >standard and should work with any DBMS (usually ;) ). Once you find an
> >example and it should work on your choice of DBMS.
> >
> >-Original Message-
> >From: Michael Ni [mailto:[EMAIL PROTECTED]
> >Sent: Friday, February 28, 2003 11:28 AM
> >To: [EMAIL PROTECTED]
> >Subject: ejbs and sql server
> >
> >
> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>I
> >have different queries that i want to run but i want to make my
>connection
> >and queries in a EJB so i dont have to retype it in my JSP pages every
>time
> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
> >
> >mike
> >
> >
> >
> >
> >
> >_
> >The new MSN 8: advanced junk mail protection and 2 months FREE*
> >http://join.msn.com/?page=features/junkmail
> >
> >
> >-
> >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]
>
>
>_
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>
>-
>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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
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: ejbs and sql server

2003-02-28 Thread Tam, Michael
Well, you should try search example online i.e. through google.  EJB is a
standard and should work with any DBMS (usually ;) ). Once you find an
example and it should work on your choice of DBMS.

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: ejbs and sql server


Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
have different queries that i want to run but i want to make my connection 
and queries in a EJB so i dont have to retype it in my JSP pages every time 
i need it.  Also does anyone have examples of JSP pages calling EJBs?

mike





_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


-
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: setting up Tomcat 4.1

2003-02-28 Thread Tam, Michael
Did you set JAVA_HOME in your environment variable?
i.e.  JAVA_HOME=C:\j2sdk1.4.1

-Original Message-
From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:41 AM
To: [EMAIL PROTECTED]
Subject: setting up Tomcat 4.1


I have been trying to setup Tomcat 4.1 I have entered all class and other
paths. When I run Startup it goes through a whole set of operations then
finishes with "can not find -Djava.endorsed.dirs="
I someone can help I'd appreciate it. If you need a log of the startup
operations I would create one if I knew how, so if someone can tell me I'd
appreciates that also.
I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
sp3 with all security and other patches.
I have Sun's Java j2sdk1.4.1

--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried 



-
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: how can I disable directory listing at client side

2003-02-26 Thread Tam, Michael
The listing maybe coming from tomcat itself.  Make sure you disable tomcat
directory listing as well.

-Original Message-
From: Kwong Chong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: how can I disable directory listing at client side


Hmm I have a similar problem that's been bugging me - 
The way I normally disable directory listing is to remove the 
"Options Indexes" option from the Directory directive, ending up with


Options FollowSymLinks
AllowOverride None


With apache running alone, this all works fine, if you try to get a
directory listing, you get a forbidden message - everything a ok!

When I then configure apache to use modjk2, and to auto forward dynamic
pages to the application server, ie adding

DirectoryIndex  index.jsp index.html

in httpd.conf,

and

[uri:/*.jsp]
worker=lb:workerLB

in workers2.properties,

Everything seems to work fine; dynamic pages work etc, but I can now get
directory listings!

When I change DirectoryIndex to just
DirectoryIndex index.html

directory listing is disabled again,
or when I remove the 
[uri:/*.jsp]
worker=lb:workerLB
from workers2.properties,
directory listing is disabled too!

Any ideas?

Kwong.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 26 February 2003 8:22
To: [EMAIL PROTECTED]
Subject: RE: how can I disable directory listing at client side


Do it in your apache httpd.conf

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED] 
Sent: February 25, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory listing at client side

Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Powered by telstra.com

 


-
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: how can I disable directory listing at client side

2003-02-25 Thread Tam, Michael
It is in the web.xml where you can set it to false to disable it.

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 12:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory listing at client side


Hi all,
  How can I disable the directory listing to be shown
when someone tries to load my application remotely
through a browser?
I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
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: Need to create two lists and add remove data between them.... ?

2003-02-25 Thread Tam, Michael
What I meant is to build the html form as an applet not just the list
components.  Then you can controll all the form components using JAVA.

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:59 AM
To: Tomcat Users List
Subject: RE: Need to create two lists and add remove data between
them ? 


You'd still need javascript to fill in the form elements even if you used an
applet.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Tam, Michael [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 9:44 AM
> To: 'Tomcat Users List'
> Subject: RE: Need to create two lists and add remove data between
> them ?
>
>
> You may consider using an applet as the interface instead of html if you
> don't want to go with javascript.
>
> -Original Message-
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 9:09 PM
> To: Tomcat Users List
> Subject: Re: Need to create two lists and add remove data between
> them ?
>
>
> Is there a way to do this with using just java and html and not use
> Java Script ?
>
> On Tuesday, February 25, 2003, at 10:58  PM, Turner, John wrote:
>
> >
> > This is a Javascript question.
> >
> > http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-
> > 8&q=javascript+multiple+s
> > elect+list
> >
> > John
> >
> >> -Original Message-
> >> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, February 24, 2003 11:52 PM
> >> To: Tomcat List
> >> Subject: Need to create two lists and add remove data between
> >> them ?
> >>
> >>
> >>
> >> Hi,
> >>
> >> I have a JSP page on which i need to create two lists side by
> >> side and
> >> have two buttons between them - Add and Remove. I have other stuff on
> >> the same JSP page as well. like text boxes, check boxes etc.
> >>
> >> How do I get my add and remove buttons to work so that i can
> >> capture a
> >> mouse click on add to transfer the selected item from list1
> >> to list2 ?
> >> (the same for the remove button .. remove a selected item from list2
> >> and add it back to list1).
> >>
> >> Does anybody know how to solve this problem ? Sample code would be
> >> highly appreciated to.
> >>
> >> Thanks,
> >> Mufaddal.
> >>
> >>
> >> -
> >> 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]
>
> -
> 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]



RE: Need to create two lists and add remove data between them.... ?

2003-02-25 Thread Tam, Michael
You may consider using an applet as the interface instead of html if you
don't want to go with javascript.

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:09 PM
To: Tomcat Users List
Subject: Re: Need to create two lists and add remove data between
them ? 


Is there a way to do this with using just java and html and not use  
Java Script ?

On Tuesday, February 25, 2003, at 10:58  PM, Turner, John wrote:

>
> This is a Javascript question.
>
> http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF- 
> 8&q=javascript+multiple+s
> elect+list
>
> John
>
>> -Original Message-
>> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>> Sent: Monday, February 24, 2003 11:52 PM
>> To: Tomcat List
>> Subject: Need to create two lists and add remove data between
>> them ?
>>
>>
>>
>> Hi,
>>
>> I have a JSP page on which i need to create two lists side by
>> side and
>> have two buttons between them - Add and Remove. I have other stuff on
>> the same JSP page as well. like text boxes, check boxes etc.
>>
>> How do I get my add and remove buttons to work so that i can
>> capture a
>> mouse click on add to transfer the selected item from list1
>> to list2 ?
>> (the same for the remove button .. remove a selected item from list2
>> and add it back to list1).
>>
>> Does anybody know how to solve this problem ? Sample code would be
>> highly appreciated to.
>>
>> Thanks,
>> Mufaddal.
>>
>>
>> -
>> 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]

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



RE: tomcat4 dies when JBDC Realm is configured

2003-02-24 Thread Tam, Michael
I believe the attributes named differently.

I am using 4.1.19 under Windows. I don't remember from which version on the
following attributes name differently.

userName now called connectionName
userPassword now called connectionPassword

I think that maybe the problem.

Cheers

-Original Message-
From: Mubaraka Arif [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2:32 PM
To: Tomcat Users List
Subject: Re: tomcat4 dies when JBDC Realm is configured


.







  
   

 
 


 

 
 

 
 


 



   

pls suggest whether my placing of the Realm needs change to resolve the 
problem.
Thanks for all yr help

Mubaraka



On 2003.02.24 15:08 "Tam, Michael" wrote:
> Hi Mubaraka,
> 
>Can you verify if your JDBC library does work?  For example, use a
> simple
> jsp/servlet to call JDBC to connect to your db??  Once JDBC is working
> then
> we can narrow down where the problem is.
> 
> Michael
> 
> -Original Message-
> From: Mubaraka Arif [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 11:51 AM
> To: Tomcat Users List
> Subject: Re: tomcat4 dies when JBDC Realm is configured
> 
> 
> 
> hi michael,
> 
> I had provided the ConnectionURL, connectionName and
> connectionPassword
> , its jsut for security reasons I did not have it along with other
> details.
> I tried it placing under host, context and Engine services but still
> it
> dies.
> 
> All help would be appreciated
> 
> Mubaraka
> 
> 
> On 2003.02.24 12:34 "Tam, Michael" wrote:
> > In your xml, if it is what you're using in your setup, then you
> didn't
> > provide any value to connectionURL, connectionName, and
> > connectionPassword
> > to establish connection to the database.  If you need help on this,
> > you
> > should read the document that comes with tomcat where you will find
> a
> > section related to setting up JDBC REALM and the document of the
> JDBC
> > driver
> > that you use.
> >
> > Hope this help.
> >
> > Michael
> >
> > -Original Message-
> > From: Mubaraka Arif [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 24, 2003 9:16 AM
> > To: Tomcat Users List
> > Subject: tomcat4 dies when JBDC Realm is configured
> >
> >
> > hello ,
> >
> > I have been trying to establish conainer amanaged security , so I
> > tried
> > to configure it using JDBC Realm.
> > Steps what I follwed where :
> >
> > 1. created users table with fields username, password.
> >
> > 2. created roles tables with fields username, rolename.
> >
> > 3. In server.xml I added the JDBC Realm as follows :
> > Snippet of server.xml
> >  
> >   
> > >  unpackWARs="false" autoDeploy="true">
> >
> >  
> >   >  directory="logs" prefix="localhost_" suffix=".log"
> >  timestamp="true"/>
> >
> >> debug="99"
> >  driverName="com.informix.jdbc.IfxDriver"
> >  connectionURL=" "
> >  connectionName=""
> >  connectionPassword=""
> >  userTable="users"
> >  userNameCol="username"
> >  userCredCol="password"
> >  userRoleTable="roles"
> >  roleNameCol="rolename:/>
> >
> >   > reloadable="true">
> >  
> >
> >
> >
> > 
> >
> >  
> >
> >
> >
> >
> > When I start tomcat4 , it starts and dies in about 60sec.
> >
> > If any of you have encountered such situations , please  provide
> some
> > light to this problem which would be greatly appreciated.
> >
> > Mubaraka Arif
> > Data Management Software Developer
> > St Mary's University, San Antonio, TX
> > e-mail : [EMAIL PROTECTED]
> > phone: 210-436-3647
> >
> > 
> -
> > 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]
> 
> -
> 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]



RE: tomcat4 dies when JBDC Realm is configured

2003-02-24 Thread Tam, Michael
Hi Mubaraka,

   Can you verify if your JDBC library does work?  For example, use a simple
jsp/servlet to call JDBC to connect to your db??  Once JDBC is working then
we can narrow down where the problem is.

Michael

-Original Message-
From: Mubaraka Arif [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 11:51 AM
To: Tomcat Users List
Subject: Re: tomcat4 dies when JBDC Realm is configured



hi michael,

I had provided the ConnectionURL, connectionName and connectionPassword 
, its jsut for security reasons I did not have it along with other 
details.
I tried it placing under host, context and Engine services but still it 
dies.

All help would be appreciated

Mubaraka


On 2003.02.24 12:34 "Tam, Michael" wrote:
> In your xml, if it is what you're using in your setup, then you didn't
> provide any value to connectionURL, connectionName, and
> connectionPassword
> to establish connection to the database.  If you need help on this,
> you
> should read the document that comes with tomcat where you will find a
> section related to setting up JDBC REALM and the document of the JDBC
> driver
> that you use.
> 
> Hope this help.
> 
> Michael
> 
> -Original Message-
> From: Mubaraka Arif [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 9:16 AM
> To: Tomcat Users List
> Subject: tomcat4 dies when JBDC Realm is configured
> 
> 
> hello ,
> 
> I have been trying to establish conainer amanaged security , so I
> tried
> to configure it using JDBC Realm.
> Steps what I follwed where :
> 
> 1. created users table with fields username, password.
> 
> 2. created roles tables with fields username, rolename.
> 
> 3. In server.xml I added the JDBC Realm as follows :
> Snippet of server.xml
>
>   
>  unpackWARs="false" autoDeploy="true">
> 
>  
>directory="logs" prefix="localhost_" suffix=".log"
>  timestamp="true"/>
> 
>debug="99"
>  driverName="com.informix.jdbc.IfxDriver"
>  connectionURL=" "
>  connectionName=""
>  connectionPassword=""
>  userTable="users"
>  userNameCol="username"
>  userCredCol="password"
>  userRoleTable="roles"
>  roleNameCol="rolename:/>
> 
>   reloadable="true">
>  
> 
> 
> 
> 
> 
>  
> 
>
> 
> 
> When I start tomcat4 , it starts and dies in about 60sec.
> 
> If any of you have encountered such situations , please  provide some
> light to this problem which would be greatly appreciated.
> 
> Mubaraka Arif
> Data Management Software Developer
> St Mary's University, San Antonio, TX
> e-mail : [EMAIL PROTECTED]
> phone: 210-436-3647
> 
> -
> 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]

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



RE: tomcat4 dies when JBDC Realm is configured

2003-02-24 Thread Tam, Michael
In your xml, if it is what you're using in your setup, then you didn't
provide any value to connectionURL, connectionName, and connectionPassword
to establish connection to the database.  If you need help on this, you
should read the document that comes with tomcat where you will find a
section related to setting up JDBC REALM and the document of the JDBC driver
that you use.

Hope this help.

Michael

-Original Message-
From: Mubaraka Arif [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 9:16 AM
To: Tomcat Users List
Subject: tomcat4 dies when JBDC Realm is configured 


hello ,

I have been trying to establish conainer amanaged security , so I tried 
to configure it using JDBC Realm.
Steps what I follwed where :

1. created users table with fields username, password.

2. created roles tables with fields username, rolename.

3. In server.xml I added the JDBC Realm as follows :
Snippet of server.xml
 
  
   

 
 

  
 

 



 

   


When I start tomcat4 , it starts and dies in about 60sec.

If any of you have encountered such situations , please  provide some 
light to this problem which would be greatly appreciated.

Mubaraka Arif
Data Management Software Developer
St Mary's University, San Antonio, TX
e-mail : [EMAIL PROTECTED]
phone: 210-436-3647

-
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: is it possible to use setAttribute for request in jsp??

2003-02-20 Thread Tam, Michael
You can use requestDispatcher to forward your req to your servlet.

i.e. getServletContext().getRequestDispatcher(url).forward(reqest,response);

Hope this help.

Michael

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: is it possible to use setAttribute for request in jsp??


Hi,
I have to do some thing like this,
>From my jsp i want to pass some object to servlet, but
do not want to use session for it
so what i am trying is , in my jsp i have

<%
request.setAttribute("myObject", myObject);
%>


and in my servlet i m trying to read it as
request.getAttribute ("myObject");

But i get null, as when i submit i get, it is a new
request and so myObject set in request is not any more
valid, 
so what are the things i can do to make it work,??
I dont want to put it in session and pass it

Ashish



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
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: Login problems (still)

2003-02-19 Thread Tam, Michael
Are you sure you looked at the right API ;-)
It is in the servlet api.  Look carefully and you will find it.

Cheers

-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 6:00 AM
To: Tomcat Users List
Subject: Re: Login problems (still)


I looked right at it and didn't see it in the API.. duh!

Side question:
If I wanted to write my own login action (I'm using struts) how would you
populate the session so that methods such as isUserInRole() would still
work?

Thanks!

--
Sloan

- Original Message -
From: "Barney Hamish" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 8:45 AM
Subject: RE: Login problems (still)


> use the Session.invalidate() method
> Try looking at the j2ee api.
> Hamish
>
> > -Original Message-
> > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 14, 2003 2:46 PM
> > To: Tomcat Users List
> > Subject: Re: Login problems (still)
> >
> >
> > What is the best way to go about invalidating a session?
> >
> > Do I just go through the HttpSession object nulling
> > everything or do I null
> > objects in the java.security.Principal object?
> >
> > Thanks!
> >
> > --
> > Sloan
> >
> > - Original Message -
> > From: "Filip Hanik" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, February 13, 2003 5:38 PM
> > Subject: RE: Login problems (still)
> >
> >
> > for logout, you can simple invalidate your session.
> >
> > if you need to keep the session around after invalidating it,
> > just create a
> > new one and populate data to it
> >
> > Filip
> >
> > -Original Message-
> > From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 13, 2003 2:40 PM
> > To: Tomcat Users List
> > Subject: Login problems (still)
> >
> >
> > Ok, so I kind of have login authentication working to where I
> > want it to
> > work.
> >
> > But here is the next question?
> >
> > How do they logout/login again?
> >
> > What I did was have an index.jsp page have a link to a
> > location within a
> > security-context.  So if they click on it it asks them to
> > login and then
> > forwards them to the proper place.  Works great.
> >
> > Now, say I go back to the main index.jsp page and I want to
> > login a someone
> > else.
> >
> > Since I have already logged in as one person I clear the
> > security check and
> > go right to the page instead of getting the login page.
> >
> > If I have a link directly to the login page I start getting
> > the invalid
> > direct reference error.
> >
> > Should I just write a loginAction in struts and be done with
> > it?  If so, how
> > can I get to the realm information?
> >
> > Thanks!
> > --
> > Sloan
> >
> >
> >
> > -
> > 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]
> >
>
> -
> 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]




RE: [OT] free Database with Transaction (Sorry for the noise)

2003-02-18 Thread Tam, Michael
MySQL does support transaction and it has JDBC Driver.  If you have read a
bit more in depth on MySQL website, you would have found what you are
looking for.

-Original Message-
From: Jens Skripczynski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 10:20 AM
Cc: [EMAIL PROTECTED]
Subject: [OT] free Database with Transaction (Sorry for the noise)


hi,

I'm looking for a Database, that can do 
- sql transactions,  
  (or anything similiar to sql - if it works with a xml
  database, xml is fine)
- has a java 1.4.1 jdbc driver
- is free (even better if for commercial use)

'Mysql' was my first option, but it does not have transactions.

In an _old_ computer magazine i found 'instantdb' but this one
seems to be discontinued.

The database tables i want to create, are only for one application.
So a client server system or connection pooling are not neccessary.

If someone knows what 'instantdb' is, its features seem to be enough.
Anything additional is good.

But i think the 'free' statement reduces the return results to '0'. :(

Ciao

Jens Skripczynski
-- 
E-Mail: skripi(at)myrealbox(dot)com

In this world there are only two tragedies; one is not getting
what one wants, the other is getting it.
  -- Oscar Wild


-
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: how to run Tomcat on port 80 instead of 8080

2003-02-13 Thread Tam, Michael
In server.xml, where you should able to find the entry as follow:




change the port to "80".

Though, I believe in UNIX/LINUX systems, which I am not too familar with,
there is restriction on using these well known ports.


Hope this will help.

Regards,
Michael

-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 5:41 PM
To: [EMAIL PROTECTED]
Subject: how to run Tomcat on port 80 instead of 8080


Hi,
  I want to run Tomcat on port 80 instead of 8080. How
can I do that? 
  I shall appreciate any help.
Thanks and Regardds,
Runu

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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: Tomcat ( JSP)+ MySql .. driver ?

2003-02-07 Thread Tam, Michael
If you want all tomcat webapps to use MySQL, put the MySQL JDBC jar file to
common/lib folder.

If you want just a particular webapp to use MySQL, put the jar file to
YOUR_WEBAPP/WEB-INF/lib.

If you don't know how to use JDBC + JSP, you should go to SUN site to read
their tutorials.

Hope this get you started.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 2:08 PM
To: [EMAIL PROTECTED]
Subject: Tomcat ( JSP)+ MySql .. driver ?





  hi  guys ,

 can anyone help me plz ! .. how can i make my jsp files working on
Tomcat work  with MySql database .. i download the java-module offered from
MySql site .. but i dont know where / how to work with it !

thanks in advance ,

Walid 

-
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: Oracle cursor problem with Tomcat 4.1.12 and Commons BDSF

2003-02-05 Thread Tam, Michael
Maybe you can post a segment of the code or example to illustrate your
problem.

Michael

-Original Message-
From: Andy Meadows [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 2:25 PM
To: Tomcat Users List
Subject: Re: Oracle cursor problem with Tomcat 4.1.12 and Commons BDSF


Doing that.

Actually, further testing reveals that the problem occurs with the
statement.  If an exception occurs while the statement is being prepared,
then an exception is thrown.  However, it would appear that this exception
is thrown after a cursor is opened (internally) and that cursor is never
closed.  A call to close on the statement in turn throws a NPE because a
value was never assigned to it.  Thus, I'm left with an open cursor on an
object that I can't reach.

Can anyone else validate this?

Andy



- Original Message -----
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 4:22 PM
Subject: RE: Oracle cursor problem with Tomcat 4.1.12 and Commons BDSF


> Have seen this problem before.
> It is the JDBC code.  The best solution is to explicitly close RESULTSET,
> STATEMENT (of any kind), and CONNECTION as soon as you finished using the
> object ( or else close them in the FINALLY block)
>
> Regards,
> Michael
>
> -Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 1:04 PM
> To: Tomcat Users List
> Subject: Re: Oracle cursor problem with Tomcat 4.1.12 and Commons BDSF
>
>
> Try explicitly closing your ResultSet variables as well.  See if the
> problem persists.
>
> At 13:58 2003-02-04, you wrote:
> >Configuring Tomcat to provide a JNDI connection pool was no problem.
Now,
> >however, we are getting error ORA-01000: maximum cursors opened.  Logging
> >shows that any statement and connection that is opened is again closed
> >which, according to everything I read, release the cursors.  This is
> >obviously not the case.
> >
> >Has anyone else experienced this problem and, if so, what was the
> >resolution -- other than increasing opened cursor counts.
> >
> >Andy Meadows
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
>
>
> -
> 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]

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




RE: Oracle cursor problem with Tomcat 4.1.12 and Commons BDSF

2003-02-04 Thread Tam, Michael
Have seen this problem before.
It is the JDBC code.  The best solution is to explicitly close RESULTSET,
STATEMENT (of any kind), and CONNECTION as soon as you finished using the
object ( or else close them in the FINALLY block)

Regards,
Michael

-Original Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 1:04 PM
To: Tomcat Users List
Subject: Re: Oracle cursor problem with Tomcat 4.1.12 and Commons BDSF


Try explicitly closing your ResultSet variables as well.  See if the 
problem persists.

At 13:58 2003-02-04, you wrote:
>Configuring Tomcat to provide a JNDI connection pool was no problem.  Now,
>however, we are getting error ORA-01000: maximum cursors opened.  Logging
>shows that any statement and connection that is opened is again closed
>which, according to everything I read, release the cursors.  This is
>obviously not the case.
>
>Has anyone else experienced this problem and, if so, what was the
>resolution -- other than increasing opened cursor counts.
>
>Andy Meadows
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com



-
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: web.xml question

2003-02-03 Thread Tam, Michael
It is since 4.1.12.  Just read the release-note for changes under [4.1.12].

Regards,
Michael

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 2:54 PM
To: 'Tomcat Users List'
Subject: RE: web.xml question


Is there some documentation regarding this?  I remember this used to work
earlier.  is this the case only with tomcat or with all app servers?  

I tried out different options like putting /servlets or /servlet before the
servlet class, but the only time it worked was when I specified the servlet
class in the web.xml AND a  entry as well.  My question is,
is this a standard being followed universally?

Thanks
-Manoj.

-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 5:50 PM
To: Tomcat Users List
Subject: RE: web.xml question


> -Original Message-
> From: Haytham Samad [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 03, 2003 5:47 PM
> To: Tomcat Users List
> Subject: RE: web.xml question
> 
> 
> Hi,
> 
> I think you need to change your url to the following:
> 
> http://localhost:8080/test/servlets/SessioinTest
> 
> or change servlets to servlet, not sure which at this point.  
> This is basically how you call a servlet that is not mapped 
> to a specific url pattern in your web.xml config file.  I am 
> assuming test is your context name!?

Note that in Tomcat 4.1.12 and later, this won't work either on an
out-of-the-box install.  You should define an explicit servlet-mapping
in your web.xml.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

> 
> ...
> 
> -Original Message-
> From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 4:31 PM
> To: 'Tomcat Users List'
> Subject: RE: web.xml question
> 
> 
> Maybe I am doing this incorrectly - but I have a servlet 
> class in my WEB-INF/classes 
> directory(SessionTestServlet.class) and in my web.xml, I have 
> an entry like this 
>   SessionTest
>   SessionTestServlet
> 
> 
> When I type http://localhost:8080/test/SessioinTest, it gives 
> me an error saying requested resource not found.  What could 
> I be doing wrong?
> 
> Thanks
> -Manoj.
> 
> 
> 
> -Original Message-
> From: Paul Hsu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 5:24 PM
> To: Tomcat Users List
> Subject: Re: web.xml question
> 
> 
> Not really, if you have a servlet is used for startup a 
> background process, then you do not need a mapping section.
> 
> - Original Message -
> From: "Pooleery, Manoj" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, February 03, 2003 2:22 PM
> Subject: web.xml question
> 
> 
> > Is it necessary that for each of the  elements in the 
> > web.xml, a corresponding  element should be there? 
> > (For a context other than root).
> >
> > Thanks
> > -Manoj.
> >
> 
> 
> -
> 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]

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




RE: run tomcat 4.1 as service in Win 2K/XP

2003-01-16 Thread Tam, Michael
Thank you John.

I am not familiar the "service" business but, according to the link you gave
me, it seems to me that tomcat has already include the exe for running as
service.  I wonder why the service setup is not in the installation section
of the tomcat document (If I did not miss reading the document, they didn't
mention it).

Michael

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 11:15 AM
To: 'Tomcat Users List'
Subject: RE: run tomcat 4.1 as service in Win 2K/XP



This might help:

http://www.mattkelli.com/tech/tomcat/ntservice.htm

John

> -Original Message-
> From: Tam, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 2:13 PM
> To: Tomcat UserList (E-mail)
> Subject: run tomcat 4.1 as service in Win 2K/XP
> 
> 
> Hi all,
> 
> I am running tomcat 4.1.12-LE and 4.1.18-LE on Win 2k and XP 
> respectively
> with jdk1.4.1.  I downloaded the zip format of the binary and 
> now I would
> like to run tomcat as a service.  How do I set this up?  
> I realize I can reinstall Tomcat through the exe version but 
> I wonder if
> there is a way I don't have to reinstall every in order to 
> get it to run as
> service??  Thank you.
> 
> Regards,
> Michael
> 
> --
> --
> ---
> Michael Tam - NFI Database Developer   Natural
> Resources Canada
> [EMAIL PROTECTED]   Pacific Forestry
> Center
> Phone: (250) 363-8074 
> 506 West Burnside
> Road
> Fax: (250) 363-0775   
> Victoria, BC
> V8Z 1M5
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

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




run tomcat 4.1 as service in Win 2K/XP

2003-01-16 Thread Tam, Michael
Hi all,

I am running tomcat 4.1.12-LE and 4.1.18-LE on Win 2k and XP respectively
with jdk1.4.1.  I downloaded the zip format of the binary and now I would
like to run tomcat as a service.  How do I set this up?  
I realize I can reinstall Tomcat through the exe version but I wonder if
there is a way I don't have to reinstall every in order to get it to run as
service??  Thank you.

Regards,
Michael


---
Michael Tam - NFI Database Developer   Natural
Resources Canada
[EMAIL PROTECTED] Pacific Forestry
Center
Phone: (250) 363-8074   506 West Burnside
Road
Fax: (250) 363-0775 Victoria, BC
V8Z 1M5




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Installation woes

2003-01-08 Thread Tam, Michael
Nathan,

In this case, which jdk are you using??  4.1.18 requires jdk1.4.

If you're using the right jdk then it is very likely the problem is not
coming from the JDK but your configuration if you did change something
there.

Michael

-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 2:23 PM
To: Tomcat Users List
Subject: Re: Installation woes


I added it, and it appears to be using the correct jdk.  However, now the
damn thing won't start.  And it closes the terminal window before I can
retreive the error message.

- Original Message -----
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 4:13 PM
Subject: RE: Installation woes


> Nathan,
>
>Adding JAVA_HOME as environment variable under Sys. Properties should
> work.  Where did you add your JAVA_HOME variable i.e. as User variable or
> System variable??  It should be under System Variable.  I am running XP
Home
> on my notebook and it works for me.
>
> Hope this help.
>
> Michael
>
> -Original Message-
> From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 1:50 PM
> To: Tomcat Users List
> Subject: Re: Installation woes
>
>
> John,
>
> Here's the kicker, running SET from the command line (win xp) doesn't
> list JAVA_HOME as an existing env var, neither does sys properties ->
> advanced -> environment variables.  Is there somewhere else to look for
it?
>
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 08, 2003 3:41 PM
> Subject: RE: Installation woes
>
>
> >
> > Change the JAVA_HOME environment variable to point to the JDK you want
to
> > use.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 08, 2003 4:39 PM
> > > To: Tomcat Users List
> > > Subject: Installation woes
> > >
> > >
> > > When installing Tomcat 4.1.18, during the installation, it
> > > autodetects the
> > > jdk install location.  Is there any way to override this?  If
> > > not, how do
> > > you change the jdk that tomcat uses?  It is automatically
> > > using an older jdk
> > > that Jbuilder installed, and I don't want it to use this one.
> > >
> > > --Nathan McMinn
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



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

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




RE: Installation woes

2003-01-08 Thread Tam, Michael
Nathan,

   Adding JAVA_HOME as environment variable under Sys. Properties should
work.  Where did you add your JAVA_HOME variable i.e. as User variable or
System variable??  It should be under System Variable.  I am running XP Home
on my notebook and it works for me.

Hope this help.

Michael

-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 1:50 PM
To: Tomcat Users List
Subject: Re: Installation woes


John,

Here's the kicker, running SET from the command line (win xp) doesn't
list JAVA_HOME as an existing env var, neither does sys properties ->
advanced -> environment variables.  Is there somewhere else to look for it?

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 3:41 PM
Subject: RE: Installation woes


>
> Change the JAVA_HOME environment variable to point to the JDK you want to
> use.
>
> John
>
>
> > -Original Message-
> > From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 08, 2003 4:39 PM
> > To: Tomcat Users List
> > Subject: Installation woes
> >
> >
> > When installing Tomcat 4.1.18, during the installation, it
> > autodetects the
> > jdk install location.  Is there any way to override this?  If
> > not, how do
> > you change the jdk that tomcat uses?  It is automatically
> > using an older jdk
> > that Jbuilder installed, and I don't want it to use this one.
> >
> > --Nathan McMinn
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC security?

2002-12-17 Thread Tam, Michael
_admin_log.2002-12-17.txt

2002-12-17 10:36:08 WebappLoader[/admin]: Deploying class repositories to
work directory /opt/tomcat/work/Standalone/localhost/admin
2002-12-17 10:36:08 WebappLoader[/admin]: Deploy class files
/WEB-INF/classes to
/opt/tomcat/webapps/../server/webapps/admin/WEB-INF/classes
2002-12-17 10:36:08 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
to /opt/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar
2002-12-17 10:36:13 ContextConfig[/admin]: Configured an authenticator for
method FORM
2002-12-17 10:36:13 StandardManager[/admin]: Seeding random number generator
class java.security.SecureRandom
2002-12-17 10:36:13 StandardManager[/admin]: Seeding of random number
generator has been completed
2002-12-17 10:36:13 StandardWrapper[/admin:default]: Loading container
servlet default
2002-12-17 10:36:13 default: init
2002-12-17 10:36:14 action: init
2002-12-17 10:36:27 StandardWrapper[/admin:invoker]: Loading container
servlet invoker
2002-12-17 10:36:27 invoker: init
2002-12-17 10:36:27 jsp: init

And here's the catalins.out


Dec 17, 2002 10:35:44 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Dec 17, 2002 10:35:45 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Dec 17, 2002 10:35:49 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Dec 17, 2002 10:35:53 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.9
Dec 17, 2002 10:36:33 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 17, 2002 10:36:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8009
Dec 17, 2002 10:36:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=844/101  config=/opt/tomcat/conf/jk2.properties
BookDBServlet Service Method: Start
BookDBServlet Service Method: Before List Book
BookDBServlet Service: Before login
BookDBServlet Service: After login
Stopping service Tomcat-Standalone
java.net.SocketException: Network is unreachable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:355)
at org.apache.jk.server.JkMain.stop(JkMain.java:283)
at
org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:174)
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1051)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2223)
at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:
622)



============



"Tam, Michael" <[EMAIL PROTECTED]> wrote:

>Hi Peter,
>
>   We need more details on the log in order to help.  I will take a wild
>guess here that the servlet can't find the driver and which may due to the
>driver lib is located in the wrong place.  Hope this helps.
>
>Regards,
>Michael
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 17, 2002 8:55 AM
>To: [EMAIL PROTECTED]
>Subject: JDBC security?
>
>
>To all,
>
>I had a servlet communicating via JDBC to an Interbase database on Tomcat
>3.? and Apache 1.3.27, I can't remember tomcat version version.
>
>Now that I have Apache 2.04 and Tomcat 4.1.17 up and running the same
>servlet will not connect, the log file indicated it won't/can't load the
>database driver.
>
>Has there been some security updates to Tomcat that prohibit loading a
>databse driver unless specified ? 
>
>Here's the localhost_log.2002-12-17.txt file error message,
>
>Error Loading interbase.interclient.Driver
>
>...and here's the servlet code..
>
>import interbase.interclient.Driver;
>import java.io.*;
>import java.util.*;
>import java.sql.*;
>import java.text.*;
>import java.lang.*;
>import java.net.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>
>public class DBServlet extends HttpServlet {
>
>  protected String dbURL =
>"jdbc:interbase://127.0.0.1//opt/tomcat/webapps/bd/database/main.gdb";
>I tried this also
>// protected String dbURL =
>"jdbc:interbase://localhost//opt/tomcat/webapps/bd/database/main.gdb";
>
>
>  public v

RE: JDBC security?

2002-12-17 Thread Tam, Michael
Hi Peter,

   We need more details on the log in order to help.  I will take a wild
guess here that the servlet can't find the driver and which may due to the
driver lib is located in the wrong place.  Hope this helps.

Regards,
Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 8:55 AM
To: [EMAIL PROTECTED]
Subject: JDBC security?


To all,

I had a servlet communicating via JDBC to an Interbase database on Tomcat
3.? and Apache 1.3.27, I can't remember tomcat version version.

Now that I have Apache 2.04 and Tomcat 4.1.17 up and running the same
servlet will not connect, the log file indicated it won't/can't load the
database driver.

Has there been some security updates to Tomcat that prohibit loading a
databse driver unless specified ? 

Here's the localhost_log.2002-12-17.txt file error message,

Error Loading interbase.interclient.Driver

...and here's the servlet code..

import interbase.interclient.Driver;
import java.io.*;
import java.util.*;
import java.sql.*;
import java.text.*;
import java.lang.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class DBServlet extends HttpServlet {

  protected String dbURL =
"jdbc:interbase://127.0.0.1//opt/tomcat/webapps/bd/database/main.gdb";
I tried this also
// protected String dbURL =
"jdbc:interbase://localhost//opt/tomcat/webapps/bd/database/main.gdb";


  public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
Properties prop = new Properties();
prop.put ("user", "SYSDBA");
prop.put ("password", "masterkey");

THIS is the line that bombs!
Class.forName("interbase.interclient.Driver");


Thanks, 
-Peter


__
The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Retrieve User - Realm

2002-12-13 Thread Tam, Michael
Sorry for the misleading.  You are right Jeanfrancois.  Thank you for
pointing this out.

If only user name needed, try getRemoteUser().
If principal(user) object needed, try getUserPrincipal().

Regards,
Michael

-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:53 AM
To: Tomcat Users List
Subject: Re: Retrieve User - Realm


I think you are wrong. What he is looking for is:

HttpServletRequest.getUserPrincipal() that return the 
java.security.Principal object created within the Realm.

-- Jeanfrancois

-- Jeanfrancois

Tam, Michael wrote:

>It is in the API.  Take a look at
>javax.servlet.http.HtppServletRequest.getRemoteUser()
>
>Cheers,
>Michael
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 13, 2002 10:14 AM
>To: [EMAIL PROTECTED]
>Subject: Retrieve User - Realm
>
>
>Hello,
>
>I searched many places and read many things, but I didn't
> find any example that retrieve the user from the session
> after it is authenticated with realm.
>
>Can someone help me?
>
>Thanks.
>
>Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>  
>


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

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




RE: Retrieve User - Realm

2002-12-13 Thread Tam, Michael
It is in the API.  Take a look at
javax.servlet.http.HtppServletRequest.getRemoteUser()

Cheers,
Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: Retrieve User - Realm


Hello,

I searched many places and read many things, but I didn't
 find any example that retrieve the user from the session
 after it is authenticated with realm.

Can someone help me?

Thanks.

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem in running jakarta-tomcat-4.1.12-LE-jdk14

2002-12-10 Thread Tam, Michael
Make sure you have JDK1.4 installed.  SET JAVA_HOME (path to JDK1.4) and
CATALINA_HOME (path to Tomcat)

-Original Message-
From: suneet kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 7:04 AM
To: [EMAIL PROTECTED]
Subject: Problem in running jakarta-tomcat-4.1.12-LE-jdk14 


I have downloaded jakarta-tomcat-4.1.12-LE-jdk14 and after installing on
win 98 I set JAVA_HOME and CATALINA_HOME(in autexec.bat) as mentioned in
Running.txt.

But when I am trying to run tomcat using 'catalina run' from
CATALINA_HOME/bin
it is giving no classdefenitionfounderror  org/xml/sax/InputSource
at org.apache.catalina.startup.BootStrap.main.

I have tried to find org.xml.sax.InputSource.class and org.apache.catalina.
startup.BootStrap but I am unable to find .

So what to include in my class path to solve the problem.

thanks in advance.

suneet


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: trying to use jar file in jsp page (part 2)

2002-12-09 Thread Tam, Michael
Correct me if I am wrong, for the new jar lib to take effect, you need to
restart the webapp or tomcat itself.

Regards,
Michael

-Original Message-
From: Brian O. Bozarth [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 12:38 PM
To: Tomcat Users List
Subject: trying to use jar file in jsp page (part 2)



okay compiled the java files on my PC to make class files... rejarred them
up into a new jar file, then uploaded to this directory
(/tomcat/webapps/root/web-inf/lib)

then using this reference in my jsp file.

<%@ page import= "java.util.*, javax.naming.*, com.equifax.rcas.tools.*"%>

-or-

<%@ page import= "com.equifax.rcas.tools.*"%>

still getting same error.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/web1/labwerks/tomcat/work/Standalone/localhost/_/dev/test_jsp.java:9:
package com.equifax.rcas.tools does not exist
import com.equifax.rcas.tools.*;
^
1 error

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Servlet redirection problem

2002-11-01 Thread Tam, Michael
Hi all,

I am running Tomcat 4.1.12 + Apache 1.3.27 with mod_webapp on Win2k pro
machine.  I have a doPost() in a servlet which at the end would redirects to
a url with a query string (e.g.
newurl?VALUE1=abc&VALUE2=def) by calling respond.sendRedirect().   

The servlet did redirect to the target url but the query string is
scrambled.  From the given example, my resulting url becomes --->
newurl?value1=abc&value2=d&VAULE1=abc&VALUE2=def  [Please pay attention to
the case the parameters].  It seems like I have a addition query string
(with incomplete value) attach to the url before my original url.  


Any input would be appreciated. Thank you.

Regards,
Michael



---
Michael Tam - NFI Database Developer   Natural
Resources Canada
[EMAIL PROTECTED] Pacific Forestry
Center
Phone: (250) 363-8074   506 West Burnside
Road
Fax: (250) 363-0775 Victoria, BC
V8Z 1M5




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: ARG! Moved all my classes into a pakcage and now jsp's cannot findthem

2002-10-28 Thread Tam, Michael
When you invoke the servlet, you probably need to name the servlet the full
name e.g. com.syrrx.changemgmt.myservlet.

It maybe easier it you provide the servlet-mapping in your deployment
descriptor such that the url can be named in a shorter form.

Hope this help.

cheers.

-Original Message-
From: Carson, Chuck [mailto:Chuck.Carson@;syrrx.com]
Sent: Monday, October 28, 2002 3:21 PM
To: Tomcat Users List
Subject: RE: ARG! Moved all my classes into a pakcage and now jsp's
cannot findthem




Okay, I have placed changemgmt.jar into WEB-INF/lib, restarted tomcat. I
saw this in the log
file:localhost2002-10-28.log:WebappLoader[/changemgmt]: Deploy JAR
/WEB-INF/lib/changemgmt.jar to
/usr/local/jakarta-tomcat-4.1.12/webapps/changemgmt/WEB-INF/lib/changemg
mt.jar

When I submit a jsp form that calls this servlet it throws a class not
found exp. and it then makes the servlet unavailable:
localhost2002-10-28.log:StandardWrapper[/changemgmt:AddNewChange]:
Marking servlet AddNewChange as unavailable

The servlet is in a package called com.syrrx.changemgmt, in the jsp file
I import com.syrrx.changemgmt.*. This servlet worked fine when it
existed as a standalone class in WEB-INF/classes

Any ideas what is wrong?

Thanks,
Chuck


-Original Message-
From:   Wendy Smoak [mailto:Wendy.Smoak@;asu.edu]
Sent:   Mon 10/28/2002 2:58 PM
To: 'Tomcat Users List'
Cc: 
Subject:RE: ARG! Moved all my classes into a pakcage and now
jsp's cannotfindthem
> I added TOMCAT_HOME/webapps/changemgmt/WEB-INF/classes/changemgmt.jar
to
> my classpath and the server classpath.

Your .jar file belongs in the 'lib' subdirectory under WEB-INF, not in
the
'classes' subdirectory.

You shouldn't have to mess with the CLASSPATH... I've never had to.  I
just
drop .jar files into $TOMCAT_HOME/webapps/context/WEB-INF/lib and the
classes they contain are automagically available.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: ARG! Moved all my classes into a pakcage and now jsp's cannot find them

2002-10-28 Thread Tam, Michael
If you use class files then they should go in /classes and if you do want to
use jar you have to put it in /lib.

cheers,
Michael

-Original Message-
From: Carson, Chuck [mailto:Chuck.Carson@;syrrx.com]
Sent: Monday, October 28, 2002 2:54 PM
To: Tomcat Users List
Subject: ARG! Moved all my classes into a pakcage and now jsp's cannot
find them




I had several classes in
$TOMCAT_HOME/webapps/changemgmt/WEB-INF/classes.

I then added them all to a package called com.syrrx.changemgmt. I then
created
$TOMCAT_HOME/webapps/changemgmt/WEB-INF/classes/com/syrrx/changemgmt and
moved all the files there.

I then created a jar file here:
$TOMCAT_HOME/webapps/changemgmt/WEB-INF/classes/changemgmt.jar

I then modified all jsp files to import this package, and that much
works. However, a jsp form cannot find a servlet that is in the new
package.

I added TOMCAT_HOME/webapps/changemgmt/WEB-INF/classes/changemgmt.jar to
my classpath and the server classpath.

What am I doing wrong here?

Thanks,
CC


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with Tomcat 4.1.12 SSL

2002-10-08 Thread Tam, Michael

Hi All,

   Sorry for posting this problem that I didn't look carefully in the my
archive.  I found it from Remy's post back in September.

Michael

-Original Message-----
From: Tam, Michael [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 4:41 PM
To: Tomcat UserList (E-mail)
Subject: Problem with Tomcat 4.1.12 SSL


Hi All,

   I have Tomcat 4.1.12 running with SSL enabled with self-certified
keystore in place.  However, I encounter the following warning message and
exception.

Oct 7, 2002 3:21:00 PM org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
75)
at
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
ava:118)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
314)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

I have no clue what causes it and what it means.  Would someone kindly help
me out or simply point me to the right direction?



---
Michael Tam - NFI Database Developer   Natural
Resources Canada
[EMAIL PROTECTED] Pacific Forestry
Center
Phone: (250) 363-8074   506 West Burnside
Road
Fax: (250) 363-0775 Victoria, BC
V8Z 1M5




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

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




Problem with Tomcat 4.1.12 SSL

2002-10-07 Thread Tam, Michael

Hi All,

   I have Tomcat 4.1.12 running with SSL enabled with self-certified
keystore in place.  However, I encounter the following warning message and
exception.

Oct 7, 2002 3:21:00 PM org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
75)
at
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
ava:118)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
314)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

I have no clue what causes it and what it means.  Would someone kindly help
me out or simply point me to the right direction?



---
Michael Tam - NFI Database Developer   Natural
Resources Canada
[EMAIL PROTECTED] Pacific Forestry
Center
Phone: (250) 363-8074   506 West Burnside
Road
Fax: (250) 363-0775 Victoria, BC
V8Z 1M5




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on L inux RH 7.3)

2002-10-02 Thread Tam, Michael

Thank you John for your correction.

Actually, I have run through my apache conf file and found the port 8443
being comment out.  

Regarding to the original question, the given example url is using the
default 443 port for ssl and tomcat ssl default is using 8443.  So, make
sure you make tomcat to listen to 443 instead.

I am using 8443 at this point and it works for me and I suppose it works the
same for port 443.

Cheers,
Michael


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 12:05 PM
To: 'Tomcat Users List'
Subject: RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
L inux RH 7.3)



That won't work...only one service can bind to a given port at a
time...communications between Apache and Tomcat occur on the given connector
port (8009 is the default for AJP13), SSL or not.

John

> -Original Message-
> From: Tam, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 3:01 PM
> To: 'Tomcat Users List'
> Subject: RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 
> 1.3.26 (on
> L inux RH 7.3)
> 
> 
> I believe you have to make Tomcat to listen to port 443 
> instead of 8443 for
> SSL then allow Apache to listen to port 443.
> 
> Hope this help.
> 
> Cheers,
> Michael
> 
> -Original Message-
> From: Gustavo Vegas [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
> Linux RH 7.3)
> 
> 
> Hello everyone,
> Here is my problem; I am trying to make SSL requests to Tomcat 
> through mod_jk, but they do not appear to work. I am even able to see 
> properly through plain HTTP those pages I want served by 
> Tomcat through 
> SSL. When I use the https://hosts/directory/page.jsp, I get 
> the source 
> code of the file. If I try using the 8443 port, it displays 
> properly. I 
> am also using j2sdk version 1.4.1.
> Here is the definition of the virtual host under Apache:
> --
> --
> ---
> 
>   LoadModule jk_module libexec/mod_jk.so
> 
> 
> JkWorkersFile "/usr/local/apache/conf/workers.properties"
> JkLogFile "/web/logs/mod_jk.log"
> 
> JkLogLevel debug
> 
>  NameVirtualHost *
> 
> 
> # Should mod_jk send SSL information to Tomcat (default is On)
> JkExtractSSL On
> # What is the indicator for SSL (default is HTTPS)
> JkHTTPSIndicator HTTPS
> # What is the indicator for SSL session (default is SSL_SESSION_ID)
> JkSESSIONIndicator SSL_SESSION_ID
> # What is the indicator for client SSL cipher suit (default 
> is SSL_CIPHER)
> JkCIPHERIndicator SSL_CIPHER
> # What is the indicator for the client SSL certificated (default is 
> SSL_CLIENT_C
> ERT)
> JkCERTSIndicator SSL_CLIENT_CERT
> # Other needed settings
> SSLOptions +StdEnvVars +ExportCertData
> ###
> # (BEGIN) Definition of SSL host.company.com virtual host #
> # NOTE: SSL Connections are only supported on IP-based virtual#
> # hosts   #
> ###
> 
> 
> ServerName host.company.com
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /web/htdocs/host.company.com
> ScriptAlias /cgi-bin/ 
> /web/htdocs/host.company.com/www/cgi-bin/
> DirectoryIndex index.html index.htm index.shtml 
> index.shtm index.jsp
> Alias /reports/ /web/htdocs/host.company.com/reports
> JkAutoAlias /export/home/host.company.com
> SSLEngine On
> SSLCertificateFile /usr/local/XXX/certs/host.company.com.cert
> SSLCertificateKeyFile /usr/local/XXX/keys/host.company.com.com.key
> SSLCipherSuite 
> ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
> 
> Alias /pfctestssl "/web/htdocs/host.company.com/ssl"
> 
> JkMount /pfctestssl/*.jsp ajp13
> JkMount /pfctestssl/* ajp13
> JkMount /pfctestssl/*.do ajp13
> JkMount /pfctestssl/manager ajp13
> JkMount /pfctestssl/manager/* ajp13
> 
> JkMount /pfctestssl/*/*.jsp ajp13
> JkMount /pfctestssl/*/* ajp13
> JkMount /pfctestssl/*/*.do ajp13
> JkMount /pfctestssl/*/manager ajp13
> JkMount /pfctestssl/*/manager/* ajp13
> 
> 
> 
> 
> 
>  AllowOverride None
>  Deny from all
> 
> ErrorLog/web/logs/host.company.com/ssl_error_log
> CustomLog   /web/logs/host.company.com/ssl_access_log combined
> TransferLog   /web/logs/host.company.com/ssl_transfer_lo

RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on Linux RH 7.3)

2002-10-02 Thread Tam, Michael

I believe you have to make Tomcat to listen to port 443 instead of 8443 for
SSL then allow Apache to listen to port 443.

Hope this help.

Cheers,
Michael

-Original Message-
From: Gustavo Vegas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 11:56 AM
To: [EMAIL PROTECTED]
Subject: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
Linux RH 7.3)


Hello everyone,
Here is my problem; I am trying to make SSL requests to Tomcat 
through mod_jk, but they do not appear to work. I am even able to see 
properly through plain HTTP those pages I want served by Tomcat through 
SSL. When I use the https://hosts/directory/page.jsp, I get the source 
code of the file. If I try using the 8443 port, it displays properly. I 
am also using j2sdk version 1.4.1.
Here is the definition of the virtual host under Apache:

---

  LoadModule jk_module libexec/mod_jk.so


JkWorkersFile "/usr/local/apache/conf/workers.properties"
JkLogFile "/web/logs/mod_jk.log"

JkLogLevel debug

 NameVirtualHost *


# Should mod_jk send SSL information to Tomcat (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is 
SSL_CLIENT_C
ERT)
JkCERTSIndicator SSL_CLIENT_CERT
# Other needed settings
SSLOptions +StdEnvVars +ExportCertData
###
# (BEGIN) Definition of SSL host.company.com virtual host #
# NOTE: SSL Connections are only supported on IP-based virtual#
# hosts   #
###


ServerName host.company.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /web/htdocs/host.company.com
ScriptAlias /cgi-bin/ /web/htdocs/host.company.com/www/cgi-bin/
DirectoryIndex index.html index.htm index.shtml index.shtm index.jsp
Alias /reports/ /web/htdocs/host.company.com/reports
JkAutoAlias /export/home/host.company.com
SSLEngine On
SSLCertificateFile /usr/local/XXX/certs/host.company.com.cert
SSLCertificateKeyFile /usr/local/XXX/keys/host.company.com.com.key
SSLCipherSuite 
ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

Alias /pfctestssl "/web/htdocs/host.company.com/ssl"

JkMount /pfctestssl/*.jsp ajp13
JkMount /pfctestssl/* ajp13
JkMount /pfctestssl/*.do ajp13
JkMount /pfctestssl/manager ajp13
JkMount /pfctestssl/manager/* ajp13

JkMount /pfctestssl/*/*.jsp ajp13
JkMount /pfctestssl/*/* ajp13
JkMount /pfctestssl/*/*.do ajp13
JkMount /pfctestssl/*/manager ajp13
JkMount /pfctestssl/*/manager/* ajp13





 AllowOverride None
 Deny from all

ErrorLog/web/logs/host.company.com/ssl_error_log
CustomLog   /web/logs/host.company.com/ssl_access_log combined
TransferLog   /web/logs/host.company.com/ssl_transfer_log

###
# (END) Definition of SSL host.company.com virtual host   #
# ##



---
I believe this to be a problem with jk_mod not understanding what to do 
with the requests for these pages. I even tried  to tell it to pass such 
requests by adding wildcards for the subdirectories under the ssl 
directory, but it did not work. Any help on this issue would be highly 
appreciated. BTW, all other configuration bits seem to work. This was 
actually working prior to us getting Tomcat talking to a database 
server, but this would be extremely weird if it prevents mod_jk from 
talking SSL. That is why I am not including any other configuration 
files here. If need be, I will post any additional information that 
people may want to take a look at.

Thanks,

-- Gustavo Vegas.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Change JDK after Tomcat install

2002-09-30 Thread Tam, Michael

You just set JAVA_HOME path to your new JDK I believe.

-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 10:44 AM
To: Tomcat Users List
Subject: Change JDK after Tomcat install


Can you easily change the version of your JDK after Tomcat is installed?  I
need to have a virtual frame buffer, which JDK 1.4 supplies but I have JDK
1.3.1 installed.  Thanks,
Kenny


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Oracle JDBC Drivers on Tomcat

2002-09-24 Thread Tam, Michael


Oracle JDBC driver comes as ZIP and so you leave it as it is.

Cheers,
Michael

-Original Message-
From: hari hari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Oracle JDBC Drivers on Tomcat


hi there,

thanks for replying. Do we need ZIP version or JAR version of JDBC Drivers 
on Tomcat...?

thks.

--HARI


>From: [EMAIL PROTECTED]
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Oracle JDBC Drivers on Tomcat
>Date: Tue, 24 Sep 2002 16:41:56 +1000
>
>No don't bother, its fine.
>I use Ora9i and the rest of the stuff, didn't unzip.
>(In case u have download something : U can't use a tar ball though !)
>
>"Tam, Michael" wrote:
> >
> > It works fine for me as in .zip extension.
> >
> > Cheers,
> > Michael
> >
> > -Original Message-
> > From: hari hari [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 24, 2002 1:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Oracle JDBC Drivers on Tomcat
> >
> > hi every1,
> >
> > i using java servlets to connect to my Oracle db. I get the
> > jdbc-drivers and installed into app server and included in my classpath.
> > these drivers are in zip format - do I need to extract them or will they

>do
> > fine just with zip?
> >
> > --HARI


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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

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




RE: Oracle JDBC Drivers on Tomcat

2002-09-24 Thread Tam, Michael


It works fine for me as in .zip extension.

Cheers,
Michael

-Original Message-
From: hari hari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: Oracle JDBC Drivers on Tomcat


hi every1,

i using java servlets to connect to my Oracle db. I get the
jdbc-drivers and installed into app server and included in my classpath.
these drivers are in zip format - do I need to extract them or will they do 
fine just with zip?

--HARI



_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat Apache Config

2002-09-04 Thread Tam, Michael

Hi John,

   Just a quick question about this integration.  Does it mean with the
integrated tomcat + apache, we would open 2 ports (80 + 8080) instead of
having port 80 only??  That would open up port 8080 to public to directly
reach tomcat wouldn't it??  

Regards,
Michael

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 1:33 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Apache Config



You will know if the integration is successful if what your browser receives
is identical for these 2 URLs:

http://some.host.com:8080/some-servlet (or
http://some.host.com:8080/examples)

http://some.host.com/some-servlet (or http://some.host.com/examples)

One is port 80, the other is port 8080 (tomcat 4's default port). If Apache
and Tomcat are integrated, the results will be the same even though the URLs
are accessing different ports.

John Turner

> -Original Message-
> From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 4:29 PM
> To: Tomcat Users List
> Subject: Tomcat Apache Config
> 
> 
> Hi:
> 
> What is the difference between tomcat.conf and 
> tomcat-apache.conf.  which
> of these two files need to be included in the httpd.conf 
> file?  Also how
> do I know if request are being answerd by apache or tomcat ie how do I
> test if the integration is successful?
> 
> Thanks
> Ravi
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: