New Babie query - pls pls help me

2004-12-13 Thread Manisha Sathe
Hi,

I am totally totally new to Servlet/Tomcat. I wrote a very simple
HelloWorld servlet. I could compile it and could create the
HelloWorld.class file.

But how to test it thr Tomat web server ? I put the class inside servlet
example dir
C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
But whe tried to run it like
http://localhost:8080/servlets-examples/servlet/HelloWorld

always i get  description The requested resource
(/servlets-examples/servlet/HelloWorld) is not available.

I tried to start-stop/reload the tomcat servlet-example but still the same,
i understand i need to change some files - but can any body tell stepwise
instructions ?   Pls pls help me I am stuck


Thanks in advance
Manisha


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



Re: New Babie query - pls pls help me

2004-12-13 Thread Antony Paul
You need to create a mapping in web.xml to invoke the servlet. Look at
the elements
servlet and servlet-mapping  elements in the
example/WEB-INF/web.xml. Create a similar one and restart Tomcat.

rgds
Antony Paul





On Mon, 13 Dec 2004 21:09:07 +0800, Manisha Sathe
[EMAIL PROTECTED] wrote:
 Hi,
 
 I am totally totally new to Servlet/Tomcat. I wrote a very simple
 HelloWorld servlet. I could compile it and could create the
 HelloWorld.class file.
 
 But how to test it thr Tomat web server ? I put the class inside servlet
 example dir
 C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
 But whe tried to run it like
 http://localhost:8080/servlets-examples/servlet/HelloWorld
 
 always i get  description The requested resource
 (/servlets-examples/servlet/HelloWorld) is not available.
 
 I tried to start-stop/reload the tomcat servlet-example but still the same,
 i understand i need to change some files - but can any body tell stepwise
 instructions ?   Pls pls help me I am stuck
 
 Thanks in advance
 Manisha
 
 -
 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: New Babie query - pls pls help me

2004-12-13 Thread Ben Souther
Welcome aboard.

The first thing you should do is find yourself a good book or tutorial.
There is a good one here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

If you just want a simple servlet example that you can drop into 
a running instance of Tomcat and run you can find one here:
http://simple.souther.us

Good Luck
-Ben






On Mon, 2004-12-13 at 08:09, Manisha Sathe wrote:
 Hi,
 
 I am totally totally new to Servlet/Tomcat. I wrote a very simple
 HelloWorld servlet. I could compile it and could create the
 HelloWorld.class file.
 
 But how to test it thr Tomat web server ? I put the class inside servlet
 example dir
 C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
 But whe tried to run it like
 http://localhost:8080/servlets-examples/servlet/HelloWorld
 
 always i get  description The requested resource
 (/servlets-examples/servlet/HelloWorld) is not available.
 
 I tried to start-stop/reload the tomcat servlet-example but still the same,
 i understand i need to change some files - but can any body tell stepwise
 instructions ?   Pls pls help me I am stuck
 
 
 Thanks in advance
 Manisha
 
 
 -
 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: New Babie query - pls pls help me

2004-12-13 Thread Jon Wingfield
Argh. Triple hijack!
This thread started as JSP expressions are displayed as string, became 
 Do not allow browsing the root directory to tomcat, then problem 
starting tomcat 5.5/jdk1.3.1_11 and now New Babie query - pls pls help 
me.
For the sake of the archives and those of us using thread-aware mail 
clients, please start a new thread instead of replying to a completely 
unrelated topic.

Ta,
Jon
Antony Paul wrote:
You need to create a mapping in web.xml to invoke the servlet. Look at
the elements
servlet and servlet-mapping  elements in the
example/WEB-INF/web.xml. Create a similar one and restart Tomcat.
rgds
Antony Paul



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


Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Arun Prasad R
hi

index.jsp is not being compiled dynamically, if i rename to some
other name some.jsp its get compiled. if somebody faced this issue
pls help. im not getting clue by google.

arun

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



Re: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Antony Paul
Which version ?. Are you using the default Tomcat installation . If yes
there should not be any problem if you didnt changed any configuration
files.

rgds
Antony Paul

- Original Message -
From: Arun Prasad R [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:00 PM
Subject: Pls Help index.jsp not compiling dynamically


 hi

 index.jsp is not being compiled dynamically, if i rename to some
 other name some.jsp its get compiled. if somebody faced this issue
 pls help. im not getting clue by google.

 arun

 -
 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: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Arun Prasad R
thanks for getting back

im using 4.1.27, im changing server.xml
arun


On Thu, 9 Sep 2004 16:30:05 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 Which version ?. Are you using the default Tomcat installation . If yes
 there should not be any problem if you didnt changed any configuration
 files.
 
 rgds
 Antony Paul
 
 
 
 - Original Message -
 From: Arun Prasad R [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 4:00 PM
 Subject: Pls Help index.jsp not compiling dynamically
 
  hi
 
  index.jsp is not being compiled dynamically, if i rename to some
  other name some.jsp its get compiled. if somebody faced this issue
  pls help. im not getting clue by google.
 
  arun
 
  -
  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: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread QM
On Thu, Sep 09, 2004 at 04:00:25PM +0530, Arun Prasad R wrote:
: index.jsp is not being compiled dynamically, if i rename to some
: other name some.jsp its get compiled. if somebody faced this issue
: pls help. im not getting clue by google.

Did you just overwrite one of the sample apps?  Those JSPs are
precompiled, meaning the .jsp files themselves aren't referenced by the
container (and in turn, changes to them aren't noticed).

-and what Google terms did you use?  This topic turns up periodically on
the list.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Arun Prasad R
)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:2416)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
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.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)








On Thu, 9 Sep 2004 08:22:08 -0500, QM [EMAIL PROTECTED] wrote:
 On Thu, Sep 09, 2004 at 04:00:25PM +0530, Arun Prasad R wrote:
 : index.jsp is not being compiled dynamically, if i rename to some
 
 
 : other name some.jsp its get compiled. if somebody faced this issue
 : pls help. im not getting clue by google.
 
 Did you just overwrite one of the sample apps?  Those JSPs are
 precompiled, meaning the .jsp files themselves aren't referenced by the
 container (and in turn, changes to them aren't noticed).
 
 -and what Google terms did you use?  This topic turns up periodically on
 the list.
 
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.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: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread QM
On Thu, Sep 09, 2004 at 07:07:26PM +0530, Arun Prasad R wrote:
: i want to edit that source file. and i removed servlet and
: servlet-mapping entry from web.xml and restarted tomcat. new tomcat
: should recompile index.jsp and fulfill the request. but it throws an
: exception like

Perhaps Tomcat's flipping out because it can already resolve the class
org.apache.jsp.index_jsp from the JAR of precompiled JSPs?


Find that JAR, rename it (something *without* a .jar extension, so it's
not automatically loaded by Tomcat), and try again.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Arun Prasad R
hi
thanks it worked, i just rename the existing index_jsp.class to i.class
but this is not the expected behavior right. after removing web.xml
entries tomcat should recompile it under work directory.

i dont have any issues with the file having name other than index.jsp

how does this name clash happens only for file named index.jsp
is it tomcat bug

arun


On Thu, 9 Sep 2004 08:42:12 -0500, QM [EMAIL PROTECTED] wrote:
 On Thu, Sep 09, 2004 at 07:07:26PM +0530, Arun Prasad R wrote:
 : i want to edit that source file. and i removed servlet and
 : servlet-mapping entry from web.xml and restarted tomcat. new tomcat
 : should recompile index.jsp and fulfill the request. but it throws an
 : exception like
 
 Perhaps Tomcat's flipping out because it can already resolve the class
 org.apache.jsp.index_jsp from the JAR of precompiled JSPs?
 
 Find that JAR, rename it (something *without* a .jar extension, so it's
 not automatically loaded by Tomcat), and try again.
 
 
 
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.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: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread QM
On Thu, SOP 09, 2004 at 07:20:31PM +0530, Arun Prasad R wrote:
: thanks it worked, i just rename the existing index_jsp.class to
i.class

That worked for you, fine; but that's not what I suggested:
JAR file != class file.

Please reread my last message.


: but this is not the expected behavior right. after removing web.xml
: entries tomcat should recompile it under work directory.

You'll have to take that up with the Tomcat developers; but the behavior
you
experienced makes perfect sense to me.

Note that if you start with a fresh webapp, instead of one that uses
precompiled JSPs, this doesn't happen.

-QM

--
software  -- http://www.BrandXDev.net
tech news -- http://www.RoarNetworX.com



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



Re: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Arun Prasad R
hi
as this is my own application, i have classes for my source. so that i
can rename my class in WEB-INF/classes/

im in the process of migrating it from tomcat 3.x to tomcat 4.1.27, i
migrated successfully,
there after during my development i use to remove web.xml entries for
files wich need modification for dynamic compile, then i will have all
the class files, it will work fine.

but in tomcat 4.1.27 i face this issue

arun

On Thu, 9 Sep 2004 08:57:18 -0500, QM [EMAIL PROTECTED] wrote:
 On Thu, SOP 09, 2004 at 07:20:31PM +0530, Arun Prasad R wrote:
 : thanks it worked, i just rename the existing index_jsp.class to
 i.class
 
 That worked for you, fine; but that's not what I suggested:
 JAR file != class file.
 
 Please reread my last message.
 
 : but this is not the expected behavior right. after removing web.xml
 : entries tomcat should recompile it under work directory.
 
 You'll have to take that up with the Tomcat developers; but the behavior
 you
 experienced makes perfect sense to me.
 
 Note that if you start with a fresh webapp, instead of one that uses
 precompiled JSPs, this doesn't happen.
 
 -QM
 
 --
 software  -- http://www.BrandXDev.net
 
 
 tech news -- http://www.RoarNetworX.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: Urgent pls help ! Protection problems of using Realm

2004-04-15 Thread Chong Yu Meng
An easier method would be to use SecurityFilter
(http://securityfilter.sourceforge.net/). There is an example web
application (actually several web apps) bundled with the software. Just
look at the code and I think you'll find it fairly straightforward to
implement what you want.

a a wrote:

Dear all,
 
  I do not have any idea of writing a custom realm, even how to start 
writing it. Can you give me some example or any references that teaching how to write 
a custom realm ?
 
  Thankyou very much !
 
kawai

Mark Thomas [EMAIL PROTECTED] wrote:
You need to write a custom realm.

Mark

  

My case is that I can't store the username and password of 
the roles and users in my server. I need to send the 
authenication information in a format of xml file to a 
foreign server and get back the login result from that 
server. So I can't use Realm to check the roles and password 
and do authentication directly in my server. 

Is there any method that can solve that problem ? or any 
method instead of using Realm ? or override the current 
settings of Realm ?



...
  
http://ringtone.yahoo.com.hk/

  


-- 
There is nothing so absurd but some philosopher has said it. 
-- Marcus Tullius Cicero
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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



RE: Urgent pls help ! Protection problems of using Realm

2004-04-14 Thread a a
Dear all,
 
  I do not have any idea of writing a custom realm, even how to start 
writing it. Can you give me some example or any references that teaching how to write 
a custom realm ?
 
  Thankyou very much !
 
kawai

Mark Thomas [EMAIL PROTECTED] wrote:
You need to write a custom realm.

Mark

 My case is that I can't store the username and password of 
 the roles and users in my server. I need to send the 
 authenication information in a format of xml file to a 
 foreign server and get back the login result from that 
 server. So I can't use Realm to check the roles and password 
 and do authentication directly in my server. 
 
 Is there any method that can solve that problem ? or any 
 method instead of using Realm ? or override the current 
 settings of Realm ?

...
  
http://ringtone.yahoo.com.hk/


RE: Urgent pls help ! Protection problems of using Realm

2004-04-13 Thread a a
Dear all,
 
  I do not have any idea of writing a custom realm, even how to start writing it. Can 
you give me some example or any references that teaching how to write a custom realm ?
 
  Thankyou very much !
 
kawai

Mark Thomas [EMAIL PROTECTED] wrote:
You need to write a custom realm.

Mark

 My case is that I can't store the username and password of 
 the roles and users in my server. I need to send the 
 authenication information in a format of xml file to a 
 foreign server and get back the login result from that 
 server. So I can't use Realm to check the roles and password 
 and do authentication directly in my server. 
 
 Is there any method that can solve that problem ? or any 
 method instead of using Realm ? or override the current 
 settings of Realm ?



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

...
  
http://ringtone.yahoo.com.hk/


Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread a a
Dear all,
 
  I know using Realm can protect certain resouces of a url. But I found it is not 
possibly to use it in my server.
 
  My case is that I can't store the username and password of the roles and users in my 
server. I need to send the authenication information in a format of xml file to a 
foreign server and get back the login result from that server. So I can't use Realm to 
check the roles and password and do authentication directly in my server. 
 
  Is there any method that can solve that problem ? or any method instead of using 
Realm ? or override the current settings of Realm ?
 
Thankyou very much !
kawai

...
  
http://ringtone.yahoo.com.hk/


RE: Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread Mark Thomas
You need to write a custom realm.

Mark

   My case is that I can't store the username and password of 
 the roles and users in my server. I need to send the 
 authenication information in a format of xml file to a 
 foreign server and get back the login result from that 
 server. So I can't use Realm to check the roles and password 
 and do authentication directly in my server. 
  
   Is there any method that can solve that problem ? or any 
 method instead of using Realm ? or override the current 
 settings of Realm ?



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



Re: Urgent ! Pls help !

2004-02-02 Thread Tuan Luu
Try this:

netstat -a |grep 8009

If he finds something, than you should see that, tomcat is listening on
that port (8009). Next thing is try on your server locally:

telnet localhost 8009

If you can see the message 'escape with ^C' or similar msg, than tomcat
config is fine.

if tomcat is fine, you have to control your mod_jk configuration. have
you compiled mod_jk to apache or did you download a binary version? If
it's the binary it should match the version of your apache httpd,
otherwise it won't work. In any case, I think it's a good idea to
compile mod_jk for your apache.

kind regards
Tuan


Arnab Chakravarty wrote:

ajp13 and ajp14 and not ajp12...correction

-Original Message-
From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 11:32 AM
To: Tomcat Users List
Subject: RE: Urgent ! Pls help !


Can u check ur server.xml config file and check if the port is correctly set for the 
ajp12 connector to server the request...

-Original Message-
From: a a [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 12:28 AM
To: [EMAIL PROTECTED]
Subject: Urgent ! Pls help !


Dear all,

  I have some problem when connecting apache to tomcat.
  I have installed both apache1.3 and tomcat4.
  I use mod_jk to do the connection. However some problems exists.
  Here is the log file of mod_jk.log when I run apachectl restart:

[Wed Jan 28 20:32:57 2004]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jan 28 20:32:57 2004]  [jk_ajp_common.c (757)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 111

and here is the worker.properties:
workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina
workers.java_home=$(JAVA_HOME)
workers.th=$(workers.tomcat_home)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr


  I don't know what the problem is. Could anyone please help me to 
solve the problem.

Regards,
John LEE




...
  
http://ringtone.yahoo.com.hk/

-
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: Re: TOmcat 5.0.16 console error,Pls help

2004-02-02 Thread Alvaro Seixas
Did you just added the Context in server.xml or did something else??
Looks like the server.xml is not validated.


- Original Message -
From: Avinash Sridhar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: Doug Parsons [EMAIL PROTECTED]
Sent: Monday, February 02, 2004 2:46 AM
Subject: Re: Re: Re: TOmcat 5.0.16 console error,Pls help



Hi,
   This is an update to the previous HelloServlet.java file,forgot to add
the lines package
On Mon, 02 Feb 2004 Avinash  Sridhar wrote :
Hi,

   Thanks for the help,The HelloServlet.java file is as follows

/*HelloServlet.java***/
package package.structure
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
  *  P
  *  Taken from Core Servlets and JavaServer Pages 2nd Edition
  *  from Prentice Hall and Sun Microsystems Press,
  *  http://www.coreservlets.com/.
  *  © 2003 Marty Hall; may be freely used or adapted.
  */

public class HelloServlet extends HttpServlet {
   public void doGet(HttpServletRequest request,
 HttpServletResponse response)
   throws ServletException, IOException {
 response.setContentType(text/html);
 PrintWriter out = response.getWriter();
 String docType =
   !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0  +
   Transitional//EN\\n;

 out.println(docType +
 HTML\n +
 HEADTITLEHello/TITLE/HEAD\n +
 BODY BGCOLOR=\#FDF5E6\\n +
 H1Hello/H1\n +
 /BODY/HTML);
   }
}


/*HelloServlet.java***/

Hoping to get going with it.

Thanks
AS


On Mon, 02 Feb 2004 Doug Parsons wrote :
 Post your HelloServlet code or attach it.
 
 
 - Original Message -
  From: Avinash Sridhar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, February 01, 2004 10:21 PM
 Subject: TOmcat 5.0.16 console error,Pls help
 
 
 Hi,
 I was told that the .class files must be put into a package in order
for
 the tomcat to run it.
 
 My directory structure is as follows,
 
 %TOMCAT HOME %/webapps/sampleapp/WEB-INF/classes
  /WEB-INF/lib
  /WEB-INF/sourcefiles
  /WEB-INF/web.xml
 In the classes directory I have make something like this
 /classes/package/structure/HelloServlet.class(This is my servlet file),
 
 Now I have changed/made the web.xml in MY WEB-INF directory and have
added
 this
 
 / Contents of web.xml file */
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
display-nameServlet 2.4 Examples/display-name
description Servlet 2.4 Examples /description
 
 !-- Servlet mapping start --
 !-- Define servlets. i.e. bind a servlet name to a class --
 
 servlet
   servlet-nameHelloServlet/servlet-name
/** This is the prominent change **/
   servlet-classpackage.structure.HelloServlet/servlet-class
/** This is the prominent change **/
 
 /servlet
 
 !-- bind a servlet name to a URL (pattern) --
 servlet-mapping
   servlet-nameHelloServlet/servlet-name
   url-pattern/sampleapp/url-pattern
 /servlet-mapping
 
 !-- Servlet mapping end --
 
 /web-app
 
 / Contents of web.xml file */
 
 
 Hope that it is right so far,
 
 I dont know how to change the %TOMCAT_HOME%/conf/server.xml,do we have to
 change anything here??, this is what I have written in the server.xml
file.
 
 /* Contents of server.xml file ***/
 
 Context path=/sampleapp docBase=sampleapp debug=0
reloadable=true
 /Context
 
 /* Contents of server.xml file ***/
 
 
 And finally I am getting theses errors in the tomcat console
 
 
 /*** Errors in Tomcat console */
 
 Feb 1, 2004 10:04:22 PM org.apache.commons.digester.Digester fatalError
 SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
 target
 matching [xX][mM][lL] is not allowed.
 org.xml.sax.SAXParseException: The processing instruction target matching
 [xX]
 mM][lL] is not allowed.
  at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(U
 known Source)
  at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
 Source
 
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)
  at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
 Source)
  at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unk
 own Source)
  at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source

Urgent ! Pls help !

2004-02-01 Thread a a
Dear all,
 
  I have some problem when connecting apache to tomcat.
  I have installed both apache1.3 and tomcat4.
  I use mod_jk to do the connection. However some problems exists.
  Here is the log file of mod_jk.log when I run apachectl restart:
 
[Wed Jan 28 20:32:57 2004]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jan 28 20:32:57 2004]  [jk_ajp_common.c (757)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 111
 
and here is the worker.properties:
workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina
workers.java_home=$(JAVA_HOME)
workers.th=$(workers.tomcat_home)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr
 
 
  I don't know what the problem is. Could anyone please help me to 
solve the problem.
 
Regards,
John LEE


...
  
http://ringtone.yahoo.com.hk/


Urgent ! Pls help !

2004-02-01 Thread a a
Dear all,

  I have some problem when connecting apache to tomcat.
  I have installed both apache1.3 and tomcat4.
  I use mod_jk to do the connection. However some problems exists.
  Here is the log file of mod_jk.log when I run apachectl restart:

[Wed Jan 28 20:32:57 2004]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jan 28 20:32:57 2004]  [jk_ajp_common.c (757)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 111

and here is the worker.properties:
workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina
workers.java_home=$(JAVA_HOME)
workers.th=$(workers.tomcat_home)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr


  I don't know what the problem is. Could anyone please help me to 
solve the problem.

Regards,
John LEE



...
  
http://ringtone.yahoo.com.hk/


Urgent ! Pls help !

2004-02-01 Thread a a
Dear all,

  I have some problem when connecting apache to tomcat.
  I have installed both apache1.3 and tomcat4.
  I use mod_jk to do the connection. However some problems exists.
  Here is the log file of mod_jk.log when I run apachectl restart:

[Wed Jan 28 20:32:57 2004]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jan 28 20:32:57 2004]  [jk_ajp_common.c (757)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 111

and here is the worker.properties:
workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina
workers.java_home=$(JAVA_HOME)
workers.th=$(workers.tomcat_home)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr


  I don't know what the problem is. Could anyone please help me to 
solve the problem.

Regards,
John LEE




...
  
http://ringtone.yahoo.com.hk/


TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Avinash Sridhar
Hi,
   I was told that the .class files must be put into a package in order for the tomcat 
to run it.

My directory structure is as follows,

%TOMCAT HOME %/webapps/sampleapp/WEB-INF/classes
/WEB-INF/lib
/WEB-INF/sourcefiles 
/WEB-INF/web.xml
In the classes directory I have make something like this
/classes/package/structure/HelloServlet.class(This is my servlet file),

Now I have changed/made the web.xml in MY WEB-INF directory and have added this 

/ Contents of web.xml file */

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  display-nameServlet 2.4 Examples/display-name
  description Servlet 2.4 Examples /description

!-- Servlet mapping start -- 
!-- Define servlets. i.e. bind a servlet name to a class --

servlet
 servlet-nameHelloServlet/servlet-name
  /** This is the prominent change **/
 servlet-classpackage.structure.HelloServlet/servlt-class
  /** This is the prominent change **/

/servlet

!-- bind a servlet name to a URL (pattern) --
servlet-mapping
 servlet-nameHelloServlet/servlet-name
 url-pattern/sampleapp/url-pattern
/servlet-mapping

!-- Servlet mapping end --

/web-app

/ Contents of web.xml file */


Hope that it is right so far,

I dont know how to change the %TOMCAT_HOME%/conf/server.xml,do we have to change 
anything here??, this is what I have written in the server.xml file.

/* Contents of server.xml file ***/

Context path=/sampleapp docBase=sampleapp debug=0 reloadable=true
/Context

/* Contents of server.xml file ***/


And finally I am getting theses errors in the tomcat console 


/*** Errors in Tomcat console */

Feb 1, 2004 10:04:22 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction target
matching [xX][mM][lL] is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching [xX]
mM][lL] is not allowed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(U
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unk
own Source)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispa
ch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextC
nfig.java:302)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:6
4)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConf
g.java:254)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
212)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125

at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:51
)
at org.apache.catalina.core.StandardService.start(StandardService.java:
19)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:23
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Feb 1, 2004 10:04:22 PM 

Re: TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Doug Parsons
Post your HelloServlet code or attach it.


- Original Message - 
From: Avinash Sridhar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 01, 2004 10:21 PM
Subject: TOmcat 5.0.16 console error,Pls help


Hi,
   I was told that the .class files must be put into a package in order for
the tomcat to run it.

My directory structure is as follows,

%TOMCAT HOME %/webapps/sampleapp/WEB-INF/classes
/WEB-INF/lib
/WEB-INF/sourcefiles
/WEB-INF/web.xml
In the classes directory I have make something like this
/classes/package/structure/HelloServlet.class(This is my servlet file),

Now I have changed/made the web.xml in MY WEB-INF directory and have added
this

/ Contents of web.xml file */

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  display-nameServlet 2.4 Examples/display-name
  description Servlet 2.4 Examples /description

!-- Servlet mapping start --
!-- Define servlets. i.e. bind a servlet name to a class --

servlet
 servlet-nameHelloServlet/servlet-name
  /** This is the prominent change **/
 servlet-classpackage.structure.HelloServlet/servlt-class
  /** This is the prominent change **/

/servlet

!-- bind a servlet name to a URL (pattern) --
servlet-mapping
 servlet-nameHelloServlet/servlet-name
 url-pattern/sampleapp/url-pattern
/servlet-mapping

!-- Servlet mapping end --

/web-app

/ Contents of web.xml file */


Hope that it is right so far,

I dont know how to change the %TOMCAT_HOME%/conf/server.xml,do we have to
change anything here??, this is what I have written in the server.xml file.

/* Contents of server.xml file ***/

Context path=/sampleapp docBase=sampleapp debug=0 reloadable=true
/Context

/* Contents of server.xml file ***/


And finally I am getting theses errors in the tomcat console


/*** Errors in Tomcat console */

Feb 1, 2004 10:04:22 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
target
matching [xX][mM][lL] is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching
[xX]
mM][lL] is not allowed.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(U
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unk
own Source)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispa
ch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextC
nfig.java:302)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:6
4)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConf
g.java:254)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
212)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:51
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
19)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:23
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25

Re: Re: TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Avinash Sridhar
Hi,

  Thanks for the help,The HelloServlet.java file is as follows 

/*HelloServlet.java***/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
 *  P
 *  Taken from Core Servlets and JavaServer Pages 2nd Edition
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.coreservlets.com/.
 *  copy; 2003 Marty Hall; may be freely used or adapted.
 */

public class HelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
response.setContentType(text/html);
PrintWriter out = response.getWriter();
String docType =
  !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0  +
  Transitional//EN\\n;

out.println(docType +
HTML\n +
HEADTITLEHello/TITLE/HEAD\n +
BODY BGCOLOR=\#FDF5E6\\n +
H1Hello/H1\n +
/BODY/HTML);
  }
}


/*HelloServlet.java***/

Hoping to get going with it.

Thanks
AS


On Mon, 02 Feb 2004 Doug Parsons wrote :
Post your HelloServlet code or attach it.


- Original Message -
 From: Avinash Sridhar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 01, 2004 10:21 PM
Subject: TOmcat 5.0.16 console error,Pls help


Hi,
I was told that the .class files must be put into a package in order for
the tomcat to run it.

My directory structure is as follows,

%TOMCAT HOME %/webapps/sampleapp/WEB-INF/classes
 /WEB-INF/lib
 /WEB-INF/sourcefiles
 /WEB-INF/web.xml
In the classes directory I have make something like this
/classes/package/structure/HelloServlet.class(This is my servlet file),

Now I have changed/made the web.xml in MY WEB-INF directory and have added
this

/ Contents of web.xml file */

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
   display-nameServlet 2.4 Examples/display-name
   description Servlet 2.4 Examples /description

!-- Servlet mapping start --
!-- Define servlets. i.e. bind a servlet name to a class --

servlet
  servlet-nameHelloServlet/servlet-name
   /** This is the prominent change **/
  servlet-classpackage.structure.HelloServlet/servlt-class
   /** This is the prominent change **/

/servlet

!-- bind a servlet name to a URL (pattern) --
servlet-mapping
  servlet-nameHelloServlet/servlet-name
  url-pattern/sampleapp/url-pattern
/servlet-mapping

!-- Servlet mapping end --

/web-app

/ Contents of web.xml file */


Hope that it is right so far,

I dont know how to change the %TOMCAT_HOME%/conf/server.xml,do we have to
change anything here??, this is what I have written in the server.xml file.

/* Contents of server.xml file ***/

Context path=/sampleapp docBase=sampleapp debug=0 reloadable=true
/Context

/* Contents of server.xml file ***/


And finally I am getting theses errors in the tomcat console


/*** Errors in Tomcat console */

Feb 1, 2004 10:04:22 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
target
matching [xX][mM][lL] is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching
[xX]
mM][lL] is not allowed.
 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(U
known Source)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source

 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
 at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unk
own Source)
 at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispa
ch(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
known Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextC
nfig.java

Re: Re: TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Doug Parsons
Look at:
http://www.technobuff.net/javatips/kits/startkit/classes_ifs_pkgs.shtml
and
http://cs.stmarys.ca/~porter/csc/465/notes/javapl_packages.html

then check out
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html

This should explain a few things.

- Original Message - 
From: Avinash Sridhar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: Doug Parsons [EMAIL PROTECTED]
Sent: Sunday, February 01, 2004 11:19 PM
Subject: Re: Re: TOmcat 5.0.16 console error,Pls help


Hi,

  Thanks for the help,The HelloServlet.java file is as follows

/*HelloServlet.java***/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
 *  P
 *  Taken from Core Servlets and JavaServer Pages 2nd Edition
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.coreservlets.com/.
 *  copy; 2003 Marty Hall; may be freely used or adapted.
 */

public class HelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
response.setContentType(text/html);
PrintWriter out = response.getWriter();
String docType =
  !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0  +
  Transitional//EN\\n;

out.println(docType +
HTML\n +
HEADTITLEHello/TITLE/HEAD\n +
BODY BGCOLOR=\#FDF5E6\\n +
H1Hello/H1\n +
/BODY/HTML);
  }
}


/*HelloServlet.java***/

Hoping to get going with it.

Thanks
AS


On Mon, 02 Feb 2004 Doug Parsons wrote :
Post your HelloServlet code or attach it.


- Original Message -
 From: Avinash Sridhar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 01, 2004 10:21 PM
Subject: TOmcat 5.0.16 console error,Pls help


Hi,
I was told that the .class files must be put into a package in order
for
the tomcat to run it.

My directory structure is as follows,

%TOMCAT HOME %/webapps/sampleapp/WEB-INF/classes
 /WEB-INF/lib
 /WEB-INF/sourcefiles
 /WEB-INF/web.xml
In the classes directory I have make something like this
/classes/package/structure/HelloServlet.class(This is my servlet file),

Now I have changed/made the web.xml in MY WEB-INF directory and have added
this

/ Contents of web.xml file */

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
   display-nameServlet 2.4 Examples/display-name
   description Servlet 2.4 Examples /description

!-- Servlet mapping start --
!-- Define servlets. i.e. bind a servlet name to a class --

servlet
  servlet-nameHelloServlet/servlet-name
   /** This is the prominent change **/
  servlet-classpackage.structure.HelloServlet/servlt-class
   /** This is the prominent change **/

/servlet

!-- bind a servlet name to a URL (pattern) --
servlet-mapping
  servlet-nameHelloServlet/servlet-name
  url-pattern/sampleapp/url-pattern
/servlet-mapping

!-- Servlet mapping end --

/web-app

/ Contents of web.xml file */


Hope that it is right so far,

I dont know how to change the %TOMCAT_HOME%/conf/server.xml,do we have to
change anything here??, this is what I have written in the server.xml file.

/* Contents of server.xml file ***/

Context path=/sampleapp docBase=sampleapp debug=0 reloadable=true
/Context

/* Contents of server.xml file ***/


And finally I am getting theses errors in the tomcat console


/*** Errors in Tomcat console */

Feb 1, 2004 10:04:22 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
target
matching [xX][mM][lL] is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching
[xX]
mM][lL] is not allowed.
 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(U
known Source)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source

 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
 at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unk
own Source)
 at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispa
ch(Unknown Source

Re: Re: Re: TOmcat 5.0.16 console error,Pls help

2004-02-01 Thread Avinash Sridhar

Hi,
   This is an update to the previous HelloServlet.java file,forgot to add the lines 
package
On Mon, 02 Feb 2004 Avinash  Sridhar wrote :
Hi,

   Thanks for the help,The HelloServlet.java file is as follows

/*HelloServlet.java***/
package package.structure
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
  *  P
  *  Taken from Core Servlets and JavaServer Pages 2nd Edition
  *  from Prentice Hall and Sun Microsystems Press,
  *  http://www.coreservlets.com/.
  *  © 2003 Marty Hall; may be freely used or adapted.
  */

public class HelloServlet extends HttpServlet {
   public void doGet(HttpServletRequest request,
 HttpServletResponse response)
   throws ServletException, IOException {
 response.setContentType(text/html);
 PrintWriter out = response.getWriter();
 String docType =
   !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0  +
   Transitional//EN\\n;

 out.println(docType +
 HTML\n +
 HEADTITLEHello/TITLE/HEAD\n +
 BODY BGCOLOR=\#FDF5E6\\n +
 H1Hello/H1\n +
 /BODY/HTML);
   }
}


/*HelloServlet.java***/

Hoping to get going with it.

Thanks
AS


On Mon, 02 Feb 2004 Doug Parsons wrote :
 Post your HelloServlet code or attach it.
 
 
 - Original Message -
  From: Avinash Sridhar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, February 01, 2004 10:21 PM
 Subject: TOmcat 5.0.16 console error,Pls help
 
 
 Hi,
 I was told that the .class files must be put into a package in order for
 the tomcat to run it.
 
 My directory structure is as follows,
 
 %TOMCAT HOME %/webapps/sampleapp/WEB-INF/classes
  /WEB-INF/lib
  /WEB-INF/sourcefiles
  /WEB-INF/web.xml
 In the classes directory I have make something like this
 /classes/package/structure/HelloServlet.class(This is my servlet file),
 
 Now I have changed/made the web.xml in MY WEB-INF directory and have added
 this
 
 / Contents of web.xml file */
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
display-nameServlet 2.4 Examples/display-name
description Servlet 2.4 Examples /description
 
 !-- Servlet mapping start --
 !-- Define servlets. i.e. bind a servlet name to a class --
 
 servlet
   servlet-nameHelloServlet/servlet-name
/** This is the prominent change **/
   servlet-classpackage.structure.HelloServlet/servlet-class
/** This is the prominent change **/
 
 /servlet
 
 !-- bind a servlet name to a URL (pattern) --
 servlet-mapping
   servlet-nameHelloServlet/servlet-name
   url-pattern/sampleapp/url-pattern
 /servlet-mapping
 
 !-- Servlet mapping end --
 
 /web-app
 
 / Contents of web.xml file */
 
 
 Hope that it is right so far,
 
 I dont know how to change the %TOMCAT_HOME%/conf/server.xml,do we have to
 change anything here??, this is what I have written in the server.xml file.
 
 /* Contents of server.xml file ***/
 
 Context path=/sampleapp docBase=sampleapp debug=0 reloadable=true
 /Context
 
 /* Contents of server.xml file ***/
 
 
 And finally I am getting theses errors in the tomcat console
 
 
 /*** Errors in Tomcat console */
 
 Feb 1, 2004 10:04:22 PM org.apache.commons.digester.Digester fatalError
 SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
 target
 matching [xX][mM][lL] is not allowed.
 org.xml.sax.SAXParseException: The processing instruction target matching
 [xX]
 mM][lL] is not allowed.
  at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(U
 known Source)
  at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
 Source
 
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)
  at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
 Source)
  at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unk
 own Source)
  at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
  at
 org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispa
 ch(Unknown Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
 known Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source

RE: Urgent ! Pls help !

2004-02-01 Thread Arnab Chakravarty
Can u check ur server.xml config file and check if the port is correctly set for the 
ajp12 connector to server the request...

-Original Message-
From: a a [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 12:28 AM
To: [EMAIL PROTECTED]
Subject: Urgent ! Pls help !


Dear all,

  I have some problem when connecting apache to tomcat.
  I have installed both apache1.3 and tomcat4.
  I use mod_jk to do the connection. However some problems exists.
  Here is the log file of mod_jk.log when I run apachectl restart:

[Wed Jan 28 20:32:57 2004]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jan 28 20:32:57 2004]  [jk_ajp_common.c (757)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 111

and here is the worker.properties:
workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina
workers.java_home=$(JAVA_HOME)
workers.th=$(workers.tomcat_home)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr


  I don't know what the problem is. Could anyone please help me to 
solve the problem.

Regards,
John LEE




...
  
http://ringtone.yahoo.com.hk/

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



RE: Urgent ! Pls help !

2004-02-01 Thread Arnab Chakravarty
ajp13 and ajp14 and not ajp12...correction

-Original Message-
From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 11:32 AM
To: Tomcat Users List
Subject: RE: Urgent ! Pls help !


Can u check ur server.xml config file and check if the port is correctly set for the 
ajp12 connector to server the request...

-Original Message-
From: a a [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 12:28 AM
To: [EMAIL PROTECTED]
Subject: Urgent ! Pls help !


Dear all,

  I have some problem when connecting apache to tomcat.
  I have installed both apache1.3 and tomcat4.
  I use mod_jk to do the connection. However some problems exists.
  Here is the log file of mod_jk.log when I run apachectl restart:

[Wed Jan 28 20:32:57 2004]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 111
[Wed Jan 28 20:32:57 2004]  [jk_ajp_common.c (757)]: Error connecting 
to tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 111

and here is the worker.properties:
workers.tomcat_home=/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina
workers.java_home=$(JAVA_HOME)
workers.th=$(workers.tomcat_home)
ps=\
worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp14.port=8010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.th)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.th)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.th)$(ps)logs$(ps)inprocess.stderr


  I don't know what the problem is. Could anyone please help me to 
solve the problem.

Regards,
John LEE




...
  
http://ringtone.yahoo.com.hk/

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



Pls Help~ apache tomcat symbolic link

2003-07-21 Thread wing
Hi all,

I'm using apache tomcat4.1, in webapps i made a symbolic link for my directory 
content, and I've modified the context configuration with below:

Resources className=org.apache.naming.resources.FileDirContext allowLinking=true 
/

files inside the content can be accessed if i use port 8080, but if i use apache 
(port 80) to access, tomcat always return a HTTP Status 404 error. 

http://localhost/course/content/upload/Notes/Part-1-2003.pdf (not work!)

http://localhost:8080/course/content/upload/Notes/Part-1-2003.pdf (work)

Any suggestion is welcome, thanks!


Re: Would U Pls help me. Its urgent!! starting tomcat through windows2000 s services

2003-03-11 Thread Tomcat-RND
Hi,
You need to install the Tomcat as NT Service option. If not already
installed, please reinstall and check the services.

To access with the detault context, find if any context that has context
path as . Now add your files into that location,
That's it. You will get what you want.

Regards,
Pratt



- Original Message -
From: zafar Ahsan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 1:24 PM
Subject: Would U Pls help me. Its urgent!! starting tomcat through
windows2000 s services


 Hello
 Pls, could any one let me know how to start tomcat
 through windows server2000 services instead of through command prompt.
 And also how to make my own application as default site instead of jakarta
default site .My starting page is zaf.html . when someone write
 http://localhost:8080/
 its now dispaly jakarta tomcat home page.
 I would be very thankful for yr kind help.

 zafar


 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

 -
 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: Would U Pls help me. Its urgent!! starting tomcat through windows2000 s services

2003-03-11 Thread Jacob Kjome
http://www.mattkelli.com/tech/tomcat/ntservice.htm

Jake

At 11:54 PM 3/10/2003 -0800, you wrote:
Hello
Pls, could any one let me know how to start tomcat
through windows server2000 services instead of through command prompt.
And also how to make my own application as default site instead of jakarta 
default site .My starting page is zaf.html . when someone write
http://localhost:8080/
its now dispaly jakarta tomcat home page.
I would be very thankful for yr kind help.

zafar

_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Would U Pls help me. Its urgent!! starting tomcat through windows2000 s services

2003-03-10 Thread zafar Ahsan
Hello
Pls, could any one let me know how to start tomcat 
through windows server2000 services instead of through command prompt.
And also how to make my own application as default site instead of jakarta default 
site .My starting page is zaf.html . when someone write 
http://localhost:8080/ 
its now dispaly jakarta tomcat home page.
I would be very thankful for yr kind help.

zafar


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



Would U Pls help me. Its urgent!! starting tomcat through windows2000 s services

2003-03-10 Thread zafar Ahsan
Hello
Pls, could any one let me know how to start tomcat 
through windows server2000 services instead of through command prompt.
And also how to make my own application as default site instead of jakarta default 
site .My starting page is zaf.html . when someone write 
http://localhost:8080/ 
its now dispaly jakarta tomcat home page.
I would be very thankful for yr kind help.

zafar


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



Would U Pls help me. Its urgent!! starting tomcat through windows2000 s services

2003-03-10 Thread zafar Ahsan
Hello
Pls, could any one let me know how to start tomcat 
through windows server2000 services instead of through command prompt.
And also how to make my own application as default site instead of jakarta default 
site .My starting page is zaf.html . when someone write 
http://localhost:8080/ 
its now dispaly jakarta tomcat home page.
I would be very thankful for yr kind help.

zafar


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



Pls help me !! Urgent!

2003-03-09 Thread zafar Ahsan
hello
Can any one pls let me know how to deals with null that result set returns when 
quering from an oracle database. its display null when using rset.getString() method 
and i want it to be either 0 or  (nothing).Am novice to java and tomcat and null 
being a special literal in java cosing me problem to get up to my work.
I would be very thankful for yr kind help.
And if don't mind pls let me also know how to start tomcat server through windows 
server2000 services.
Md. Zafar Ahsan


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



Re: Pls help me !! Urgent!

2003-03-09 Thread Kwok Peng Tuck
For columns that return null values why don't you check if the 
rset.getString() returns null?

If you installed tomcat with the exe rather then there is a option for 
you to install tomcat as a service. I think the program that tomcat uses 
to do this is freely available but escapes me at the moment. Try doing a 
google for javant service or something like that.

zafar Ahsan wrote:

hello
Can any one pls let me know how to deals with null that result set returns when quering from an oracle 
database. its display null when using rset.getString() method and i want it to be either 0 or 
 (nothing).Am novice to java and tomcat and null being a special literal in java cosing me 
problem to get up to my work.
I would be very thankful for yr kind help.
And if don't mind pls let me also know how to start tomcat server through windows 
server2000 services.
Md. Zafar Ahsan
_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus
-
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: Pls help me !! Urgent!

2003-03-09 Thread Bill Lunnon

Zafar,

You need to test for the null after you have retrived the parameter from the
query, via jdbc ResultSet.wasNull()

Code might look like

CallableStatement cs;
// setup the callable statement stuff prior to here
ResultSet rs = cs.executeQuery();

while (rs.next()) {
String param = rs.getString(pos);
if (rs.wasNull() == true) {
// set preferred param value
param = 0; // or 
}
}

Hope this helps

Bill
-Original Message-
From: zafar Ahsan [mailto:[EMAIL PROTECTED]
Sent: Monday, 10 March 2003 6:16 PM
To: [EMAIL PROTECTED]
Subject: Pls help me !! Urgent!


hello
Can any one pls let me know how to deals with null that result set returns
when quering from an oracle database. its display null when using
rset.getString() method and i want it to be either 0 or  (nothing).Am
novice to java and tomcat and null being a special literal in java cosing me
problem to get up to my work.
I would be very thankful for yr kind help.
And if don't mind pls let me also know how to start tomcat server through
windows server2000 services.
Md. Zafar Ahsan


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

-
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: Pls help me !! Urgent!

2003-03-09 Thread Giorgio Ponza
Hi Zafar

I wrote this very simple method
public final static String getString(String pOriginal) {if (pOriginal ==
null) return new String();return pOriginal;}

and i use it to retrieve strings that can be null, getting in this case a
new string.

bye bye

Giorgio




- Original Message -
From: zafar Ahsan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 8:16 AM
Subject: Pls help me !! Urgent!


 hello
 Can any one pls let me know how to deals with null that result set returns
when quering from an oracle database. its display null when using
rset.getString() method and i want it to be either 0 or  (nothing).Am
novice to java and tomcat and null being a special literal in java cosing me
problem to get up to my work.
 I would be very thankful for yr kind help.
 And if don't mind pls let me also know how to start tomcat server through
windows server2000 services.
 Md. Zafar Ahsan


 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

 -
 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: Pls help me . Urgent(JDBC oracle thin driver+tomcat+servlet)

2003-02-26 Thread Edson Alves Pereira
Dude, you must take a look at Sun´s tutorial about servlet, i´m
think that it´s your first step to understand the Servlet/JSP universe:

 --
 De:   zafar ahsan[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quarta-feira, 26 de fevereiro de 2003 2:10
 Para: [EMAIL PROTECTED]
 Assunto:  Pls help me . Urgent(JDBC oracle thin driver+tomcat+servlet)
 
  Dear sir/madam, 
 
 Just after looking at email, u might be thinking ohhh am there to eat
 yr time, but sir/madam am sorry for this, i try my best not to take much
 of yr time and when i really get in to trouble i use to write to u, i know
 yr time is very precious, am very thankful for yr kind help that u have
 provided to me till date. 
 
 Sir/madam i have little problem pls try to solve it. am using tomcat3.2.4 
 
 ok i have created my own application directory,
 $tomcat_home\webapps\zaf_fin 
 
 and have configured server.xml file and also 
 
 $tomcat_home\webapps\zaf_fin\web-inf\web.xml for my servlet. 
 
 The server is starting without any problem though initially there were
 some mistake and it cozed some problem but then i could be able to make it
 so now its working ok. 
 
 i have my htm file at 
 
 $tomcat_home\webapps\zaf_fin\salslip.html 
 
 and my class file for servlet in 
 
 $tomcat_home\webapps\zaf_fin\web-inf\classes\Salaryslip 
 
 Now pls let me know 
 
 1 Do i need to configure server.xml file again for jdbc if so what i
 would have to do. 
 
 2How to call servlet from html file. 
 
 i mean am usng form tag method=post
 action=..( what i have to
 write to here pls write me  considering am on local host) 
 
 am confused about this becoz on its local host site if i try to some
 examples it shows action to a directory servlet and in tomcat whole
 directory structure there is no servlet directory but there is one
 servlets directory. 
 
 How does it do that where to cheek for this clue. 
 
 pls help me i would be really very -very thankful to yr kind help.pls 
 
 zafar 
 [EMAIL PROTECTED]
 
 
 
 
 
 
 _
 Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
 http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Pls help me . Urgent(JDBC oracle thin driver+tomcat+servlet)

2003-02-25 Thread zafar ahsan
 Dear sir/madam, 

Just after looking at email, u might be thinking ohhh am there to eat yr time, but 
sir/madam am sorry for this, i try my best not to take much of yr time and when i 
really get in to trouble i use to write to u, i know yr time is very precious, am very 
thankful for yr kind help that u have provided to me till date. 

Sir/madam i have little problem pls try to solve it. am using tomcat3.2.4 

ok i have created my own application directory, $tomcat_home\webapps\zaf_fin 

and have configured server.xml file and also 

$tomcat_home\webapps\zaf_fin\web-inf\web.xml for my servlet. 

The server is starting without any problem though initially there were some mistake 
and it cozed some problem but then i could be able to make it so now its working ok. 

i have my htm file at 

$tomcat_home\webapps\zaf_fin\salslip.html 

and my class file for servlet in 

$tomcat_home\webapps\zaf_fin\web-inf\classes\Salaryslip 

Now pls let me know 

1 Do i need to configure server.xml file again for jdbc if so what i would have to 
do. 

2How to call servlet from html file. 

i mean am usng form tag method=post 
action=..( what i have to write to here 
pls write me  considering am on local host) 

am confused about this becoz on its local host site if i try to some examples it shows 
action to a directory servlet and in tomcat whole directory structure there is no 
servlet directory but there is one servlets directory. 

How does it do that where to cheek for this clue. 

pls help me i would be really very -very thankful to yr kind help.pls 

zafar 
[EMAIL PROTECTED]






_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



Pls help me . Urgent(JDBC oracle thin driver+tomcat+servlet)

2003-02-25 Thread zafar ahsan
 Dear sir/madam, 

Just after looking at email, u might be thinking ohhh am there to eat yr time, but 
sir/madam am sorry for this, i try my best not to take much of yr time and when i 
really get in to trouble i use to write to u, i know yr time is very precious, am very 
thankful for yr kind help that u have provided to me till date. 

Sir/madam i have little problem pls try to solve it. am using tomcat3.2.4 

ok i have created my own application directory, $tomcat_home\webapps\zaf_fin 

and have configured server.xml file and also 

$tomcat_home\webapps\zaf_fin\web-inf\web.xml for my servlet. 

The server is starting without any problem though initially there were some mistake 
and it cozed some problem but then i could be able to make it so now its working ok. 

i have my htm file at 

$tomcat_home\webapps\zaf_fin\salslip.html 

and my class file for servlet in 

$tomcat_home\webapps\zaf_fin\web-inf\classes\Salaryslip 

Now pls let me know 

1 Do i need to configure server.xml file again for jdbc if so what i would have to 
do. 

2How to call servlet from html file. 

i mean am usng form tag method=post 
action=..( what i have to write to here 
pls write me  considering am on local host) 

am confused about this becoz on its local host site if i try to some examples it shows 
action to a directory servlet and in tomcat whole directory structure there is no 
servlet directory but there is one servlets directory. 

How does it do that where to cheek for this clue. 

pls help me i would be really very -very thankful to yr kind help.pls 

zafar 
[EMAIL PROTECTED]






_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



urgent pls help me(servlets+jdbc(oracle8i thin driver)+tomcat)pls reply soon

2003-02-24 Thread zafar ahsan
 


Hello
Am working on oracle8i,servlets and tomcat.
My tomcat3.2.4 is working ok.
Am new and novice to tomcat as well as java technology can pls any one help
me, how to get my application working on tomcat.i just mean what i will have
to do it to connect the oracle to tomcat, would i have to configure
server.xml file for this if so what i would have to do am using thin layer
driver for oracle and the application is running ok on java.
i have already written a servet and have commiled it , the onlything i
require to know is do i need to configure tomcat for this and if so what is
to be done.

ok i have a html file,  a servlet file both in zaf_fin directory which is in
webapps directory and
how to call the servlet from html.what should be written in  action tag to
call it?
pls help me out , i would be very very thankful for yr kind help.

zafar Ahsan
[EMAIL PROTECTED]



_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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



Urgent. pls help me out

2003-02-17 Thread zafar ahsan
I have already installed tomcat and its working .
ok now can anyone help me how should i move now, i mean i have written a servlet with 
jdbc(oracle thin layer) and its compiling without error. Now where should i put it and 
also whats the best way to organise my application.
pls help me with an example,
where i have to create a directory for my application development and deployment.and 
whats r the steps that i should follow now.Would be pleased to know all about it if 
anyone can have little time for me.
thank u.


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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




Urgent. pls help me out.Am new and novice to tomcat as well as web development

2003-02-17 Thread zafar ahsan
I have already installed tomcat and its working .
ok now can anyone help me how should i move now, i mean i have written a servlet with 
jdbc(oracle thin layer) and its compiling without error. Now where should i put it and 
also whats the best way to organise my application.
pls help me with an example,as am new and novice to tomcat as well as web development.
where i have to create a directory for my application development and deployment.and 
whats r the steps that i should follow now.Would be pleased to know all about it if 
anyone can have little time for me.
thank u.


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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




Re: Urgent. pls help me out

2003-02-17 Thread David Kavanagh
Now, is this really urgent?
I'll see if I can help. I'd point you to the tomcat/webapps/examples 
directory. These are some examples that come with tomcat. You'll find a 
WEB-INF directory there with a web.xml file within. This is what maps 
URLs to actual servlet classes. You can create your own directory under 
webapps and make your own WEB-INF/web.xml there. Follow the directory 
structure shown in the other web apps that come with tomcat. Under 
WEB-INF you can have classes (for your class files), and lib (for jars 
your app might need, such as your JDBC driver). You can put your 
development directories anywhere you like. Your build process (make, 
ant, etc.) should put the class files into your webapp directory.
Instead of creating your directory under tomcat/webapps, you could put 
it elsewhere (in your own development tree) and edit the server.xml file 
(in tomcat/conf), to add your own context. Again, follow the examples. 
You'll need to change the docBase to point to where your web app lives.

David

zafar ahsan wrote:

I have already installed tomcat and its working .
ok now can anyone help me how should i move now, i mean i have written a servlet with jdbc(oracle thin layer) and its compiling without error. Now where should i put it and also whats the best way to organise my application.
pls help me with an example,
where i have to create a directory for my application development and deployment.and whats r the steps that i should follow now.Would be pleased to know all about it if anyone can have little time for me.
thank u.


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

-
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: Urgent. pls help me out

2003-02-17 Thread Peng Tuck Kwok
Tomcat comes with documentation which is relevant to developers about 
deployment . You can look in the directory of tomcat to find it, or just 
 point your browser to http://localhost:8080/tomcat-docs


zafar ahsan wrote:
I have already installed tomcat and its working .
ok now can anyone help me how should i move now, i mean i have written a servlet with jdbc(oracle thin layer) and its compiling without error. Now where should i put it and also whats the best way to organise my application.
pls help me with an example,
where i have to create a directory for my application development and deployment.and whats r the steps that i should follow now.Would be pleased to know all about it if anyone can have little time for me.
thank u.


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus

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




Pls help me on config of the memory problem

2003-02-06 Thread Ming Zhao
Hi,

How to set the maximum number of threads or clients
that the server can deal with simultonously? Running
java bean takes much memory, so I want to control the
number of users who can run it at the same time. I use
Apache2, Tomcat4.1 and mod-Jk2 under win2k. Thx,

Minger

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




Re: (Pls help us) Tomcat 4.1.18 will not start for me(Hello am to facing the same problem is there anyone to help us out)

2003-02-04 Thread zaf nasha

Dear Friends

Pls help us.

[EMAIL PROTECTED]

Dear John
If u get the way to solve this problem pls do reply me and send me solution, i would 
be really very grateful for your this kind help.

email [EMAIL PROTECTED]


zafar


 zaf nasha [EMAIL PROTECTED] wrote:
John-P King wrote:I am trying to get tomcat version 4.1.18 to run on a Windows 2000 
server. 
But after installing the JDK and then the tomcat server I cannot get it to 
startup. When I try to start it a command window pops up and then goes 
away without any text written to the window. I looked at the log files and 
I see this: 
stderr:
---
java.lang.NullPointerException
at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java, 
Compiled Code)
at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java, 
Compiled Code) 
stdout:
---
Bootstrap: Create Catalina server
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java,
 
Compiled Code)
at 
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java, 
Compiled Code)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java,
 
Compiled Code)
at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java, 
Compiled Code)
at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java, 
Compiled Code) 

Any guru's out there that might be able to help me out


-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Tomcat/Apache Basic setup - pls help a man!! :)

2002-11-14 Thread Robert L Sowders
You have to add the listener statements in server.xml if you want the auto 
mod_jk.conf to work.  You will also need a workers.properties file.  See 
http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html
Under the Final Configuration section follow the directions.

rls





Romeo Dickason [EMAIL PROTECTED]
11/13/2002 11:44 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:Tomcat/Apache Basic setup - pls help a man!! :)


Hi there all!

I've been trying to get Tomcat/Apache setup for a couple of weeks now, but
to avail! Please help here, I'm starting to feel like an idiot, I mean, 
can
it be THAT difficult?!??! :)

Please, if you can, browse this email and state the obvious, where I've 
gone
wrong! :)

Here is what I've done:

- Downloaded and installed *j2sdk-1_4_0_02-windows-i586.exe* and installed
- Set the environment settings for Java to JAVA_HOME = C:/j2sdk-1_4_0_02

* APACHE *

- Downloaded *apache_2.0.43-win32-x86-no_ssl.msi* and installed to
C:/Apache/Apache2
- Set the environment settings for Apache to APACHE_HOME = 
C:/Apache/Apache2

- Changed httpd.conf:
  * Listen 80 to Listen 7500
  * ServerName to 127.0.0.1

- Added the following to httpd.conf:
  * Include c:/Apache/Tomcat/conf/jk/mod_jk.conf-auto

* TOMCAT *

- Downloaded *jakarta-tomcat-4.1.12-LE-jdk14.zip* and installed to
C:/Apache/Tomcat
- Set the environment settings for Tomcat to CATALINA_HOME =
C:/Apache/Tomcat
- Made no changes to server.xml??

* mod_jk.dll *

- Downloaded mod_jk-2.0.42.dll, copied to c:/Apache/Apache2/modules and
renamed to mod_jk.dll



What else do I have to do? Any help would be appreciated!!

Many thanks!

Regards,

Romeo Dickason
Java Developer
eMMS
Discovery Health Ltd
Reg number: 66/03901/06 
Web: www.discoveryhealth.co.za 


This message and any attachments are confidential and intended solely for
the addressee. 
If you have received this message in error, please notify Discovery Health
Ltd immediately, 
telephone number +27-11-529 2888.  Any unauthorized use, alteration or
dissemination is 
prohibited. Discovery Health Ltd accepts no liability whatsoever for any
loss,  whether it be 
direct, indirect or consequential, arising from information made available
and actions resulting 
there from.






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat/Apache Basic setup - pls help a man!! :)

2002-11-13 Thread Romeo Dickason
Hi there all!

I've been trying to get Tomcat/Apache setup for a couple of weeks now, but
to avail! Please help here, I'm starting to feel like an idiot, I mean, can
it be THAT difficult?!??! :)

Please, if you can, browse this email and state the obvious, where I've gone
wrong! :)

Here is what I've done:

- Downloaded and installed *j2sdk-1_4_0_02-windows-i586.exe* and installed
- Set the environment settings for Java to JAVA_HOME = C:/j2sdk-1_4_0_02

* APACHE *

- Downloaded *apache_2.0.43-win32-x86-no_ssl.msi* and installed to
C:/Apache/Apache2
- Set the environment settings for Apache to APACHE_HOME = C:/Apache/Apache2

- Changed httpd.conf:
  * Listen 80 to Listen 7500
  * ServerName to 127.0.0.1

- Added the following to httpd.conf:
  * Include c:/Apache/Tomcat/conf/jk/mod_jk.conf-auto

* TOMCAT *

- Downloaded *jakarta-tomcat-4.1.12-LE-jdk14.zip* and installed to
C:/Apache/Tomcat
- Set the environment settings for Tomcat to CATALINA_HOME =
C:/Apache/Tomcat
- Made no changes to server.xml??

* mod_jk.dll *

- Downloaded mod_jk-2.0.42.dll, copied to c:/Apache/Apache2/modules and
renamed to mod_jk.dll



What else do I have to do? Any help would be appreciated!!

Many thanks!

Regards,

Romeo Dickason
Java Developer
eMMS
Discovery Health Ltd
Reg number: 66/03901/06 
Web: www.discoveryhealth.co.za 


This message and any attachments are confidential and intended solely for
the addressee. 
If you have received this message in error, please notify Discovery Health
Ltd immediately, 
telephone number +27-11-529 2888.  Any unauthorized use, alteration or
dissemination is 
prohibited. Discovery Health Ltd accepts no liability whatsoever for any
loss,  whether it be 
direct, indirect or consequential, arising from information made available
and actions resulting 
there from.






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




urgent , pls help ssl and apache and tomcat

2002-10-21 Thread Maninder S Batth
If apache is intercepting ssl requests, and forwards requests to tomcat, 
does  tomcat needs to be ssl enabled??? and should i use ajp or https 
connector between apache
and tomcat  for the request to work successfuly over ssl?? any help 
would be appreciated.

[EMAIL PROTECTED] wrote:

Jake

In response to your following suggestion:

Are you sure that Tomcat isn't already running as a service?  If
Tomcat is already listening to the ports that a new instance would
try to listen to, then you would get that behavior.  The window would
just close.  For easier debugging, you might want to open a command
prompt and cd to where the tomcat startup batch files are and run them
via the command line rather than double clicking the batch files.
That way, you should see some error messages in the console.

I ran the startup.bat file and got the same behavior.  I see results on the 
screen for a second, then the screen disappears.  The shutdown results do 
stay in the original window.  However, I'm getting error message connected 
with the sshutdown.  Here they are:

C:\Tomcat\Tomcat 4.1\binshutdown
Using CATALINA_BASE:   c:\Tomcat\Tomcat 4.1
Using CATALINA_HOME:   c:\Tomcat\Tomcat 4.1
Using CATALINA_TMPDIR: c:\Tomcat\Tomcat 4.1\temp
Using JAVA_HOME:   c:\j2sdk1.4.1
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
   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.init(Socket.java:291)
   at java.net.Socket.init(Socket.java:119)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:579)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j

ava:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

What is the cause of this exception?  What do I need to do to fix it?

Thanks for your help 

Ann

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: AW: urgent , pls help ssl and apache and tomcat

2002-10-21 Thread Maninder S Batth
Thanks Ralph, the pointer was much appreciated, helped me from not 
getting a nervous breakdown in the morning ;-)


Ralph Einfeldt wrote:

In this case you don't need ssl on the tomcat side.

The ssl is completly decrypted by apache and you
can just use ajp to connect apache with tomcat.

 

-Ursprüngliche Nachricht-
Von: Maninder S Batth [mailto:anywhereinfo;netscape.net]
Gesendet: Montag, 21. Oktober 2002 19:10
An: [EMAIL PROTECTED]
Betreff: urgent , pls help ssl and apache and tomcat

If apache is intercepting ssl requests, and forwards requests 
to tomcat, does  tomcat needs to be ssl enabled??? and should 
i use ajp or https connector between apache and tomcat for 
the request to work successfuly over ssl?? 
   


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



Pls help! why cann't I start tomcat 4?

2002-10-13 Thread chasee


Hi, 

I am getting this 
message when startuping tomcat 4.0.1 after upgrading from tomcat3 to tomcat4:
ERROR reading java.io.ByteArrayInputStream@61a408
At Line 33 /web-app/servlet-mapping/ .


Is it because of the upgrading? I guess there is an syntax error when 
the engine tries to read one of the web.xmls (in the conf and 
webapps\mycontex\web-inf). What should I do with it? Please kindly help! 


Chasee
 


-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos,  more
faith.yahoo.com


log4j not working for two applications simultaneously... pls help

2002-06-05 Thread Prashant sharma


Hello friends. 

I'm facing a wierd problem. 

I'm using Tomcat 4.0.2 and Apache  1.3.20 on redhat 7.2 and latest log4j. 

I've set the $CATALINA_OPTS=-Dlog4j.configuration=log4j.configure 

I'm running two applications ABC and XYZ. 

When i put log4j.configure file in WEB-INF/classes/  of ABC and XYZ, seems 
like log4j doesnot logs for both.
whereas it is writing to a specified file for the first application accessed 
via web either ABC or XYZ . 

I mean if i access ABC it creates a log file specified in log4j.configure 
for ABC. and logs of XYZ are written in a catalina.out. 

Can any one please help me out to solve this problem. 

I want log using log4j for multiple applications. 

Waiting for reply,
thanking u in advance ..
Prashant 

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




the app won't run pls. help!

2002-05-16 Thread nino stevens bretana

the new applicaion won't run after i restarted the
server. i already had its context on the server.xml
and tried deal it with /manager... what are
posibilities why it happened?

and one more thing... does tomcat support ssi?

thanks in advance//

nesty

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: Pls Help!! Uploading an image

2002-03-05 Thread Lev Assinovsky

Try UploadBean from
http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html
It's very easy for use in JSP.
An exapmple is also there.

Uma Maheswar wrote:

 Hi,
 I tried using O'Reilly, but it is confusing. I need a simple one than that
 one. Can you help me?

 Uma

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 05, 2002 2:34 AM
 Subject: Re: Pls Help!! Uploading an image

  Uma,
  The O'Reilly servlets book has a good example (including
  code) where you can
  upload files (including images as part of a form).
  See
  http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
  ultipart/MultipartP
  arser.html for more info.
  Hope this helps.
  Satyakant Evani
  - Original Message -
  From: Uma Maheswar [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, March 04, 2002 10:49 AM
  Subject: Pls Help!! Uploading an image
 
 
  HI,
  I need help from any of you. I need a programme to
  upload an image to the
  database while submitting a form. If any one is having
  the source code pls
  help  me.
 
  Regards
  Uma
 
   nope i am using tomcat from my user area ..
   both tomcat and apache run from my user area
   there is some problem with a particular .so file which it is not able to
   find
  
  
   -Original Message-
   From: brian ally [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 04, 2002 11:04 PM
   To: Tomcat Users List
   Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
   library path
  
  
   Are you starting tomcat as root? On my linux box, if i su to root, all
   manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
   dash). Could this be your problem?
  
   /b
  
   Abhishek Pamecha wrote:
  
   it is there..
   
   -Original Message-
   From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 04, 2002 2:34 PM
   To: Tomcat Users List
   Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
   library path
   
   
   
   First, please make sure that Oracle client is installed
   in your machine.
   
   Abhishek Thanks buddy!
   Abhishek but ..i already did that
   Abhishek but i have a a requirement which says i have to use oci
 client
   only
   Abhishek any other solution ???
   
   UnsatisfiedLinkError means JVM can't find shared library.
   You need to add shared library path to environment variable.
   
   If you use solaris or linux, then you should add following
   statement in your tomcat.sh.
   
   LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
   export LD_LIBRARY_PATH
   
   if you use HP-UX, then
   
   SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
   export SHLIB_PATH
   
   if you use Windows, then you should add following to tomcat.bat.
   
   set PATH=%ORACLE_HOME%\lib;%PATH%
   
   
   then it will be able to find shared library.
   
   regards,
   Watanabe.
   
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
   
   
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
   
   
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Pls Help!! Uploading an image

2002-03-04 Thread Uma Maheswar

HI,
I need help from any of you. I need a programme to upload an image to the database 
while submitting a form. If any one is having the source code pls help  me.

Regards
Uma



Re: Pls Help!! Uploading an image

2002-03-04 Thread Lev Assinovsky

I use special bean from:
http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html

Usually web servers don't support uploading because it's still RFC.

Uma Maheswar wrote:

 HI,
 I need help from any of you. I need a programme to upload an image to the database 
while submitting a form. If any one is having the source code pls help  me.

 Regards
 Uma

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Pls Help!! Uploading an image

2002-03-04 Thread Uma Maheswar

Hi,
I tried using O'Reilly, but it is confusing. I need a simple one than that
one. Can you help me?

Uma

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 2:34 AM
Subject: Re: Pls Help!! Uploading an image


 Uma,
 The O'Reilly servlets book has a good example (including
 code) where you can
 upload files (including images as part of a form).
 See
 http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
 ultipart/MultipartP
 arser.html for more info.
 Hope this helps.
 Satyakant Evani
 - Original Message -
 From: Uma Maheswar [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 04, 2002 10:49 AM
 Subject: Pls Help!! Uploading an image


 HI,
 I need help from any of you. I need a programme to
 upload an image to the
 database while submitting a form. If any one is having
 the source code pls
 help  me.

 Regards
 Uma

  nope i am using tomcat from my user area ..
  both tomcat and apache run from my user area
  there is some problem with a particular .so file which it is not able to
  find
 
 
  -Original Message-
  From: brian ally [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 04, 2002 11:04 PM
  To: Tomcat Users List
  Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
  library path
 
 
  Are you starting tomcat as root? On my linux box, if i su to root, all
  manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
  dash). Could this be your problem?
 
  /b
 
  Abhishek Pamecha wrote:
 
  it is there..
  
  -Original Message-
  From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 04, 2002 2:34 PM
  To: Tomcat Users List
  Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
  library path
  
  
  
  First, please make sure that Oracle client is installed
  in your machine.
  
  Abhishek Thanks buddy!
  Abhishek but ..i already did that
  Abhishek but i have a a requirement which says i have to use oci
client
  only
  Abhishek any other solution ???
  
  UnsatisfiedLinkError means JVM can't find shared library.
  You need to add shared library path to environment variable.
  
  If you use solaris or linux, then you should add following
  statement in your tomcat.sh.
  
  LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
  export LD_LIBRARY_PATH
  
  if you use HP-UX, then
  
  SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
  export SHLIB_PATH
  
  if you use Windows, then you should add following to tomcat.bat.
  
  set PATH=%ORACLE_HOME%\lib;%PATH%
  
  
  then it will be able to find shared library.
  
  regards,
  Watanabe.
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Pls Help!! Uploading an image

2002-03-04 Thread Brett Porter

You might try struts: http://jakarta.apache.org/struts

It has an easy way to get multipart content from a form, including an easy
example, but there is a learning curve to setting up struts itself.
The code is not going to just appear before your eyes unfortunately :)

- Brett

-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 March 2002 12:33 PM
To: Tomcat Users List
Subject: Re: Pls Help!! Uploading an image


Hi,
I tried using O'Reilly, but it is confusing. I need a simple one than that
one. Can you help me?

Uma

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 2:34 AM
Subject: Re: Pls Help!! Uploading an image


 Uma,
 The O'Reilly servlets book has a good example (including
 code) where you can
 upload files (including images as part of a form).
 See
 http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
 ultipart/MultipartP
 arser.html for more info.
 Hope this helps.
 Satyakant Evani
 - Original Message -
 From: Uma Maheswar [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 04, 2002 10:49 AM
 Subject: Pls Help!! Uploading an image


 HI,
 I need help from any of you. I need a programme to
 upload an image to the
 database while submitting a form. If any one is having
 the source code pls
 help  me.

 Regards
 Uma

  nope i am using tomcat from my user area ..
  both tomcat and apache run from my user area
  there is some problem with a particular .so file which it is not able to
  find
 
 
  -Original Message-
  From: brian ally [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 04, 2002 11:04 PM
  To: Tomcat Users List
  Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
  library path
 
 
  Are you starting tomcat as root? On my linux box, if i su to root, all
  manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
  dash). Could this be your problem?
 
  /b
 
  Abhishek Pamecha wrote:
 
  it is there..
  
  -Original Message-
  From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 04, 2002 2:34 PM
  To: Tomcat Users List
  Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
  library path
  
  
  
  First, please make sure that Oracle client is installed
  in your machine.
  
  Abhishek Thanks buddy!
  Abhishek but ..i already did that
  Abhishek but i have a a requirement which says i have to use oci
client
  only
  Abhishek any other solution ???
  
  UnsatisfiedLinkError means JVM can't find shared library.
  You need to add shared library path to environment variable.
  
  If you use solaris or linux, then you should add following
  statement in your tomcat.sh.
  
  LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
  export LD_LIBRARY_PATH
  
  if you use HP-UX, then
  
  SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
  export SHLIB_PATH
  
  if you use Windows, then you should add following to tomcat.bat.
  
  set PATH=%ORACLE_HOME%\lib;%PATH%
  
  
  then it will be able to find shared library.
  
  regards,
  Watanabe.
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



Re: Pls Help!! Uploading an image

2002-03-04 Thread Uma Maheswar

Dear Brett,
Could you please send me the code?

Uma

- Original Message -
From: Brett Porter [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 7:14 AM
Subject: RE: Pls Help!! Uploading an image


 You might try struts: http://jakarta.apache.org/struts

 It has an easy way to get multipart content from a form, including an easy
 example, but there is a learning curve to setting up struts itself.
 The code is not going to just appear before your eyes unfortunately :)

 - Brett

 -Original Message-
 From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 5 March 2002 12:33 PM
 To: Tomcat Users List
 Subject: Re: Pls Help!! Uploading an image


 Hi,
 I tried using O'Reilly, but it is confusing. I need a simple one than that
 one. Can you help me?

 Uma

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 05, 2002 2:34 AM
 Subject: Re: Pls Help!! Uploading an image


  Uma,
  The O'Reilly servlets book has a good example (including
  code) where you can
  upload files (including images as part of a form).
  See
  http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
  ultipart/MultipartP
  arser.html for more info.
  Hope this helps.
  Satyakant Evani
  - Original Message -
  From: Uma Maheswar [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, March 04, 2002 10:49 AM
  Subject: Pls Help!! Uploading an image
 
 
  HI,
  I need help from any of you. I need a programme to
  upload an image to the
  database while submitting a form. If any one is having
  the source code pls
  help  me.
 
  Regards
  Uma
 
   nope i am using tomcat from my user area ..
   both tomcat and apache run from my user area
   there is some problem with a particular .so file which it is not able
to
   find
  
  
   -Original Message-
   From: brian ally [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 04, 2002 11:04 PM
   To: Tomcat Users List
   Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
   library path
  
  
   Are you starting tomcat as root? On my linux box, if i su to root, all
   manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
   dash). Could this be your problem?
  
   /b
  
   Abhishek Pamecha wrote:
  
   it is there..
   
   -Original Message-
   From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 04, 2002 2:34 PM
   To: Tomcat Users List
   Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
   library path
   
   
   
   First, please make sure that Oracle client is installed
   in your machine.
   
   Abhishek Thanks buddy!
   Abhishek but ..i already did that
   Abhishek but i have a a requirement which says i have to use oci
 client
   only
   Abhishek any other solution ???
   
   UnsatisfiedLinkError means JVM can't find shared library.
   You need to add shared library path to environment variable.
   
   If you use solaris or linux, then you should add following
   statement in your tomcat.sh.
   
   LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
   export LD_LIBRARY_PATH
   
   if you use HP-UX, then
   
   SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
   export SHLIB_PATH
   
   if you use Windows, then you should add following to tomcat.bat.
   
   set PATH=%ORACLE_HOME%\lib;%PATH%
   
   
   then it will be able to find shared library.
   
   regards,
   Watanabe.
   
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
   
   
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
   
   
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




catalina 4.0.2 and internal servlet cache ... pls help

2002-02-26 Thread ranjeet walunj

Dear friends,

i'm sending the same mail again ... pls help me ...

i'm facing this internal cache of tomcat problem ..
i've reffered the old archives and they r saying ki putting
reloadable=true
in server.xml can solve this problem.

Problem: If i change some java code in my servlet and recompile the
servlet
it doesn't affect the operation untill i restart the Tomcat ...
everytime restarting tomcat for small changes is very wierd stuff :-(

I'm using tomcat 4.0.2 (the latest stable version released on 11 feb)

sample context from my server.xml is as follows
-
Host name=domain.com
   Context path=/template_App1
docBase=/temp5/sites/mysite/template_App1
 debug=0 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=app1_log. suffix=.log timestamp=true /
   /Context

   Context path=/template_App2
docBase=/temp5/sites/mysite/template_App2
 debug=0 reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=app2_log. suffix=.log timestamp=true /
   /Context
/Host

-


am i missing something???

my httpd.conf says following :
-
ServerName domain.com
ServerAlias www.domain.com domain.com
DocumentRoot /temp5/sites/mysite/

WebAppDeploy template_App1 warpConnection /template_App1
WebAppDeploy template_App2 warpConnection /template_App2

/VirtualHost

-

waiting for reply,

Ranjeet walunj




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: catalina 4.0.2 and internal servlet cache ... pls help

2002-02-26 Thread Markus Spath

Hi,

I don't know whether this might help you, but i found the manager app to be 
useful:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

markus

ranjeet walunj wrote:

 Dear friends,
 
 i'm sending the same mail again ... pls help me ...
 
 i'm facing this internal cache of tomcat problem ..
 i've reffered the old archives and they r saying ki putting
 reloadable=true
 in server.xml can solve this problem.
 
 Problem: If i change some java code in my servlet and recompile the
 servlet
 it doesn't affect the operation untill i restart the Tomcat ...
 everytime restarting tomcat for small changes is very wierd stuff :-(



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: catalina 4.0.2 and internal servlet cache ... pls help

2002-02-26 Thread ranjeet walunj

nope i seen this .. and also tried that ...
but unfortunately this also doesn't work for me .. :-(

i stop the context using manager and starts agains or reload also doesn't help
:(

cud someone pls help me

ranjeet

Markus Spath wrote:

 Hi,

 I don't know whether this might help you, but i found the manager app to be
 useful:

 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

 markus

 ranjeet walunj wrote:

  Dear friends,
 
  i'm sending the same mail again ... pls help me ...
 
  i'm facing this internal cache of tomcat problem ..
  i've reffered the old archives and they r saying ki putting
  reloadable=true
  in server.xml can solve this problem.
 
  Problem: If i change some java code in my servlet and recompile the
  servlet
  it doesn't affect the operation untill i restart the Tomcat ...
  everytime restarting tomcat for small changes is very wierd stuff :-(

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Need root mapping for servlet but want to be able to retrieve images... pls help

2002-02-21 Thread Donie Kelly

Hi all

I'm asking this question again because I still don't have a working
solution. My servlet is mapped to / as shown below. However, when I use jsp
pages the images in the page are invoking a request from this servlet
instead of getting the image. Anybody got a solution for this?

My images are in ../context/images
Thanks
Donie


  servlet
servlet-namemyservlet/servlet-name
display-namemyservlet/display-name
servlet-classcom.company.mm.y.myservlet/servlet-class
load-on-startup50/load-on-startup
  /servlet

  servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern//url-pattern
  /servlet-mapping 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Need root mapping for servlet but want to be able to retrieve ima ges... pls help

2002-02-21 Thread Cox, Charlie

If you are using tomcat4, you can  use a filter to help with this.

you can map a directory to your servlet
url-pattern/myservlet/*/urlPattern

then you can create a filter that maps '/*' and checks the requested URL
itself to see if it should be passed on(call doChain()) or
forwarded to /servlet/ to process it within the servlet(forward() without
calling doChain()).


Another alternative is you can map file types to a servlet
url-pattern*.html/urlPattern

This allows you to leave images and jsp files alone.
Charlie

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 21, 2002 5:23 AM
 To: 'Tomcat Users List'
 Subject: Need root mapping for servlet but want to be able to 
 retrieve ima ges... pls help
 
 
 Hi all
 
 I'm asking this question again because I still don't have a working
 solution. My servlet is mapped to / as shown below. However, 
 when I use jsp
 pages the images in the page are invoking a request from this servlet
 instead of getting the image. Anybody got a solution for this?
 
 My images are in ../context/images
 Thanks
 Donie
 
 
   servlet
 servlet-namemyservlet/servlet-name
 display-namemyservlet/display-name
 servlet-classcom.company.mm.y.myservlet/servlet-class
 load-on-startup50/load-on-startup
   /servlet
 
   servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern//url-pattern
   /servlet-mapping 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Installation from scratch, retry2 PLS HELP!

2001-12-09 Thread Sri K Ganjam

Hi louie,

It depends on which module you want to use for  communication between apache
and tomcat. Do u want to use mod_jk or mod_webapp. u need to build one of
these modules or take the available binary dist and proceed according to the
INSTALL.txt which comes along with them.. the config is very easy.
Regards,
Sri K Ganjam


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Installation from scratch, retry2 PLS HELP!

2001-12-09 Thread louie miranda

i think, ill use mod_jk.
i have a lilttle question though,

how come tomcat 4.0.1-src, doesnt have all the components like
tomcat 3.3-src * have?


i hope, this one's clear, and howcome the ver 4.0.1-src on the
jakarta-website, doesnt
have a install howto? like the old article on tomcat 3.3* have?

i mean this

3.3 =
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
4.0 = http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html


?


pls advise, ty..



louie *confused*


- Original Message -
From: Sri K Ganjam [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 09, 2001 4:17 PM
Subject: Re: Installation from scratch, retry2 PLS HELP!


 Hi louie,

 It depends on which module you want to use for  communication between
apache
 and tomcat. Do u want to use mod_jk or mod_webapp. u need to build one of
 these modules or take the available binary dist and proceed according to
the
 INSTALL.txt which comes along with them.. the config is very easy.
 Regards,
 Sri K Ganjam


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Installation from scratch, retry2 PLS HELP!

2001-12-09 Thread Sri K Ganjam

Hi,
I dont know much about this... look here :
http://jakarta.apache.org/~hgomez/ajp13-tc4.0/
This page gives complete connectors for tc4.0 along with sources and how-to
s . hope it will be of help to you. btw what is your configuration i.e.. OS
etc
Regards,
Sri K Ganjam


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Installation from scratch, retry2 PLS HELP!

2001-12-09 Thread louie miranda

Sri, apache+tomcat on a solaris 5.8 sparc machine.

Im done making the apache to handle DSO.
- and thats all, im stuck there..

i' have been reading stuffs about the installation for tomcat apache
and still could'nt figure it out.

btw, after that.. apache (DSO)
whats next?

i presume,

ill choose what to use, mod_jk / mod_jserv
and put it on httpd.conf Include /loc/of/tomcat.conf -- i have read
somewhere that this config apache-tomcat.conf is automatically being
generated by tomcat, i did install the binary of tomcat yesterday, but i
could't see it generating one, hmm.. i just build it standalone..

can i use tomcat standalone for apache? and just link it using mod_jk, etc?
is this possible?


thanks sri, thnx everyone.. :)


pls advise ty.



louie *curious*





- Original Message -
From: Sri K Ganjam [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 09, 2001 5:16 PM
Subject: Re: Installation from scratch, retry2 PLS HELP!


 Hi,
 I dont know much about this... look here :
 http://jakarta.apache.org/~hgomez/ajp13-tc4.0/
 This page gives complete connectors for tc4.0 along with sources and
how-to
 s . hope it will be of help to you. btw what is your configuration i.e..
OS
 etc
 Regards,
 Sri K Ganjam


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Installation from scratch, retry2 PLS HELP!

2001-12-08 Thread louie miranda

Hi, this is my 2nd time to retry the tomcat+apache installation.
1st time, i failed =(

I now compiled apache1.3.22 to support DSO.
i both src and binary of tomcat, now im clueless
where to start configuring it to work with apache.

pls help, whats next?
i would like my apache to run tomcat with in and not
from tomcat alone.




pls help



louie *curious*


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




FW: Pls help..... Session lost in IIS / Tomcat configuration.

2001-12-07 Thread HOOI Tak Keong, Henry


Hi all, 
I would like to post a question to the community that I am hoping some of
you may have encountered and know the solution to.
Based on the project requirements, we have to use IIS as our Web Server and
Tomcat to run as a servlet container.
The problem I am facing is that the session can't seem to be maintained,
after moving from our login page to the second page.
At the moment, I used the url mapping feature to map all commands that end
with a (*.do) extension to the central Controller servlet. Based on the
command, e.g. (Login.do) for login page, the servlet will load the
corresponding jsp page, called A.jsp, which is actually a frame, that loads
other pages, B.jsp and C.jsp respectively. However, I have tested out and
found that the value of sessionId in the A.jsp file is always different than
the sessionId on B.jsp, indicating that request sent to the server are
somehow not being interpreted/and redirected to the servlet container
properly; and I also ensured that all cookies were allowed by the browser
while doing this test.
To fully ensure that sessionId returned by the Tomcat container is similar
to the one sent back via request, I decided to use url encoding,(via the
response.encodeURL() method) but found that IIS could not map the encoded
url with the values I had set in the uriworkermap.properties file.
The encoded url looked like below:
frame name=leftFrame scrolling=AUTO noresize
src=mPlanningLogistic/inc-webpage/sidenav.jsp;jsessionid=zf6stluck1

Below is a listing of the mappings for IIS-Tomcat defined in the
'uriworkermap.properties' file.

---
/MyProject/servlet/*=$(default.worker)
/MyProject/*.jsp=$(default.worker)
/MyProject/*.do=$(default.worker)
/MyProject/*=$(default.worker)

Hence, I was wondering if any of you knew anything that I may have
overlooked that could help solve this session problem I am facing. 
The funny thing though, is that I created another 3 jsp pages, all linked to
one another(just to test if the issue was really a bad mapping), that did
not use any commands (*.do) extensions. That means, all I just did was pass
a parameter from A.jsp, which had link to B.jsp (in there I saved the
request parameter to the session and displayed it on page), and which had a
link to C.jsp, where I displayed the same value in the session again, and it
worked perfectlyindicating that a single session was used and maintained
throughout the navigation process. But, then this just drove me nuts because
if the .jsp extension can work how come not a *.do one?
Am I making any sense? Anyway, I would really appreciate it if any of you
may have any ideas or comments about my problem...
Thanks in advance.
Cheers'
Henry
The current setup of the system is:
--
Web Browser: IE 5.5 Sp1
Web server: IIS 5.0
Servlet Container: Tomcat 3.2.3

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Pls help..... Session lost in IIS / Tomcat configuration.

2001-12-06 Thread HOOI Tak Keong, Henry

Hi all, 
I would like to post a question to the community that I am hoping some of
you may have encountered and know the solution to.
Based on the project requirements, we have to use IIS as our Web Server and
Tomcat to run as a servlet container.
The problem I am facing is that the session can't seem to be maintained,
after moving from our login page to the second page.
At the moment, I used the url mapping feature to map all commands that end
with a (*.do) extension to the central Controller servlet. Based on the
command, e.g. (Login.do) for login page, the servlet will load the
corresponding jsp page, called A.jsp, which is actually a frame, that loads
other pages, B.jsp and C.jsp respectively. However, I have tested out and
found that the value of sessionId in the A.jsp file is always different than
the sessionId on B.jsp, indicating that request sent to the server are
somehow not being interpreted/and redirected to the servlet container
properly; and I also ensured that all cookies were allowed by the browser
while doing this test.
To fully ensure that sessionId returned by the Tomcat container is similar
to the one sent back via request, I decided to use url encoding,(via the
response.encodeURL() method) but found that IIS could not map the encoded
url with the values I had set in the uriworkermap.properties file.
The encoded url looked like below:
frame name=leftFrame scrolling=AUTO noresize
src=mPlanningLogistic/inc-webpage/sidenav.jsp;jsessionid=zf6stluck1

Below is a listing of the mappings for IIS-Tomcat defined in the
'uriworkermap.properties' file.

---
/MyProject/servlet/*=$(default.worker)
/MyProject/*.jsp=$(default.worker)
/MyProject/*.do=$(default.worker)
/MyProject/*=$(default.worker)

Hence, I was wondering if any of you knew anything that I may have
overlooked that could help solve this session problem I am facing. 
The funny thing though, is that I created another 3 jsp pages, all linked to
one another(just to test if the issue was really a bad mapping), that did
not use any commands (*.do) extensions. That means, all I just did was pass
a parameter from A.jsp, which had link to B.jsp (in there I saved the
request parameter to the session and displayed it on page), and which had a
link to C.jsp, where I displayed the same value in the session again, and it
worked perfectlyindicating that a single session was used and maintained
throughout the navigation process. But, then this just drove me nuts because
if the .jsp extension can work how come not a *.do one?
Am I making any sense? Anyway, I would really appreciate it if any of you
may have any ideas or comments about my problem...
Thanks in advance.
Cheers'
Henry
The current setup of the system is:
--
Web Browser: IE 5.5 Sp1
Web server: IIS 5.0
Servlet Container: Tomcat 3.2.3

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Catalina Authentication PLS Help !!

2001-11-25 Thread Barry L. White

Renato,
I have done my own form based logon with ASP, and I suppose you could do the
same with JSP.  It is not really that difficult in that you just use session
variables to do it.  Unfortunatly you must have code in each page that
checks these session variables and then redirects the page if the session
varialbles are not valid.  I tipically show an error page with a link to the
login page, but that is up to you.  The main reason I did it this way is
because I had a web application that had multiple security levels.  To keep
from having to have multiple versions of the same web page I would just
change my sql querries and/or display based on the user security level.

With JSP you could also use servlets, custom tags or beans to do this also.
I have just started programming with JSP so I am not sure how to do it
without scripting like in ASP.  It would be pretty cool to be able to use
custom tags in a page to display things based on session variables.  =)

As far as instructing users not to access the login page -  It was not a
problem on my site but Tomcat 4.0 does not like it at all ... which might be
technically correct, but may not be practical.  Users will do anything (and
everything) to screew-up your application, heck some do it just to piss you
off.  It would be nice to find a work-arround for this (user induced)
problem in Tomcat 4.0.

Barry



- Original Message -
From: Renato Romano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 6:09 AM
Subject: R: Catalina Authentication PLS Help !!


 I found something, but the proposed solution is Instruct users not to
 access the login page !!!
 Of course that's not good for me... consider, for example, that my login
 page could be my HOME page !!
 I know there is no portable solution, but one for Tomcat (4) would be ok,
if
 any...
 Thanks
 Renato

 -Messaggio originale-
 Da: Barry White [mailto:[EMAIL PROTECTED]]
 Inviato: mercoledì 21 novembre 2001 19.26
 A: Tomcat Users List; [EMAIL PROTECTED]
 Oggetto: Re: Catalina Authentication PLS Help !!


 I remember some discussion about this subject.  Have you searched the
 achives?

 - Original Message -
 From: Renato Romano [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 21, 2001 12:11 PM
 Subject: Catalina Authentication PLS Help !!


  Hi,
  I succesfully configured my webapp for login authentication, but I get
  a Page not Found Error, when a user access DIRECTLY the login page,
  (and not a protected area!!) and correctly gives his username and
  password. Probably Tomcat simply doesn't know WHERE to forward the
  user, because he didn't request a protected page!!
  When using Tomcat 3.2 I solved this by looking at the
  tomcat.auth.originalLocation parameter in the session object, and
  then defining a default value for this attribute when it was not
  set.
  How to do this with Tomcat 4 ??
  Thanks.
  Renato
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




R: Catalina Authentication PLS Help !!

2001-11-22 Thread Renato Romano

I found something, but the proposed solution is Instruct users not to
access the login page !!!
Of course that's not good for me... consider, for example, that my login
page could be my HOME page !!
I know there is no portable solution, but one for Tomcat (4) would be ok, if
any...
Thanks
Renato

-Messaggio originale-
Da: Barry White [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 21 novembre 2001 19.26
A: Tomcat Users List; [EMAIL PROTECTED]
Oggetto: Re: Catalina Authentication PLS Help !!


I remember some discussion about this subject.  Have you searched the
achives?

- Original Message -
From: Renato Romano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 21, 2001 12:11 PM
Subject: Catalina Authentication PLS Help !!


 Hi,
 I succesfully configured my webapp for login authentication, but I get
 a Page not Found Error, when a user access DIRECTLY the login page,
 (and not a protected area!!) and correctly gives his username and
 password. Probably Tomcat simply doesn't know WHERE to forward the
 user, because he didn't request a protected page!!
 When using Tomcat 3.2 I solved this by looking at the
 tomcat.auth.originalLocation parameter in the session object, and
 then defining a default value for this attribute when it was not
 set.
 How to do this with Tomcat 4 ??
 Thanks.
 Renato


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




ServletContext - PLS HELP!!

2001-11-21 Thread Michael

 
Hi! 
 
 
Can you help me, in what I'm doing wrong? 
 
 
I set an attribute in the servletcontext:in the initmethod! 
i can access the object using: config.getServletContext().getAttribute(test) 
but not 
request.getAttribute(test) 
WHY??? 
 
 
how to access this attribute if I only know the HttpServletRequest-object but not the 
HttpServlet-object, though I know the contextpath (request.getContextPath())??? 
 
thanks 
michi 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: ServletContext - PLS HELP!!

2001-11-21 Thread Ulf Dittmer

Michael,

Request attributes and Context attributes are two separate things.
You should not expect to store an item in one and retrieve it from
the other. The servlet context can be gotten be calling getServletContext()
from within a servlet.

Ulf

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 11:34 AM
To: [EMAIL PROTECTED]
Subject: ServletContext - PLS HELP!!


 
Hi! 
 
 
Can you help me, in what I'm doing wrong? 
 
 
I set an attribute in the servletcontext:in the initmethod! 
i can access the object using:
config.getServletContext().getAttribute(test) 
but not 
request.getAttribute(test) 
WHY??? 
 
 
how to access this attribute if I only know the HttpServletRequest-object
but not the HttpServlet-object, though I know the contextpath
(request.getContextPath())??? 
 
thanks 
michi 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re : RE: ServletContext - PLS HELP!!

2001-11-21 Thread Michael

ok - I call a static method with the signature: public static test(HttpServletRequest 
req)
How can I access the servletcontext within this method???
 
I think this MUST be possible, because the HttpServletRequest-object has the 
getContextPath()-method - so it knows the right context
 
if this is not possible: which object-reference do I have to give to my 
static-method???
 
thank you very much
michi
 
 

Michael,

Request attributes and Context attributes are two separate things.
You should not expect to store an item in one and retrieve it from
the other. The servlet context can be gotten be calling getServletContext()
from within a servlet.

Ulf

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 11:34 AM
To: [EMAIL PROTECTED]
Subject: ServletContext - PLS HELP!!



Hi!


Can you help me, in what I'm doing wrong?


I set an attribute in the servletcontext:in the initmethod!
i can access the object using:
config.getServletContext().getAttribute(test)
but not
request.getAttribute(test)
WHY???


how to access this attribute if I only know the HttpServletRequest-object
but not the HttpServlet-object, though I know the contextpath
(request.getContextPath())???

thanks
michi


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: Catalina Authentication PLS Help !!

2001-11-21 Thread Barry White

I remember some discussion about this subject.  Have you searched the
achives?

- Original Message -
From: Renato Romano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 21, 2001 12:11 PM
Subject: Catalina Authentication PLS Help !!


 Hi,
 I succesfully configured my webapp for login authentication, but I get
 a Page not Found Error, when a user access DIRECTLY the login page,
 (and not a protected area!!) and correctly gives his username and
 password. Probably Tomcat simply doesn't know WHERE to forward the
 user, because he didn't request a protected page!!
 When using Tomcat 3.2 I solved this by looking at the
 tomcat.auth.originalLocation parameter in the session object, and
 then defining a default value for this attribute when it was not
 set.
 How to do this with Tomcat 4 ??
 Thanks.
 Renato


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Errors in ISAPI.log - Pls HELP!!!

2001-07-29 Thread Lim Dara

Hello all,

Jakarta Tomcat v3.2.1 was installed and my application using it is working
fine except for noticing that the isapi_redirect.dll sometimes resulted in a
500 internal error in my web w3svc logs with nt code 0.
Entries are as :

2001-07-25 01:06:02 Host4-144-123.pagic.net - W3SVC3 DMZ-SSGLFG01
203.126.88.124 POST /jakarta/isapi_redirect.dll - 500 0 1798 1406 11297 80
HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+5.0;+Windows+98;+DigExt)
Questionnaireupdation=True;+ASPSESSIONIDQQQGGRPV=ENMCKIBNPBCLMIK;+Samplesending=True;+samplesaveprofile=True;+dontsend%5Ford%5Femail=True;+sample%5Fgreeting%5Fsecond=True;+mailer%5Fm%5Fpassword=;+do%27tsend%5Ford%5Femail;+mailer=1221%40yahoo%2Ecom%2Etw;+login%5Fno=434343;+MembershipNbr=00;+UserId;+sample_greeting_second=True;+saqqm%5Fmember=New;+Registration%5FQuestionnaire=false;+mailer1=True;+WEBTRENDS_ID=210.241.144.123-3993966096.29430949;+SITESERVER=ID=01ae6a17a209f8ed1120a7829cfab1f2;+FormsAuth=qjQvkWs6/CP6PS0njewFZ5EdTNQ5G147NwA1ADAAMAA1ADMAAAD=;+MemRightsChanged=ZxteO3==
http://www.womanism.com/questionnaire/SkinQuestionnaire.htm

Checking my tomcat.log, there is no error recorded.  However, in jvm.stdout,
there are exception errors such as :
   java.lang.NullPointerException
   java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is
busy with results for another hstmt
   java.lang.NullPointerException

and in isapi, there are strange error messages which I do not understand
that keeps appearing.  The entries in isapi is as pasted below.

Will appreciate it if someone can advise.

Thank you.

Regards,
Dara.

isapi.log  (some excerpts)
-
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed

[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp12_worker.c (498)]: ajpv12_handle_response, error reading header line
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response

Ð$pýpð

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




IIS SSL problem - pls help

2001-07-11 Thread Li, William

Hi,

I configured my IIS 5 on Win2k to work with tomcat without any problem.
However, I am getting problems once I configured IIS to use server
certificate.  IIS works fine by itself, but not when tomcat is started.

I read thru the archive relating to this subject, but without much success
in finding a solution.  Pls help.

The problem:
when entering the URL:  https://server/...
Using getRequestURL, I get:  http://server:443/...
All the links I have are also pointing to this address, which results in
nothing works.

Am I missing some configuration?

Thanks,
Bill



Re: Pls Help

2001-04-21 Thread Tan Khim Siang

Thank your response, Russell.  I appreciate that!

Khim
- Original Message -
From: Russell Hammer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 8:11 PM
Subject: Re: Pls Help


 Hi,

 My quick and dirty script for solaris is below:
 Please READ AND MODIFY prior to running!

 -R

 On Fri, Apr 20, 2001 at 05:28:07PM +0800, Tan Khim Siang wrote:
  Hi all, how are you people doing?  I am using mod_jk instead of
mod_jserv.  When I try to start apache using this command:
  apachectl startssl
 
  I have the following error:
 
  Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
  Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not
found
 
 
  Does anybody know whats going on here?
 
  I am on Solaris 7
 
 
  Thank you for your time.
 
 
  Khim

 #!/bin/ksh
 MODJKSRCDIR=/usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3
 APACHE_HOME=/usr/local/apache
 APXS=${APACHE_HOME}/bin/apxs
 TC_HOME=/usr/local/tomcat
 JAVA_HOME=/usr/java

 cd ${MODJKSRCDIR}
 ${APXS} -o
mod_jk.so -DSOLARIS -I../jk -I${JAVA_HOME}/include -I${JAVA_HOME}/include/so
laris -lposix4 -c *.c ../jk/*.c

 cp mod_jk.so  ${APACHE_HOME}/libexec

 print "Include ${TC_HOME}/conf/mod_jk.conf-auto" 
${APACHE_HOME}/conf/httpd.conf

 sh /etc/init.d/apachectl configtest  sh /etc/init.d/apachectl restart







Re: Pls Help

2001-04-20 Thread Russell Hammer

Hi,

My quick and dirty script for solaris is below:
Please READ AND MODIFY prior to running!

-R

On Fri, Apr 20, 2001 at 05:28:07PM +0800, Tan Khim Siang wrote:
 Hi all, how are you people doing?  I am using mod_jk instead of mod_jserv.  When I 
try to start apache using this command:
 apachectl startssl
 
 I have the following error:
 
 Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: 
/usr/local/apache/bin/httpd: fatal: relocation error: file 
/usr/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found
 
 
 Does anybody know whats going on here?
 
 I am on Solaris 7
 
 
 Thank you for your time.
 
 
 Khim

#!/bin/ksh
MODJKSRCDIR=/usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3
APACHE_HOME=/usr/local/apache
APXS=${APACHE_HOME}/bin/apxs
TC_HOME=/usr/local/tomcat
JAVA_HOME=/usr/java

cd ${MODJKSRCDIR}
${APXS} -o mod_jk.so -DSOLARIS -I../jk -I${JAVA_HOME}/include 
-I${JAVA_HOME}/include/solaris -lposix4 -c *.c ../jk/*.c

cp mod_jk.so  ${APACHE_HOME}/libexec

print "Include ${TC_HOME}/conf/mod_jk.conf-auto"  ${APACHE_HOME}/conf/httpd.conf

sh /etc/init.d/apachectl configtest  sh /etc/init.d/apachectl restart




Security - Simple Realm/JDBC Realm - Pls Help

2001-04-16 Thread Suchi sekar


Hi
I am relatively new to tomcat and I hope someone can
help me. I am using JDBC realm to protect parts of my
web app. Everything including authentication was
working great on my stand alone tomcat server.
Recently I moved my web app to apache/tomcat
installation. I configured apache/tomcat as per docs.
Everything is working fine except the authentication
module. The login screen pops up correctly when I try
to access a protected URL. But when I type in the user
name and password it gives me a "404 not found URL
"j_security_check". It seems to be looking under
"web_app_doc_root/"j_security_check". I have checked
the server.xml and the web.xml and find nothing amiss.
Am I missing some class path/required library, Can
someone point me to what I am missing?
Thank You very much
Suchi

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Security - Simple Realm/JDBC Realm - Pls Help

2001-04-16 Thread Suchi sekar

Hi 
  I finally got the Form based authentication to work
with Apache/tomcat. Going through the archives I found
a lot of questions about this problem but no complete
answer, so may be this will help somebody out there.
To get this to work, I did the following:

1. Need to use ajp13. I could not get it to work with
ajp12. So, Add/Uncomment the following in server.xml.
Connector
className="org.apache.tomcat.service.PoolTcpConnector"
  Parameter name="handler" 
  
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
  Parameter name="port" value="8009"/
/Connector   

2. You need to add the JkMount for j_security_check so
that apache knows it exists. Add the following line 
JKMount whatever_pathto_login/j_security_check ajp13


3. Since mod_jk.conf.auto is auto generated the above
addition will be lost if you add it there. So, add the
JKMount line to a static configuration file - easiest
is to copy the mod_jk.conf.auto to another file and
add the JKMount line. 

4. Include this static file in your apache's
httpd.conf. 

5. If you have more than one login page, you might
have to add a JKMount statement for every login page

Suchi


--- Suchi sekar [EMAIL PROTECTED] wrote:
 
 Hi
 I am relatively new to tomcat and I hope someone can
 help me. I am using JDBC realm to protect parts of
 my
 web app. Everything including authentication was
 working great on my stand alone tomcat server.
 Recently I moved my web app to apache/tomcat
 installation. I configured apache/tomcat as per
 docs.
 Everything is working fine except the authentication
 module. The login screen pops up correctly when I
 try
 to access a protected URL. But when I type in the
 user
 name and password it gives me a "404 not found URL
 "j_security_check". It seems to be looking under
 "web_app_doc_root/"j_security_check". I have
 checked
 the server.xml and the web.xml and find nothing
 amiss.
 Am I missing some class path/required library, Can
 someone point me to what I am missing?
 Thank You very much
 Suchi
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



JDBC realm - Pls help

2001-02-21 Thread Suchi Somasekar

Hi
I am a new user of tomcat and I am having trouble getting the JDBC realm
to work. I am using Tomcat 3.2.1 on Windows2000 and I am testing a small
sample application that I wrote. Everything including the user
authentication works great when I use the "SimpleRealm".
But, When I tried to use the JDBC realm the server will not start, it
just dies with no error messages, no log messages.
I have made absolutely no other changes except comment out the
SimpleRealm and include the JDBC realm information to the server.xml and
added the Oracle driver in tomcat/lib. The following is the relevant
portion of my server.xml

!--
RequestInterceptor
className="org.apache.tomcat.request.SimpleRealm"
debug="0" /
--

   RequestInterceptor
className="org.apache.tomcat.request.JDBCRealm"
debug="99"
 driverName="oracle.jdbc.driver.OracleDriver"
  connectionURL="jdbc:oracle:thin:@testserver:1521:TEST3"
connectionName="readonly"
  connectionPassword="nowrites"

userTable="usernames"
userNameCol="username"
userCredCol="password"
 userRoleTable="userroles"
   roleNameCol="rolename" /


Can someone please tell me what I am missing.

Thanks
Suchithra



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




Newbie pls help with error 500

2001-02-06 Thread Richard Pope

I have RH 7.0 and have installed, jre1.3, apache and tomcat.

Apache runs fine, as do the servlet examples on tomcat, but whenever I try
and run a jsp example i get the following!!!

Can someone please tell me what i've done wrong??

Richard 

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


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




Re: Newbie pls help with error 500

2001-02-06 Thread John Golubenko

Ok, i'm not sure for 100%, but I've had a same errors before. All I did, 
is
removed the same .jar's from $CLASSPATH and TOMCAT_HOME/lib/*.jar 
directory,
and from JAVA_HOME/jre/lib/ext/*.jar.
I think that JDK + TOMCAT + $CLASSPATH having same files, get messed up 
for some
reason. Make sure that $CLASSPATH has all stuff that you need. And avoid 
doubling.
But maybe it's not in this case.
Good luck. 
  
 Original Message 

On 2/6/01, 12:33:12 PM, "Richard Pope" [EMAIL PROTECTED] wrote 
regarding Newbie pls help with error 500:


 I have RH 7.0 and have installed, jre1.3, apache and tomcat.

 Apache runs fine, as do the servlet examples on tomcat, but whenever I 
try
 and run a jsp example i get the following!!!

 Can someone please tell me what i've done wrong??

 Richard 

 Error: 500
 Location: /examples/jsp/num/numguess.jsp
 Internal Servlet Error:

 javax.servlet.ServletException: sun/tools/javac/Main
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
79
 7)
   at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
pC
 onnectionHandler.java:210)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)

 Root cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:12
8)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
   at 
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
   at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
   at
 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
Se
 rvlet.java:152)
   at
 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
ja
 va:164)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
79
 7)
   at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
pC
 onnectionHandler.java:210)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)


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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




RE: Newbie pls help with error 500

2001-02-06 Thread Richard Pope

unfortunately my jre/lib/ext directory is empty, so I don't think that this
can be the case. Thanks anyway though.

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2001 20:45
To: [EMAIL PROTECTED]
Subject: Re: Newbie pls help with error 500


Ok, i'm not sure for 100%, but I've had a same errors before. All I did,
is
removed the same .jar's from $CLASSPATH and TOMCAT_HOME/lib/*.jar
directory,
and from JAVA_HOME/jre/lib/ext/*.jar.
I think that JDK + TOMCAT + $CLASSPATH having same files, get messed up
for some
reason. Make sure that $CLASSPATH has all stuff that you need. And avoid
doubling.
But maybe it's not in this case.
Good luck.

 Original Message 

On 2/6/01, 12:33:12 PM, "Richard Pope" [EMAIL PROTECTED] wrote
regarding Newbie pls help with error 500:


 I have RH 7.0 and have installed, jre1.3, apache and tomcat.

 Apache runs fine, as do the servlet examples on tomcat, but whenever I
try
 and run a jsp example i get the following!!!

 Can someone please tell me what i've done wrong??

 Richard 

 Error: 500
 Location: /examples/jsp/num/numguess.jsp
 Internal Servlet Error:

 javax.servlet.ServletException: sun/tools/javac/Main
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
79
 7)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
pC
 onnectionHandler.java:210)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)

 Root cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at

org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:12
8)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
   at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
   at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
   at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
Se
 rvlet.java:152)
   at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
ja
 va:164)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
79
 7)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
pC
 onnectionHandler.java:210)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
   at java.lang.Thread.run(Thread.java:484)


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

NOTICE:  This communication may contain confidential or other privileged
information.  If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information.  Also, please
indicate to the sender that you have received this email in error, and
delete the copy you received.  Any communication that does not relate to
official Columbia business is that of the sender and is neither given nor
endorsed by Columbia.  Thank you.



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




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




Re: Newbie pls help with error 500

2001-02-06 Thread Craig R. McClanahan

You need to add $JAVA_HOME/lib/tools.jar to your CLASSPATH.

Craig McClanahan


Richard Pope wrote:

 unfortunately my jre/lib/ext directory is empty, so I don't think that this
 can be the case. Thanks anyway though.

 -Original Message-
 From: John Golubenko [mailto:[EMAIL PROTECTED]]
 Sent: 06 February 2001 20:45
 To: [EMAIL PROTECTED]
 Subject: Re: Newbie pls help with error 500

 Ok, i'm not sure for 100%, but I've had a same errors before. All I did,
 is
 removed the same .jar's from $CLASSPATH and TOMCAT_HOME/lib/*.jar
 directory,
 and from JAVA_HOME/jre/lib/ext/*.jar.
 I think that JDK + TOMCAT + $CLASSPATH having same files, get messed up
 for some
 reason. Make sure that $CLASSPATH has all stuff that you need. And avoid
 doubling.
 But maybe it's not in this case.
 Good luck.

  Original Message 

 On 2/6/01, 12:33:12 PM, "Richard Pope" [EMAIL PROTECTED] wrote
 regarding Newbie pls help with error 500:

  I have RH 7.0 and have installed, jre1.3, apache and tomcat.

  Apache runs fine, as do the servlet examples on tomcat, but whenever I
 try
  and run a jsp example i get the following!!!

  Can someone please tell me what i've done wrong??

  Richard 

  Error: 500
  Location: /examples/jsp/num/numguess.jsp
  Internal Servlet Error:

  javax.servlet.ServletException: sun/tools/javac/Main
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
 79
  7)
at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
 pC
  onnectionHandler.java:210)
at
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

  Root cause:
  java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
 
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:12
 8)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
  org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
 Se
  rvlet.java:152)
at
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 ja
  va:164)
at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
 79
  7)
at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
 pC
  onnectionHandler.java:210)
at
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

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

 NOTICE:  This communication may contain confidential or other privileged
 information.  If you are not the intended recipient, or believe that you
 have received this communication in error, please do not print, copy,
 retransmit, disseminate, or otherwise use the information.  Also, please
 indicate to the sender that you have received this email in error, and
 delete the copy you received.  Any communication that does not relate to
 official Columbia business is that of the sender and is neither given nor
 endorsed by Columbia.  Thank you.

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

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

Problem-URGENT-Pls Help

2001-01-31 Thread SUCHETA LELE

Hi!
I have a problem. We were using a proxy server for connecting to the 
internet. Now when I disable the proxy server thru inter options in my 
browser and execute some code which does a response.sendredirect to another 
JSp page, the javascript of the current page, the page(now empty), and the 
HTTP 200 OK code is shown on the page alongwith the output of the page 
redirected to. Why is this happening? Please help
Sucheta
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho!

2001-01-05 Thread Daniel Haischt

hello,

it took me also some days to get mod_jk to compile.
unfortunatly mod_jk's behaviour during the compile
process varies between plattform.

freebsd is the only os i got a fully functional
mod_jk.

i think mod_jk needs some major rework, never
had those problems with mod_jserv. that module
even compiles with a single stupid apxs command
line.

so far...

regards

daniel haischt
--

-Ursprüngliche Nachricht-
Von: Phillip Rhodes [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 5. Januar 2001 06:28
An: Daniel Haischt
Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning
psycho!


The FreeBSD jdk is at http://www.freebsd.org/java/dists/12.html

I could not get your make file to work.   I changed things around and got it
to compile without any errors or warnings, but if I tried to include it in
my httpd.conf I would get the following: missing symbol error.

Anyway, don't worry about it because it works now:  I used the following
commands to compile:
/usr/local/sbin/apxs -c -I/usr/local/jdk1.2.2/include -I/usr/local/jdk1.2.2/
include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c
../jk/*.c

gcc -shared -o mod_jk.so *.o


Thanks for your help!


- Original Message -
From: "Daniel Haischt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 04, 2001 1:31 AM
Subject: AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho!


 hello,

 1st step
 

 use the makefile i've attached to this mail.
 the one which comes with the tomcat distribution
 ist crap (sorry, 'bout that). it defines symboles
 as c compiler flags which wont work on freebsd.

 note: i'm talking about freebsd 4.0

 2nd step - configuring the module to work with apache
 ---

 take a look at the mod_jk.conf file i've attached to
 this mail. you can copy the example section and use
 it for your own webapps.

 finally you have to add this to the apache.conf file...

 IfModule mod_jk.c
 Include [MyDestination]/mod_jk.conf
 /IfModule

 3rd step - what happens during compilation
 ---

 first of all - all files will be compiled!
 but u'll get some warnings. don't bother about them,
 for me mod_jk works even with those warnings.

 if you are experienced in c programming,
 you might take a look at the source code to fix
 the warnings.

 4th step - what distribution do i use
 --

 i'm using the 3.3 distribution. this distribution
 doesn't generate the mod_jk.conf-auto.

 finally i'm using the linux-jdk1.2.2 + linux-jdk1.3.0
 freebsd port.

 hope this helps

 bye

 daniel haischt
 --
 p.s. btw - can you send me the url to the
 native freebsd 1.2.2 jdk?

 -Ursprüngliche Nachricht-
 Von: Dave Smith [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 20. Oktober 2000 01:20
 An: [EMAIL PROTECTED]
 Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning
 psycho!


 Phillip,

 Question, did you compile mod_jk.so using the supplied makefile?
 If so, you didn't get the whole thing compiled. The makefile doesn't
 work correctly. So that is the first shibboleth.

 Your config files look pretty good, which is why I ask. The mod_jk.so
 will appear to compile and even load, but it won't work.

 What does the output look like for the compile? Are all the supplied
 files compiling?

 Second, I suggest you try and get things working "out of the box",
 I.e., with the mod_jk.conf-auto. Once things work you can then
 modify, add virtual hosts, etc with more assurance.


 Good Luck (it can be made to work),

 Dave

 - Original Message -
 From: "Phillip C Rhodes" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 03, 2001 12:34 PM
 Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho!


  Well, getting past the point of frustration anyway.  I read all the docs
  and have set Athis up on NT fine with virtual hosting and apache...and
put
  JRun on 4
  different OS's but can't get this install to work.
 
   I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD
  Tomcat is 3.2.1.  JDK is the native 1.2.2 for FreeBSD
 
  I built mod_jk.so from source.
  I start up tomcat.  7001 for http, 8001 for ajp12, and 9001 for ajp13.
I
  can connect to the http port (7001) and jsp's run fine.  However, if I
  invoke a jsp from apache, apache is not sending the request to tomcat.
I
  know it is such a simple problem, but really, I been up all night and
need
  some help before I go crazy:)
 
  I start up apache, no problems.  It works.  No errors in mod_jk.log.  It
  creates the workers.  No errors in servlet.log or jasper.log
 
  Here is some snippets of what I have done.  If you see the error of my
  ways, please feel free to punish me however you see fit.
  Thanks!
 
  My apache file:
 
  LoadModulejk_module  libexec/apache/mod_jk.so
  AddModule m

pls help-freebsd,mod_jk,apache,up all night and turning psycho!

2001-01-03 Thread Phillip C Rhodes

Well, getting past the point of frustration anyway.  I read all the docs
and have set Athis up on NT fine with virtual hosting and apache...and put
JRun on 4
different OS's but can't get this install to work.

 I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD
Tomcat is 3.2.1.  JDK is the native 1.2.2 for FreeBSD

I built mod_jk.so from source. 
I start up tomcat.  7001 for http, 8001 for ajp12, and 9001 for ajp13.  I
can connect to the http port (7001) and jsp's run fine.  However, if I
invoke a jsp from apache, apache is not sending the request to tomcat.  I
know it is such a simple problem, but really, I been up all night and need
some help before I go crazy:)

I start up apache, no problems.  It works.  No errors in mod_jk.log.  It
creates the workers.  No errors in servlet.log or jasper.log

Here is some snippets of what I have done.  If you see the error of my
ways, please feel free to punish me however you see fit.
Thanks!

My apache file:

LoadModulejk_module  libexec/apache/mod_jk.so
AddModule mod_jk.c

# Configure mod_jk
#
JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /usr/local/etc/apache/mod_jk.log
JkLogLevelerror


VirtualHost 216.55.177.74
DocumentRoot /usr/local/www/rhoderunner
ServerName www.rhoderunner.com
JkMount /*.jsp ajp13rhoderunner
JkMount /servlet/* ajp13rhoderunner
/VirtualHost


My worker.properties file:

worker.list=ajp12rhoderunner,ajp13rhoderunner

(left out ajp12rhoderunner worker...on port 8001)
#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13rhoderunner.port=9001
worker.ajp13rhoderunner.host=localhost
worker.ajp13rhoderunner.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13rhoderunner.lbfactor=1


My server.xml file:
(of course I have an AJP12 connector on 8001)
!--enable AJP13 support
  --
Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"

value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
Parameter name="port" value="9001"/
/Connector



Host name="www.rhoderunner.com"
  Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/
/Host






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




Re: pls help-freebsd,mod_jk,apache,up all night and turning psycho!

2001-01-03 Thread Dave Smith

Phillip,

Question, did you compile mod_jk.so using the supplied makefile?
If so, you didn't get the whole thing compiled. The makefile doesn't
work correctly. So that is the first shibboleth.

Your config files look pretty good, which is why I ask. The mod_jk.so
will appear to compile and even load, but it won't work.

What does the output look like for the compile? Are all the supplied
files compiling?

Second, I suggest you try and get things working "out of the box",
I.e., with the mod_jk.conf-auto. Once things work you can then
modify, add virtual hosts, etc with more assurance.


Good Luck (it can be made to work),

Dave

- Original Message -
From: "Phillip C Rhodes" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 12:34 PM
Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho!


 Well, getting past the point of frustration anyway.  I read all the docs
 and have set Athis up on NT fine with virtual hosting and apache...and put
 JRun on 4
 different OS's but can't get this install to work.

  I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD
 Tomcat is 3.2.1.  JDK is the native 1.2.2 for FreeBSD

 I built mod_jk.so from source.
 I start up tomcat.  7001 for http, 8001 for ajp12, and 9001 for ajp13.  I
 can connect to the http port (7001) and jsp's run fine.  However, if I
 invoke a jsp from apache, apache is not sending the request to tomcat.  I
 know it is such a simple problem, but really, I been up all night and need
 some help before I go crazy:)

 I start up apache, no problems.  It works.  No errors in mod_jk.log.  It
 creates the workers.  No errors in servlet.log or jasper.log

 Here is some snippets of what I have done.  If you see the error of my
 ways, please feel free to punish me however you see fit.
 Thanks!

 My apache file:

 LoadModulejk_module  libexec/apache/mod_jk.so
 AddModule mod_jk.c

 # Configure mod_jk
 #
 JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
 JkLogFile /usr/local/etc/apache/mod_jk.log
 JkLogLevelerror


 VirtualHost 216.55.177.74
 DocumentRoot /usr/local/www/rhoderunner
 ServerName www.rhoderunner.com
 JkMount /*.jsp ajp13rhoderunner
 JkMount /servlet/* ajp13rhoderunner
 /VirtualHost


 My worker.properties file:

 worker.list=ajp12rhoderunner,ajp13rhoderunner

 (left out ajp12rhoderunner worker...on port 8001)
 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13rhoderunner.port=9001
 worker.ajp13rhoderunner.host=localhost
 worker.ajp13rhoderunner.type=ajp13
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13rhoderunner.lbfactor=1


 My server.xml file:
 (of course I have an AJP12 connector on 8001)
 !--enable AJP13 support
   --
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"

 value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
 Parameter name="port" value="9001"/
 /Connector



 Host name="www.rhoderunner.com"
   Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/
 /Host






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



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




AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho!

2001-01-03 Thread Daniel Haischt

hello,

1st step


use the makefile i've attached to this mail.
the one which comes with the tomcat distribution
ist crap (sorry, 'bout that). it defines symboles
as c compiler flags which wont work on freebsd.

note: i'm talking about freebsd 4.0

2nd step - configuring the module to work with apache
---

take a look at the mod_jk.conf file i've attached to
this mail. you can copy the example section and use
it for your own webapps.

finally you have to add this to the apache.conf file...

IfModule mod_jk.c
Include [MyDestination]/mod_jk.conf
/IfModule

3rd step - what happens during compilation
---

first of all - all files will be compiled!
but u'll get some warnings. don't bother about them,
for me mod_jk works even with those warnings.

if you are experienced in c programming,
you might take a look at the source code to fix
the warnings.

4th step - what distribution do i use
--

i'm using the 3.3 distribution. this distribution
doesn't generate the mod_jk.conf-auto.

finally i'm using the linux-jdk1.2.2 + linux-jdk1.3.0
freebsd port.

hope this helps

bye

daniel haischt
--
p.s. btw - can you send me the url to the
native freebsd 1.2.2 jdk?

-Ursprüngliche Nachricht-
Von: Dave Smith [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 20. Oktober 2000 01:20
An: [EMAIL PROTECTED]
Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning
psycho!


Phillip,

Question, did you compile mod_jk.so using the supplied makefile?
If so, you didn't get the whole thing compiled. The makefile doesn't
work correctly. So that is the first shibboleth.

Your config files look pretty good, which is why I ask. The mod_jk.so
will appear to compile and even load, but it won't work.

What does the output look like for the compile? Are all the supplied
files compiling?

Second, I suggest you try and get things working "out of the box",
I.e., with the mod_jk.conf-auto. Once things work you can then
modify, add virtual hosts, etc with more assurance.


Good Luck (it can be made to work),

Dave

- Original Message -
From: "Phillip C Rhodes" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 12:34 PM
Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho!


 Well, getting past the point of frustration anyway.  I read all the docs
 and have set Athis up on NT fine with virtual hosting and apache...and put
 JRun on 4
 different OS's but can't get this install to work.

  I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD
 Tomcat is 3.2.1.  JDK is the native 1.2.2 for FreeBSD

 I built mod_jk.so from source.
 I start up tomcat.  7001 for http, 8001 for ajp12, and 9001 for ajp13.  I
 can connect to the http port (7001) and jsp's run fine.  However, if I
 invoke a jsp from apache, apache is not sending the request to tomcat.  I
 know it is such a simple problem, but really, I been up all night and need
 some help before I go crazy:)

 I start up apache, no problems.  It works.  No errors in mod_jk.log.  It
 creates the workers.  No errors in servlet.log or jasper.log

 Here is some snippets of what I have done.  If you see the error of my
 ways, please feel free to punish me however you see fit.
 Thanks!

 My apache file:

 LoadModulejk_module  libexec/apache/mod_jk.so
 AddModule mod_jk.c

 # Configure mod_jk
 #
 JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
 JkLogFile /usr/local/etc/apache/mod_jk.log
 JkLogLevelerror


 VirtualHost 216.55.177.74
 DocumentRoot /usr/local/www/rhoderunner
 ServerName www.rhoderunner.com
 JkMount /*.jsp ajp13rhoderunner
 JkMount /servlet/* ajp13rhoderunner
 /VirtualHost


 My worker.properties file:

 worker.list=ajp12rhoderunner,ajp13rhoderunner

 (left out ajp12rhoderunner worker...on port 8001)
 #
 # Defining a worker named ajp13 and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13rhoderunner.port=9001
 worker.ajp13rhoderunner.host=localhost
 worker.ajp13rhoderunner.type=ajp13
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 worker.ajp13rhoderunner.lbfactor=1


 My server.xml file:
 (of course I have an AJP12 connector on 8001)
 !--enable AJP13 support
   --
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"

 value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
 Parameter name="port" value="9001"/
 /Connector



 Host name="www.rhoderunner.com"
   Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/
 /Host






 --