RE: response.sendRedirect not redirecting

2002-03-17 Thread Brian Adams

add return; just after response.sendR.

-Original Message-
From: Mostafa Al-Mallawani [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 7:12 AM
To: 'Tomcat Users List'
Subject: response.sendRedirect not redirecting


Hi,
I have a problem with redirecting.  In my JSP page I keep checking for
errors, whenever I catch one, I set a variable on the session object and
then forward to an error page; this could happen up to 5 times in one
page.  The weird thing is, redirection works on some pages and does
absolutely nothing on some other pages.  Execution just passes over
response.sendRedirect("../error.jsp"); like it doesn't even exist.
Please help, this is really frustrating.  Thanks.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 08, 2002 3:45 PM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this "IllegalStateException: Response has
a lrea dy been committed" problem?

The exception seems to be occurring because the Home servlet forwards
more
than once (to different locations) - first to home.jsp, then later to
the
Create servlet.
It is definitely the fact that it is forwarding to more than one place,
that
is causing the problem.  I know this because if I call the Login servlet
and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the "central" servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can
see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using <%= blablabla %>.
Could
that be a problem?
This problem is not isolated to the "Create" example.  There are other
activities the user can choose which all follow exactly the same
forwarding
mechanism (except to different servlets), and these give exactly the
same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this "IllegalStateException:
Response
has a lrea dy been committed" problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
"" after manipulating the session can cause this
exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this "IllegalStateException: Response has
a lrea dy been committed" problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example)
from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has
already
been committed
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at
zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at
zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
  

RE: Unix (Solaris) HTML Editor for Apache and Tomcat, Recommendations?

2002-03-10 Thread Brian Adams

netbaens! it will do that and more (java) when you are ready for servlets!
:)
www.netbeans.org


-Original Message-
From: C Cayetano [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 10:25 PM
To: Tomcat Users List
Subject: Unix (Solaris) HTML Editor for Apache and Tomcat,
Recommendations?


All,

Does any have a suggestion of a good unix based HTML editor, similar to
Dreamweaver, that can handle the HTML WYSIWYG interface as well as the
ability to edit code for JSP scripting?

Thanks


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache 1.3.23 +Tomcat 4.0.2

2002-03-03 Thread Brian Adams

Hi David,
There is a two mods you can use.  mod_jk and mod_webapp.
webapp
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/webapp/

jk_mod
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/

also,
http://www.jguru.com/faq/Servlets is a great site for FAQ on tomcat.  Alex
sends us a list of Q&A posts on jguru

B

-Original Message-
From: David Maixner [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 8:50 AM
To: Tomcat Users List
Subject: Apache 1.3.23 +Tomcat 4.0.2


I want to ask where can I find new ducument about "Apache+Tomcat-HOWTO",
because I only found this:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat/Attic/Tomcat%2bApache-HOWTO
?rev=1.4&content-type=text/vnd.viewcvs-markup
and it is too old (for Tomcat 3.1). I need Tomcat runnig under Apache for my
school-work. In that document is only written something about mod_jserv (I
can't find this module) and something about /path/to/tomcat/etc/tomcat.conf
(but this file doesn't exist). Please help me, I need it as soon as
possible.
Thank you very very much for your answers,
David Maixner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Is this error?

2002-03-03 Thread Brian Adams

Hi Again,
this is not normal. looks like you had tomcat already running and you tried
to start it again.
tomcat was trying to bind port 8080 and it was already bound by something(in
this case tomcat). that is why you see your welcome page on 8080.
To stop this error make sure you are only starting tomcat once.

B

-Original Message-
From: Ryuji Yokoyama [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 10:00 AM
To: [EMAIL PROTECTED]
Subject: Is this error?


Hello All!

I just installed Tomcat4.0.3.  When I ran Tomcat.  I got following
exceptions.  However, Tomcat seems working.  I could see welcome page at
localhost:8080.  Is my Tomcat working correctly?  And what does mean these
exceptions?  How can I get rid of these expceptions?  I am using Tomcat
with Apache on Windows.

Thanks in advance.






Catalina.start: LifecycleException: null.open: java.net.BindException:
Address
already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in
use:
JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Default webapp

2002-03-03 Thread Brian Adams

my bad, I geuss it is in common not lib/common
so $CATALINA_HOME/common. is the directory that is used to load
automatically.

sorry for the confusion.
B


-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 10:57 AM
To: Tomcat Users List
Subject: RE: Default webapp


I think this is what lib/common is used for.  during startup tomcat looks in
lib/common and loads these jars into tomcats classpath for use...
I guess there is a setting somewhere that tells tomcat to look into the
lib/common directory so maybe you could extend that or you could sym link
them in the common area
HTH
B

-Original Message-
From: erez avraham [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 9:24 AM
To: [EMAIL PROTECTED]
Subject: Default webapp


Greetings

I'm using Suse 7.1, J2esdk 1.4 and tomcat 3.2.4

I have under lib a folder "jars", and it holds some jars. during the
initialization of tomcat.sh it's running a for loop that goes over ../lib/*
and append all the jars to the classpath.

i guess its not recursive, otherwise it would have capture all the jars
under $TOMCAT_HOME/lib/jars/*.jar
how can i force it to append them jars?

I cant move this folder.

thanks


--
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: Default webapp

2002-03-03 Thread Brian Adams

I think this is what lib/common is used for.  during startup tomcat looks in
lib/common and loads these jars into tomcats classpath for use...
I guess there is a setting somewhere that tells tomcat to look into the
lib/common directory so maybe you could extend that or you could sym link
them in the common area
HTH
B

-Original Message-
From: erez avraham [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 9:24 AM
To: [EMAIL PROTECTED]
Subject: Default webapp


Greetings

I'm using Suse 7.1, J2esdk 1.4 and tomcat 3.2.4

I have under lib a folder "jars", and it holds some jars. during the
initialization of tomcat.sh it's running a for loop that goes over ../lib/*
and append all the jars to the classpath.

i guess its not recursive, otherwise it would have capture all the jars
under $TOMCAT_HOME/lib/jars/*.jar
how can i force it to append them jars?

I cant move this folder.

thanks


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Combining Apache, Tomcat, J2EE

2002-03-03 Thread Brian Adams

if the j2ee a container (app server)?
As far as tomcat goes there are two chioces you have, mod_jk (older)
mod_webapp(newer).
which you pick is up to you. the Apache mods are in you apache build and
there is a readme doc in the mod directory on how to setup the mod.
can't help with the "j2ee servers" that are running.
B

-Original Message-
From: Neal Brinn [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: Combining Apache, Tomcat, J2EE


I've manage to install Apache (with PHP), Tomcat 4, and J2EE 1.3 on Solaris
8.  Apache spawns one server, Tomcat spawns another, and J2EE spawns three
servers.  Is there anyway I can combine these five servers on the Apache
server?  This way I can use one single address to process php, jsp, and java
servlets.

Thanks,
Neal


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Is this error?

2002-03-03 Thread Brian Adams

Hi,
this is not normal. looks like you had tomcat already running and you tried
to start it again.
tomcat was trying to bind port 8080 and it was already bound by something(in
this case tomcat). that is why you see your welcome page on 8080.
To stop this error make sure you are only starting tomcat once.

B

-Original Message-
From: Ryuji Yokoyama [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 10:16 AM
To: [EMAIL PROTECTED]
Subject: Is this error?


Hello All!

I just installed Tomcat4.0.3.  When I ran Tomcat.  I got following
exceptions.  However, Tomcat seems working.  I could see welcome page at
localhost:8080.  Is my Tomcat working correctly?  And what does mean these
exceptions?  How can I get rid of these expceptions?  I am using Tomcat
with Apache on Windows.

Thanks in advance.






Catalina.start: LifecycleException: null.open: java.net.BindException:
Address
already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in
use:
JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Can't make WebAppConectionWork

2002-03-01 Thread Brian Adams

Hi Daniel,
1. have you looked at the logs on apache and tomcat?
2. FYI, start tomcat first then start apache
3. there may be a bug that is affecting you (not sure)
when you restart try
http://localhost/examples/jsp/num/numguess.jsp

there are binary images(jpg) that would crash the web_app mod if you are
suffering from this bug.


B

-Original Message-
From: Daniel R Thomas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:36 PM
To: [EMAIL PROTECTED]
Subject: Can't make WebAppConectionWork


I've been trying to install tomcat4 onto my apache server today(windows
98).  I downloaded the executable installed and installed tomcat.  I then
ran it, and it worked at port 8080 of my machine.  I then downloaded the
mod_webapp package and installed it as per its instructions.  I then added
the following 4 lines to my httpd.conf file
LoadModule webapp_module modules/mod_webapp.so
AddModule_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

to attemp to access the examples directory in the tomcat intallation
folder.  after restarting both servers, I am gettting a 404 on
myServer/examples/  is there something I'm forgetting to do?
Thanks


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Is this possible?

2002-03-01 Thread Brian Adams

yep you can do that.
I would put apache web server as the front end then use mod_jk or mod_webapp
as the connector to the tomcat instance.
Are you going to have mary login?
easy stuff, no problem.
have fun.
B

-Original Message-
From: Michael Teter [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: Is this possible?


Hello.

I would like to be able to create something like the
following example, and I need to know if this is
feasible with Tomcat...

Assume I have the domain blah.com, and I would like to
be able to create virtual names like "mary.blah.com",
"john.blah.com", "michael.blah.com", etc.

When someone goes to mary.blah.com, I would like the
pages they see to be dynamically generated, something
like this:


Welcome Mary!  Based on your ranking, you can do the
following actions:
  _View Production Reports_
  _Edit Report Profiles_


(or when someone goes to john.blah.com)

Welcome John!  Based on your ranking, you can do the
following actions:
  _Create Accounts_
  _Edit Accounts_
  _Input Production Numbers_



I wouldn't know how to classify my experience with
Tomcat/Servlets/JSP, but if this helps tailor the
answers, I'm fairly comfortable using the Model2
paradigm with JSP/Serlets and beans to generate fairly
complicated interfaces.  However, what I'm wanting to
do now seems well beyond my current knowledge, so any
pointers would be most welcome.

Much thanks,
Michael


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4, just a simple question.

2002-03-01 Thread Brian Adams

nope! no container.
some people use JBoss (http://www.jboss.org)
B

-Original Message-
From: Gustavo Mejia [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 12:18 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4, just a simple question.


Hi everyone,

I have a very simple question, do you know how Tomcat 4, manage the
EJBs, do you know if this has a EJB container ??

Thanks a lot !

--
Saludos

Gustavo Mejía Mora
INFOTEC
Tel: +(55) 5 624 28 00
Ext: 253 / 220

-

"We should take care not to make the intellect our god; it has, of
course,
powerful muscles, but no personality." - Albert Einstein



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread Brian Adams

this snippet--
BindException:
Address (at that port) is already in use.
Looks like it may be the port where your mod_webapp is running.
check all your ports and that tomcat is configured for and make certain that
there is not something already running.
ports:
8080
8009
8008
I think are some of the default ports use by tomcat.
look in your conf/server.xml file and search through it for the word port.
should be several instances of this usage.
FYI, netstat is the command used to check for port usage (in case you don't
know). 'netstat -a' should give you a full output of all your ports in use
(Bound).
B



--
means that the address is already in use

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:54 AM
To: Tomcat Users List
Subject: RE: Stupid Tomcat Question (NEWBIE!)




Thanks for your words of encouragement.  I've deleted all the files and
restarted the service, and the following appears in catalina.out.  Does it
give
any clues, and what do I do to resolve the problem?

Catalina.start: LifecycleException:  Error creating server socket:
java.net.BindException: Address already in use
LifecycleException:  Error creating server socket:  java.net.BindException:
Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java)
at org.apache.catalina.startup.Catalina.start(Catalina.java)
at org.apache.catalina.startup.Catalina.execute(Catalina.java)
at org.apache.catalina.startup.Catalina.process(Catalina.java)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java)

at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java)
at org.apache.catalina.startup.Catalina.start(Catalina.java)
at org.apache.catalina.startup.Catalina.execute(Catalina.java)
at org.apache.catalina.startup.Catalina.process(Catalina.java)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)





Brian Adams <[EMAIL PROTECTED]> on 25/02/2002 12:29:50

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:(bcc: James Reid/DPT-LTD)

Subject:  RE: Stupid Tomcat Question (NEWBIE!)




freaken look at them!
This ain't yo mommas listserve!
delete them all start it once then see what files are generated.
open them and READ!


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:24 AM
To: Tomcat Users List
Subject: RE: Stupid Tomcat Question (NEWBIE!)




The following files all appear under my var/tomcat4/logs directory.  Which
file(s) are of interest.?

catalina_log.2002-01-18.txt
www.dpt-ltd.co.uk_access_log.2002-02-22.txt
catalina_log.2002-02-07.txt
www.dpt-ltd.co.uk_examples_log.2002-01-18.txt
catalina_log.2002-02-13.txt
www.dpt-ltd.co.uk_examples_log.2002-02-07.txt
catalina_log.2002-02-19.txt
www.dpt-ltd.co.uk_examples_log.2002-02-13.txt
catalina_log.2002-02-20.txt
www.dpt-ltd.co.uk_examples_log.2002-02-14.txt
catalina_log.2002-02-21.txt
www.dpt-ltd.co.uk_examples_log.2002-02-15.txt
catalina_log.2002-02-22.txt
www.dpt-ltd.co.uk_examples_log.2002-02-19.txt
catalina_log.2002-02-25.txt
www.dpt-ltd.co.uk_examples_log.2002-02-20.txt
catalina.out
www.dpt-ltd.co.uk_examples_log.2002-02-21.txt
localhost_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_examples_log.2002-02-22.txt
localhost_examples_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-01-18.txt
localhost_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-07.txt
www.dpt-ltd.co.uk_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-13.txt
www.dpt-ltd.co.uk_access_log.2002-02-07.txt
www.dpt-ltd.co.uk_log.2002-02-19.txt
www.dpt-ltd.co.uk_access_log.2002-02-13.txt
www.dpt-ltd.co.uk_log.2002-02-20.txt
www.dpt-ltd.co.uk_access_log.2002-02-19.txt
www.dpt-ltd.co.uk_log.2002-02-21.txt
www.dpt-ltd.co.uk_access_log.2002-02-20.txt
www.dpt-ltd.co.uk_log.2002-02-22.txt
www.dpt-ltd.co.uk_access_log.2002-02-21.txt





Brian Adams <[EM

RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread Brian Adams

freaken look at them!
This ain't yo mommas listserve!
delete them all start it once then see what files are generated.
open them and READ!


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:24 AM
To: Tomcat Users List
Subject: RE: Stupid Tomcat Question (NEWBIE!)




The following files all appear under my var/tomcat4/logs directory.  Which
file(s) are of interest.?

catalina_log.2002-01-18.txt
www.dpt-ltd.co.uk_access_log.2002-02-22.txt
catalina_log.2002-02-07.txt
www.dpt-ltd.co.uk_examples_log.2002-01-18.txt
catalina_log.2002-02-13.txt
www.dpt-ltd.co.uk_examples_log.2002-02-07.txt
catalina_log.2002-02-19.txt
www.dpt-ltd.co.uk_examples_log.2002-02-13.txt
catalina_log.2002-02-20.txt
www.dpt-ltd.co.uk_examples_log.2002-02-14.txt
catalina_log.2002-02-21.txt
www.dpt-ltd.co.uk_examples_log.2002-02-15.txt
catalina_log.2002-02-22.txt
www.dpt-ltd.co.uk_examples_log.2002-02-19.txt
catalina_log.2002-02-25.txt
www.dpt-ltd.co.uk_examples_log.2002-02-20.txt
catalina.out
www.dpt-ltd.co.uk_examples_log.2002-02-21.txt
localhost_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_examples_log.2002-02-22.txt
localhost_examples_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-01-18.txt
localhost_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-07.txt
www.dpt-ltd.co.uk_access_log.2002-01-18.txt
www.dpt-ltd.co.uk_log.2002-02-13.txt
www.dpt-ltd.co.uk_access_log.2002-02-07.txt
www.dpt-ltd.co.uk_log.2002-02-19.txt
www.dpt-ltd.co.uk_access_log.2002-02-13.txt
www.dpt-ltd.co.uk_log.2002-02-20.txt
www.dpt-ltd.co.uk_access_log.2002-02-19.txt
www.dpt-ltd.co.uk_log.2002-02-21.txt
www.dpt-ltd.co.uk_access_log.2002-02-20.txt
www.dpt-ltd.co.uk_log.2002-02-22.txt
www.dpt-ltd.co.uk_access_log.2002-02-21.txt





Brian Adams <[EMAIL PROTECTED]> on 25/02/2002 12:21:28

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:(bcc: James Reid/DPT-LTD)

Subject:  RE: Stupid Tomcat Question (NEWBIE!)




Look in the logs directory and tell us what is happening.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:17 AM
To: [EMAIL PROTECTED]
Subject: Stupid Tomcat Question (NEWBIE!)




Hi,

I've recently downloaded and installed Tomcat 4.0.1 onto my Apache webserver
and
everything seemed to be working ok for a week or so...

However, the problem now is that Tomcat appears to have died on me!  Whenver
I
try to view

http://www.dpt-ltd.co.uk:8180/index.html

then nothing happens.  My  browser just sits there trying to open the page,
but
strangely it never times out.  I've tried stopping and restarting the Tomcat
service several times but it doesn't make any difference.  I've also tried
using
 port 8080 and again it doesn't help.

I know this is a very vague question, but do you have any idea what could be
wrong?  Is there any debugging I could do other than continually restarting
the
service?  Are there any log files I could look at which might help?  It
seems
strange that this worked fine up until recently and as far as I know I've
made
no
changes whatsoever to my Tomcat configuration.

Sorry if this is a dumb question but I'm new to all this.  Please reply
off-list
 if at all possible.

Thanks in advance.



--
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: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread Brian Adams

Look in the logs directory and tell us what is happening. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:17 AM
To: [EMAIL PROTECTED]
Subject: Stupid Tomcat Question (NEWBIE!)




Hi,

I've recently downloaded and installed Tomcat 4.0.1 onto my Apache webserver
and
everything seemed to be working ok for a week or so...

However, the problem now is that Tomcat appears to have died on me!  Whenver
I
try to view

http://www.dpt-ltd.co.uk:8180/index.html

then nothing happens.  My  browser just sits there trying to open the page,
but
strangely it never times out.  I've tried stopping and restarting the Tomcat
service several times but it doesn't make any difference.  I've also tried
using
 port 8080 and again it doesn't help.

I know this is a very vague question, but do you have any idea what could be
wrong?  Is there any debugging I could do other than continually restarting
the
service?  Are there any log files I could look at which might help?  It
seems
strange that this worked fine up until recently and as far as I know I've
made
no
changes whatsoever to my Tomcat configuration.

Sorry if this is a dumb question but I'm new to all this.  Please reply
off-list
 if at all possible.

Thanks in advance.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4 and Apache

2002-02-24 Thread Brian Adams

Kristian,
Here are my files... look at them and see if you can find yours..
I am not running Virtual hosts but I have hooks into both mod_jk and
mpd_webapp (currently I only use mod_jk).
see if this helps.
I think I am using examples and a webapp named bbb.
Goodluck,
B

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 and Apache


> I'm treading in quicksand here. But did you add the JkMount statements? I
> was getting the a similar error "Can't locate API module
> structure..." with
> mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
> Maybe I'm wrong. Just trying to help :-)

No, that's not the problem either - I get the "Can't locate..." error with
mod_jk, I get "Invalid virtual host name" errors with mod_webapp.

Thanks anyway =)
Kristian


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 











  


  
  

  

  

  
  









   


















  
  

  
  

  

  

  

  

  

  

  
  

















  
  
  
		  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  

	 
   
  		

	
  



  

  


  













  


  











workers.properties
Description: Binary data


httpd.conf
Description: Binary data

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: JSP Taglib Explanation please

2002-02-24 Thread Brian Adams

Pavel I have tons of taglibs on my app and it does not go through it twice.
it actually runs the code twice?


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 9:21 AM
To: Tomcat User
Subject: JSP Taglib Explanation please


Hello everyone,

Is there anyone here that helped develop the JSP Tag concept
that could explain why JSP taglib bodies go through their 
bodies twice (going through doStartTag, doAfterBody and doEndTag twice)?

This would be extremely helpful for me so I can understand
how to proceed with certain applications.

Thank you

Paul

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: New bie problem about Tomcat

2002-02-23 Thread Brian Adams

the service in not supposed to be called at init load time.  notice the
request response parameters in it.  this is called by http get or post
don't know why it loads twice..
B

-Original Message-
From: Krishna Bhamidi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: New bie problem about Tomcat


Hi,

I have a problem about a servlet that I want to start on load of Tomcat. I
included into the web.xml for the application under the on-load.

The init method of the servlet is called two times, but not the service
method of the servlet. I am not sure why the init method should get called 2
times?

We are using Tomcat 4.0 on Apache. What do we do to execute a servlet on
web-server startup?

Krishna.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4 and Apache

2002-02-23 Thread Brian Adams

Hi Kristian,
I think I see the problem.
you do NOT need the line:
AddModule mod_jk.c


I have seen this error before and I am no connection geek but I thought this
line was not needed for mod_jk and I cchecked with my config and myne does
not have it either.

Goodluck,
brian

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and Apache


Hi everyone,

I'm sorry that I'm probably the 100th person to ask this, but I have
searched google groups and the archives of this mailing list, both of which
failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.

I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
gives me the following error:
Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
Can't locate API module structure `mod_jk' in file
c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
wurde nicht gefunden:

The last bit translates to "The specified procedure was not found". The
relevant lines in my httpd.conf are
LoadModule mod_jk modules/mod_jk.dll
AddModule mod_jk.c

I had more luck with mod_webapp, which loads properly using these lines:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008

But when I add either (or both) of these lines
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

apache -t gives me the following error:
C:\Programme\Wamp\Apache>apache -t
Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
Invalid virtual host name

where in line 256 is either one (or the first of)
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

I have found out that other users had this problem when their ServerName
directive was commented out in their httpd.conf, and I have tried that
already, without luck.

Does anybody have an idea how to solve this problem?

Thank you very much
Kristian


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_jk for Windows -- HELP

2002-02-21 Thread Brian Adams

going to bed but here is my windows 2k tomcat 4.0.1 and apache 1.3.2ish
mod_jk conf files.
goodluck
B


-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 10:24 PM
To: Tomcat Users List
Subject: mod_jk for Windows -- HELP


I'm using Apache 1.3.20 and Tomcat 4.0.2. I've tried
my level best to make mod_webapp work for me. But I
had very little luck to make it run, Apache couldn't
find many static files!

I heard mod_jk is another (probably, a better) option.
Can some body direct me to a link where I can find the
appropriate documentation of mod_jk for Windows.

Thanks in advance.

-Surya

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




workers.properties
Description: Binary data









  


  
  

  

  

  
  









   


















  
  

  
  

  

  

  

  

  

  

  
  

















  
  
  
		  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  

	 
   
  		

	
  



  

  


  













  


  











httpd.conf
Description: Binary data

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: What should I do?

2002-02-21 Thread Brian Adams

number 2.  
I had problems with tomcat locking up and I changed to jk_mod.
I have been running for months now. :)
goodlick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 12:12 PM
To: [EMAIL PROTECTED]
Subject: What should I do?


I've had big problems with my project and found that when I alleviate apache
and mod-webapp, the problem goes away (using the browser to talk to tomcat
on port 8080).  So my question is what to do now.

Bearing in mind that my server runs win2k, should I:
1) Continue without an HTTP frontend to Tomcat?  Is that bad?
2) Use a different connector besides mod-webapp?
3) use a different HTTP frontend such as IIS with another
connector/redirector?

The problem I'm trying to solve is the "crashing" of apache or mod-webapp
when it gets 2 simultaneous requests.
-- 




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

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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat as a service...

2002-02-19 Thread Brian Adams

what was the output?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 8:09 AM
To: Tomcat Users List
Subject: RE: Tomcat as a service...




No, I didnt know about that flag.  I tried it though, and it doesnt seem to
help anything.
 -Kevin





Brian Adams <[EMAIL PROTECTED]> on 02/19/2002 08:57:21 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Tomcat as a service...


Kevin, have you set the service to "Allow service to interact with
desktop"?
it is on the "Log On" panel if you right click your catalina service in the
services window.  this may help see what the heck windows is doing.
Sorry if you've done this already...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 7:51 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service...



One other thing... I have tried now, every now and then over
the past 6 months to get Tomcat to run as an NT service.
I have NEVER been sucessful and I have tried 4 or 5 different
ways.  I kept thinking that there was some silly bug that was going
to be fixed in the next release.  Well, I just installed the Tomcat 4.0.2
exe file, and during the install, checked the option to install as NT
service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
set properly, and reboot, and ONCE AGAIN, no tomcat service.
The service is listed in the Admin Services console as being
automatically started, but it wont actually start.  When I try to start it
manually from the services panel, I get this message, "Could not
start Tomcat on local computer.  The service did not return an error.
Could be windows internal error or internal error."  If there was no error
returned, then why WONT IT START   And if there was an error,
why not REPORT IT.  How about telling the user what is wrong so that
he/she can fix it.  Duh. Sorry to be so brash, but it has been this way
for a long time and noone seems to care about fixing it.
 -Kevin Schmidt
 Cincinnati, OH




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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







--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



--
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: Tomcat as a service...

2002-02-19 Thread Brian Adams

Kevin, have you set the service to "Allow service to interact with desktop"?
it is on the "Log On" panel if you right click your catalina service in the
services window.  this may help see what the heck windows is doing. 
Sorry if you've done this already...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 7:51 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service...



One other thing... I have tried now, every now and then over
the past 6 months to get Tomcat to run as an NT service.
I have NEVER been sucessful and I have tried 4 or 5 different
ways.  I kept thinking that there was some silly bug that was going
to be fixed in the next release.  Well, I just installed the Tomcat 4.0.2
exe file, and during the install, checked the option to install as NT
service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
set properly, and reboot, and ONCE AGAIN, no tomcat service.
The service is listed in the Admin Services console as being
automatically started, but it wont actually start.  When I try to start it
manually from the services panel, I get this message, "Could not
start Tomcat on local computer.  The service did not return an error.
Could be windows internal error or internal error."  If there was no error
returned, then why WONT IT START   And if there was an error,
why not REPORT IT.  How about telling the user what is wrong so that
he/she can fix it.  Duh. Sorry to be so brash, but it has been this way
for a long time and noone seems to care about fixing it.
 -Kevin Schmidt
 Cincinnati, OH




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: resource files not found in /WEB-INF/classes

2002-02-13 Thread Brian Adams

thanks Craig that is a much cleaner way!  I am adding this to my app and to
my "helpful hints" folder :)
B

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 10:15 PM
To: Tomcat Users List
Subject: Re: resource files not found in /WEB-INF/classes


See below.

On Tue, 12 Feb 2002, Michael Kintzer wrote:

> Date: Tue, 12 Feb 2002 18:56:38 -0800
> From: Michael Kintzer <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
> Subject: resource files not found in /WEB-INF/classes
>
> Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
> webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
> associated resource files required for an application "mywebapp".  I have
> placed a properties file "config.properties" in my /WEB-INF/classes/
> directory but when I try to access it using this code:
>
> package com.myco.myproj
>
> .. imports and other code...
>
> try
> {
>   File f = new File("config.properties");
>   FileInputStream fis = new FileInputStream(f);
>   Properties prop = new Properties();
>   prop.load(fis);
> }
> catch (Exception e)
> {
>   e.printStackTrace();
> }
>
> I continually get java.io.FileNotFoundException: config.properties (The
> system cannot find the file specified).
>
> I even tried adding a context element in my conf/server.xml file for my
web
> app like so:
>
> 
>/>
>
> but that had no effect.I've searched through all the documentation I
> could find and it all seems to indicate that any resource files in
> /WEB-INF/classes should be detectable.  Any ideas on what I may be doing
> incorrectly would be greatly appreciated.
>
> Thanks,
>
>
> Michael Kintzer

There are two issues here that I'd like to address:

* How do I make File I/O work for this kind of thing?

* What's a more portable way to do this?

For the first answer, the thing you have to remember is that relative
pathnames like "config.properties" are resolved, by the file i/o routines
of Java or any other language, against the current working directory of
the application you are running (Tomcat, in this case).  You can't count
on *anything* about where that really is, because it depends on how Tomcat
is initially started (and which version you are running).  BUT, you can do
this right if you compute the path relative to the base directory of your
webapp, like this:


File docBase = new File(getServletContext().getRealPath());
File f = new File(docBase, "/WEB-INF/classes/config.properties");
FileInputStream fis = new FileInputStream(f);

Will this work?  Yes -- but only sometimes.  What happens if you configure
Tomcat to run your webapp directly from a WAR file (or you need to migrate
to an application server that does not support running webapps from
unpacked directories)?  Then, you are in trouble, because getRealPath()
will return null.

There are two approaches that work just fine at this point:

* Use ServletContext.getResourceAsStream().  This call is guaranteed
  to work on any servlet container, regardless of how it internally
  represents your webapp:

String path = "/WEB-INF/classes/config.properties";
InputStream is =
  getServletContext().getResourceAsStream(path);

  This call works because the context-relative path is resolved by
  the container -- and it's required to work in all circumstances.

  Note that you can even use this approach to read things like the
  web.xml file at run time, if you wanted to:

InputStream is =
  getServletContext().getResourceAsStream("/WEB-INF/web.xml");

  Struts needs to do this (as an example use case) because it needs to
  know what servlet mappings you are using, and there is nothing in the
  Servlet API that makes this information available to a webapp.

* The fact that you are willing to put this file into the /WEB-INF/classes
  subdirectory means that you can rely on a similarly-named method
  provided by the JDK:

String path = "config.properties";
InputStream is =
  this.getClass().getClassLoader().getResourceAsStream(path);

  This call works because it uses the capability of JDK class loaders
  to find resources that are included in the class path of your web
  application -- even if they are inside a JAR file.  It is particularly
  useful for configuring class libraries that might also be used outside
  of a web application environment, but it works here as well because the
  "/WEB-INF/classes" directory is always made visible to the class loader
  for your web application.

Bottom line: *PLEASE* avoid the use of file I/O to access
resources inside your web applications.  This is only going to cause you
portability grief later on.  You should get in the habit, from the very
beginning, of using the APIs that are made available to access
inside-the-webapp resources in a portable way.

Crai

RE: resource files not found in /WEB-INF/classes

2002-02-12 Thread Brian Adams

stop start the tomcat process and truy again :)
if (works)
 unitTestingPassed = true;
else
 unitTestingPassed = false;

:)


-Original Message-
From: Michael Kintzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 9:22 PM
To: 'Tomcat Users List'
Subject: RE: resource files not found in /WEB-INF/classes


Thanks Brian.  I went through and tried all of:

File f = new File("../webapps/mywebapp/WEB-INF/classes/config.properties");
File f = new File("webapps/mywebapp/WEB-INF/classes/config.properties");
File f = new File("mywebapp/WEB-INF/classes/config.properties");
File f = new File("WEB-INF/classes/config.properties");
File f = new File("classes/config.properties");
File f = new File("config.properties");

on separate iterations.  The first five threw exceptions, and the last one
worked, which blew my mind, since that was what I had originally (and it
wasn't working, hence the original email).   Something getting cached
somewhere?  I use Tomcat Manager to reload the application each time I
redeploy the files.

It's working, but I don't trust it to stay that way.

Michael

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:02 PM
To: Tomcat Users List
Subject: RE: resource files not found in /WEB-INF/classes


try putting

File f = new
File("webapps/mywebapp/WEB-INF/classes/config.properties");

or
File f = new
File("../webapps/mywebapp/WEB-INF/classes/config.properties");
(in case path is in bin from startup)

BTW, I put mine in WEB-INF only not in classesbut that is me and I am
not a standard. :)




-Original Message-
From: Michael Kintzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 8:57 PM
To: Tomcat Users List (E-mail)
Subject: resource files not found in /WEB-INF/classes


Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
associated resource files required for an application "mywebapp".  I have
placed a properties file "config.properties" in my /WEB-INF/classes/
directory but when I try to access it using this code:

package com.myco.myproj

.. imports and other code...

try
{
File f = new File("config.properties");
FileInputStream fis = new FileInputStream(f);
Properties prop = new Properties();
prop.load(fis);
}
catch (Exception e)
{
e.printStackTrace();
}

I continually get java.io.FileNotFoundException: config.properties (The
system cannot find the file specified).

I even tried adding a context element in my conf/server.xml file for my web
app like so:




but that had no effect.I've searched through all the documentation I
could find and it all seems to indicate that any resource files in
/WEB-INF/classes should be detectable.  Any ideas on what I may be doing
incorrectly would be greatly appreciated.

Thanks,


Michael Kintzer




--
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: resource files not found in /WEB-INF/classes

2002-02-12 Thread Brian Adams

try putting

File f = new File("webapps/mywebapp/WEB-INF/classes/config.properties");

or
File f = new File("../webapps/mywebapp/WEB-INF/classes/config.properties");
(in case path is in bin from startup)

BTW, I put mine in WEB-INF only not in classesbut that is me and I am
not a standard. :)




-Original Message-
From: Michael Kintzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 8:57 PM
To: Tomcat Users List (E-mail)
Subject: resource files not found in /WEB-INF/classes


Tomcat 4.0.1: According to tomcat-docs/appdev/deployment.html,
webapps/mywebapp/WEB-INF/classes/ is the appropriate location for any
associated resource files required for an application "mywebapp".  I have
placed a properties file "config.properties" in my /WEB-INF/classes/
directory but when I try to access it using this code:

package com.myco.myproj

.. imports and other code...

try
{
File f = new File("config.properties");
FileInputStream fis = new FileInputStream(f);
Properties prop = new Properties();
prop.load(fis);
}
catch (Exception e)
{
e.printStackTrace();
}

I continually get java.io.FileNotFoundException: config.properties (The
system cannot find the file specified).

I even tried adding a context element in my conf/server.xml file for my web
app like so:




but that had no effect.I've searched through all the documentation I
could find and it all seems to indicate that any resource files in
/WEB-INF/classes should be detectable.  Any ideas on what I may be doing
incorrectly would be greatly appreciated.

Thanks,


Michael Kintzer




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: File upload problem

2002-02-12 Thread Brian Adams

yes, well if you can't fix the bug try two things:
1. upgrade to 4.0.2 and try again
2. switch to mod_jk instead of mod_webapp.
goodluck,
B

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:01 PM
To: Tomcat Users List
Subject: Re: File upload problem


Hi:

If I upload the files running tomcat stand alone all work fine. That's the
reason to think is a connector problem, but I don't  know how can I solve it
or if exists a version of the connector that the repair the bug. I need
help.

Thanks.
-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España



- Original Message -----
From: "Brian Adams" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 8:32 PM
Subject: RE: File upload problem


> it can be a bug or not...
> If you have tomcat running in stand alone(localhost:8080) as well as
webapp
> you can test the servlet by connecting directly to tomcat and see if it
> works if it does, then you are probably affected by a webapp bug(the one
you
> read about)
> B
>
> -Original Message-
> From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 1:36 PM
> To: Tomcat Users
> Subject: File upload problem
>
>
> Hi all:
>
> I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
> MultipartWrapper Class to parse multipart-form-data encoding. The problem
is
> that the next exception is thrown when I try to upload a file:
>
> java.io.IOException: unexpected end of part
> at
>
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
> at
>
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)
>
> Sometimes the file is uploaded but it's broken because the size isn't
well,
> it less than the original. I have read in the list that there was a bug
int
> the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
> tomcat and apache. Is this a bug? How can I solve the problem?
>
> Than you all.
>
> -
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
>
>
>
>
> --
> 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: File upload problem

2002-02-12 Thread Brian Adams

it can be a bug or not...
If you have tomcat running in stand alone(localhost:8080) as well as webapp
you can test the servlet by connecting directly to tomcat and see if it
works if it does, then you are probably affected by a webapp bug(the one you
read about)
B

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:36 PM
To: Tomcat Users
Subject: File upload problem


Hi all:

I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
MultipartWrapper Class to parse multipart-form-data encoding. The problem is
that the next exception is thrown when I try to upload a file:

java.io.IOException: unexpected end of part
at
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
at
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)

Sometimes the file is uploaded but it's broken because the size isn't well,
it less than the original. I have read in the list that there was a bug int
the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
tomcat and apache. Is this a bug? How can I solve the problem?

Than you all.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: RE: database connect to db overr mod_webapp - possible bug

2002-02-12 Thread Brian Adams

Well, I can't tell you if it is a mod_webapp bug or not but if it was e I
would switch to mod_jk instead of mod_webapp and try it again.  mod_webapp
has had other problems but I hae not seen this one (not that I have really
looked).  can you switch to mod_jk and try it again?
B

-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:40 AM
To: Tomcat Users List
Subject: Re: RE: database connect to db overr mod_webapp - possible bug


Hi

>can we see the errors?

Wow - fast response. Thank-you. Iactually just noticed that someone else
found the exact same thing. He got no replies.

http://groups.google.com/groups?q=mod_webapp+JDBC&hl=en&selm=7774774d.010919
1826.5240aa0%40posting.google.com&rnum=1

On the web page,I see this;

java.lang.NullPointerException
at org.apache.jsp.ism$jsp._jspService(ism$jsp.java:123)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)


The errors  in the apache log file in $CATALINA_HOME/logs are as follows:

2002-02-12 13:10:16 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp
 threw exception
java.lang.NullPointerException
at
org.apache.jsp.ismResult_0005fn$jsp._jspService(ismResult_0005fn$jsp.
java:124)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
82)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)


Thanks


Chris

>
>-Original Message-
>From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 12, 2

RE: database connect to db overr mod_webapp - possible bug

2002-02-12 Thread Brian Adams

can we see the errors?

-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:26 AM
To: Tomcat Users List
Subject: database connect to db overr mod_webapp - possible bug


Hi

I have a JSP which,when called direct into Tomcat (4.0.1) on Linux works
fine. It connects to a database, retrieves results, fine.

http://host_a:8080/ism/JSP/file.jsp?param1=value¶m2=value

"host_a" is a vrtual host defined in my apache config and in the DNS servers
on our LAN.

In the virtual host setting of Apache, I have 

WebAppConnection coni warp localhost:8008
WebAppDeploy ism   coni/ism/

Static pages,servlets and JSP are fine across mod_webapp. However, when I
try my database JSP, I get errors. This code is in the JSP when I go through
8080 and it WORKS, it connects to the DB and all goes 
OK. So my configuration of the jdbc/IsmDB must be OK. I created the JDBC
datasources as outlined at the Tomcat website.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
javax.sql.DataSource ds = (javax.sql.DataSource)envCtx.lookup("jdbc/IsmDB");
Connection conn = ds.getConnection();

However, when I connect to the page via Apache, the third line fails the
connection to the database fails. I replace those 4 lines with the following
and it works.

String sConn   = "jdbc:oracle:thin:@ip:port:sid"; // connnection string
DriverManager.registerDriver( new oracle.jdbc.driver.OracleDriver() );
Connection conn=DriverManager.getConnection( sConn, "user", "password" );
Statement stmt= conn.createStatement();

So have I missed some configuration to make the database connection work
over mod_webapp or is this a bug ?

Thanks


Chris



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JDBC

2002-02-11 Thread Brian Adams

cool! free drink...
:)


-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 7:06 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC



sorted!

thanks brian, i'll buy u a drink if i ever go to the states!!
cheers

>From: Brian Adams <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: JDBC
>Date: Mon, 11 Feb 2002 06:53:58 -0600
>
>where did you put your jdbc driver jar?  mine is named jdbc7.0-1.2.jar and
>it is in my tomcat's common\lib directory.
>B
>
>-Original Message-
>From: vinny patel [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 11, 2002 6:48 AM
>To: [EMAIL PROTECTED]
>Subject: RE: JDBC
>
>
>this is the error message
>
>**
>Cant find database Driver class: java.lang.ClassNotFoundException:
>postgresql.Driver
>SQL Exception java.sql.SQLException: No suitable driver
>**
>
>and heres the coding
>
>*
>import java.io.*;
>import java.sql.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>   public class hotellist extends HttpServlet
>   {
>public void doGet(HttpServletRequest req,
>  HttpServletResponse res)
>throws ServletException, IOException
>{
>  res.setContentType("text/html");
>  PrintWriter out = res.getWriter();
>  String url =
>"jdbc:postgresql://dcsun2/dwt";
>  String query = " select name,city from hotels order by city,name";
>
>  out.println("");
>  out.println("");
>
>
>  try
>  {
>Class.forName("postgresql.Driver");
>  }
>  catch(java.lang.ClassNotFoundException ex1)
>  {
>out.println("Cant find database Driver class: " + ex1 +"");
>  }
>
>  try{
>Connection con =
>DriverManager.getConnection(url,"wwwuser","wwwuser");
>Statement stmt = con.createStatement();
>ResultSet rs =stmt.executeQuery(query);
>out.println(" Hotel ---   City");
>while (rs.next())
>{
>  String hotelName = rs.getString(1);
>  String cityName = rs.getString(2);
>  out.println(" " + hotelName + " , " + cityName);
>}
>out.println("");
>stmt.close();
>con.close();
>  }
>  catch(SQLException ex2)
>  {
>out.println("SQL Exception " + ex2);
>  }
>  out.println("");
>  out.println("");
>}
>}
>
>
>***
>
>i believe it's something to do with the postgres driver?
>
>cheers
>
>
> >From: Brian Adams <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> >Subject: RE: JDBC
> >Date: Mon, 11 Feb 2002 06:33:35 -0600
> >
> >what problems are you having?  can you post an error or code or both?
> >B
> >
> >-Original Message-
> >From: vinny patel [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, February 11, 2002 3:48 AM
> >To: [EMAIL PROTECTED]
> >Subject: JDBC
> >
> >
> >I am having problems with my servlets that connect to a postgres
> >database. I am using the Tomcat 4, if anyone has any suggestions, i would
> >be
> >
> >gratefull!
> >
> >thanks
> >
> >_
> >Join the world's largest e-mail service with MSN Hotmail.
> >http://www.hotmail.com
> >
> >
> >--
> >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]>
> >
>
>
>_
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>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]>
>


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


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

2002-02-11 Thread Brian Adams

where did you put your jdbc driver jar?  mine is named jdbc7.0-1.2.jar and
it is in my tomcat's common\lib directory.
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: RE: JDBC


this is the error message

**
Cant find database Driver class: java.lang.ClassNotFoundException: 
postgresql.Driver
SQL Exception java.sql.SQLException: No suitable driver
**

and heres the coding

*
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

  public class hotellist extends HttpServlet
  {
   public void doGet(HttpServletRequest req,
 HttpServletResponse res)
   throws ServletException, IOException
   {
 res.setContentType("text/html");
 PrintWriter out = res.getWriter();
 String url =
   "jdbc:postgresql://dcsun2/dwt";
 String query = " select name,city from hotels order by city,name";

 out.println("");
 out.println("");


 try
 {
   Class.forName("postgresql.Driver");
 }
 catch(java.lang.ClassNotFoundException ex1)
 {
   out.println("Cant find database Driver class: " + ex1 +"");
 }

 try{
   Connection con = 
DriverManager.getConnection(url,"wwwuser","wwwuser");
   Statement stmt = con.createStatement();
   ResultSet rs =stmt.executeQuery(query);
   out.println(" Hotel ---   City");
   while (rs.next())
   {
 String hotelName = rs.getString(1);
 String cityName = rs.getString(2);
 out.println(" " + hotelName + " , " + cityName);
   }
   out.println("");
   stmt.close();
   con.close();
 }
 catch(SQLException ex2)
 {
   out.println("SQL Exception " + ex2);
 }
 out.println("");
 out.println("");
   }
}


***

i believe it's something to do with the postgres driver?

cheers


>From: Brian Adams <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: JDBC
>Date: Mon, 11 Feb 2002 06:33:35 -0600
>
>what problems are you having?  can you post an error or code or both?
>B
>
>-Original Message-
>From: vinny patel [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 11, 2002 3:48 AM
>To: [EMAIL PROTECTED]
>Subject: JDBC
>
>
>I am having problems with my servlets that connect to a postgres
>database. I am using the Tomcat 4, if anyone has any suggestions, i would 
>be
>
>gratefull!
>
>thanks
>
>_
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>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]>
>


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


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

2002-02-11 Thread Brian Adams

what problems are you having?  can you post an error or code or both?
B

-Original Message-
From: vinny patel [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 3:48 AM
To: [EMAIL PROTECTED]
Subject: JDBC


I am having problems with my servlets that connect to a postgres
database. I am using the Tomcat 4, if anyone has any suggestions, i would be

gratefull!

thanks

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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: com.oreilly.servlet and damaged files

2002-02-09 Thread Brian Adams

I bet it is the connector!
run tomcat as stand alone (port 8080 by default) and access the servlet
without using apache and I bet money it will work!
:)
goodluck

-Original Message-
From: Reini [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 09, 2002 10:00 PM
To: [EMAIL PROTECTED]
Subject: com.oreilly.servlet and damaged files



I use com.oreilly.servlet Multipartrequest  (cos, version from June,
19th. 2001) with Tomcat 4.0.1 + mod_webapp + apache 1.3.22  (tested on
different machines, Redhat 7.x and Freebsd 4.4, same behaviour) to
upload files.

While uploads of text-files are ok, uploads of jpg or gif files result
in damaged files. The size of the uploaded files is about 1 % smaller
than the original files.

example of a jpg file:

original:
[..]
ÿØÿà^@^PJFIF^@^A^A^A^@`^@`^@^@ÿÛ^@C^^F^F^G^F^^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.'
",#^\^\(7),01444^_'9=82<.342ÿÛ^@C^A.
.
[..]

uploaded file:
[..]
Øà^@^PJFIF^@^A^A^A^@`^@`^@^@Û^@C^^F^F^G^F^^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.'
",#^\^\(7),01444^_'9=82<.342Û^@C^A.
.
[..]

(note the missing 'ÿ' in the uploaded file)
I experimented with settins of different character-encodings, without
result.

Anybody has any ideas how to fix this ?

~reini



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problem with IE

2002-02-07 Thread Brian Adams

Worked for me!
 :)
in both


-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 10:18 PM
To: Tomcat Users List
Subject: Problem with IE


Hi,
I am using Apache Tomcat4.0. I am doing a project in Servlets. I do not get
my files working on IE with this kind of URL
http://globalleafs.com:8080/globalleafs/servlet/TestServlet

But the same URL works fine in Netscape. What could be the problem?

Uma





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: new

2002-02-07 Thread Brian Adams

Hi U,
Probably a Registry hack/bug that is not correct.  
check your \HKEY_Local_Machine\SOFTWARE\JavaSoft
check that default values are pointing to correct JRE Keys and that their
values are pointing to valid jdk paths.
If that does not work download the src version and install it...
B


-Original Message-
From: U [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: new


i'm new to this list so ...
after downloading the tomcat 4.0.1 for win32 it won't install not being able
to find the JDK.  but i do have the JSE 1.4 installed.
i assume i need to set some environment variable.
java_home points to JSE 1.4, etc.
any suggestions?
thanks.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: apache + mod_SSL + tomcat

2002-02-06 Thread Brian Adams

my guess is yes, if you do not check in jsp/servlets are on https
(request.isSecure())  and if you are allowing users to port 8080 (block it).
my guess...
:)



-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 7:33 AM
To: Tomcat Users List
Subject: Re: apache + mod_SSL + tomcat


I never saw an answer go by to the below question and was curious what it
would be. Does no one now the answer
Dean

"Cressatti, Dominique" wrote:

> Hi,
>
> I've got apache + mod_SSL + tomcat working
> (I don't deserve that much credit as mod_ssl worked
> right out the box) but I wonder couldn't the security bypassed,
> like for example accessing the page on port 8080 instead of port
> 443 ?
>
> Dom


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: PLEASE URGENT: log off problem!!!

2002-02-06 Thread Brian Adams

two reasons:
1. bug in jdk add -Xrs to wrapper.cmd_line in wrappers.properties.
2. don't run the service as interact with desktop.
goodluck
B


-Original Message-
From: Catalin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 4:03 PM
To: [EMAIL PROTECTED]
Subject: PLEASE URGENT: log off problem!!!




Hi, guys!



I have an jakarta-tomcat-3.3-m4 on a win2k professional OS that is
runnig as a service on that machine.
My problem is that every time an user does log-off from windows 2000
and after that does login, my jakarta service is stopped!!!
Another problem that I have is that I'm loosing the session variables
(by loosing the session itself) if I do nothing in my webapps for an half an
hour or so.


Please, could anyone help me with these? I'm running uot of time...


Thanks for tip.

Catalin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT

2002-02-04 Thread Brian Adams

mod_jk, works great on NT

-Original Message-
From: YI,LI (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 8:31 AM
To: 'Tomcat Users List'
Subject: Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT


I have been struggling to make this work for two days, it was working fine
with Tomcat 3.2.1/mod_jk & Apache 1.3.14, but not with Tomcat 4.1 using
Warp, I've installed the latest Apache, still no luck.

Works with either TC or Apache alone, but with Warp connector, Apache always
hangs using 100% CPU, sometime right at the start, sometime when downloading
.gif. I've read different forums, some says mod_webapp.so compiled with EAPI
would work on Linux, some suggests to use different connector, some says
Apache has bug... my questions is:

1) what would be a good/reliable connector to use at this time?
2) anybody has any luck to make this work on NT?

Any help would be appreciated. 
Thanks,
Li

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat not getting installed

2002-02-04 Thread Brian Adams

Hi Uma,  
two issues and not sure which applies to you.
1.  there is a know problem with windows and an incorrect Registry entree
that can cause this problem.  
Fix:
a. Fix your jre/jdk registry entree in the "Software" branch.
b. download the source and install it by hand.  you will have to setup the
NT Service yourself if you want tomcat to run as a service.

2. I am not familiar with Visual Cafe so I don't know if you have a java.exe
in your path.  
Fix: a. can you run java from a command prompt by simply typing java.exe?
If so, install Tomcat via 1.b (above). If not, download jdk and install it
first.

Goodluck,
Brian Adams


-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 4:57 AM
To: Tomcat Users List
Subject: Tomcat not getting installed


Hi,
I am using JavaWebServer2.0(Trial Version) in WinXP. I have downloaded
Tomcat (.exe) file. when I try to install it , it says JDK is not found. I
have JDK installed with Visual Cafe in my PC. What should I do now?

Help me.

Uma

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




RE: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector

2002-02-03 Thread Brian Adams

Hi Anthony,
 Why not use mod_jk instead of WARP?  I have seen folks on the list that
have had no problems with WARP on non-Windows servers but I don't know the
problem rate of WARP. I had some troubles also (but on windows) and switched
to mod_jk.
B

-Original Message-
From: Anthony Jones [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 6:37 PM
To: Tomcat Users List
Subject: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector


Hi,

I am having problems implementing servlets and JSP pages using Tomcat 4.0.1
and Apache 1.3.20 (mod_ssl) on Solaris 8.

Initially, after searching on the web, I used the AJP connector as this
(according to what I read) was the recommeded connector to use.  After
having Tomcat hang several times and reading that Tomcat 4 only has beta
support for the AJP connector, I changed to the WARP connector. All seemed
to be going well, but eventually, instead of Tomcat hanging, Apache would
hang.

I found one reference on the internet to this problem, and this was stated
as a known problem with the WARP connector. The only probable solution was
that the latest WARP connector could be downloaded from the CVS area and
compiled. However, no guarantee was given that this would work.

Therefore, I find myself in the position of having to implement servlet and
JSP pages with Tomcat and have no reliable connector to use with Apache.
Also, I cannot use the standalone server in Tomcat as I need the SSL
encryption provided by Apache.

Does anybody know of any solution to this problem, or do I have to go back
to Tomcat 3.3.

Thanks for your help.

Regards,

--
Anthony Jones
Senior Programmer (Applications and Development)
Queensland Tertiary Admissions Centre (QTAC) Ltd

Phone: +61 7 38581285
email: [EMAIL PROTECTED]

  "If a train station is where the train stops,
   what is a work station?"
--


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: triggering JSP page recompilation

2002-02-01 Thread Brian Adams

I'm sorry, come again?  I don't think you sent anything or I can't see it...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 1:14 PM
To: Tomcat Users List
Subject: Re: triggering JSP page recompilation








Guillermo Payet <[EMAIL PROTECTED]> on 02/01/2002 11:52:11 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  triggering JSP page recompilation


Hi,

I recently installed Tomcat 4.0.1, (We used JServ + GNUJSP before)
and all works well, except for an anoying little problem that I
can't figure out:

When someone modifies a file that's included from a JSP page with:
<%@ include file="somefile"%>, this modification does not trigger
the recompilation of the including file.

If I not mistaken, with <%@ include file=...%>, the file is included during
compilation time. Tomcat will auto-reload the including file only if it has
been changed. I guess you could use jsp:include instead. The JSP engine
will include this file whenever the including jsp is called.


There must be a configuration switch to turn this on.

Any clues?

   --G

Hope this helps.
Thanks.
RS


--
Guillermo Payet
O C E A NG R O U P
email: [EMAIL PROTECTED]
web: http://www.oceangroup.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: why use mod_webapp?

2002-01-31 Thread Brian Adams

Deducing
Why install apache? just put all your html and images in tomcat.  I
mean what is the point, right?
The point is loosely coupled technologies that can be seperated and
mananaged by the appropriate people.  html on apache can handle serving
static content faster than Tomcat. 
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:27 PM
To: Tomcat Users List
Subject: RE: why use mod_webapp?


Well, ya I know this.  But you could still have apache do a re-direct to
tomcat on whatever port it's lisening on (say 8080) and get the same
result.  My own personal opinion is mod_webapp is cleaner but I'm under
some pressue to say WHY it's better.  Can't really think of any good
reasons really.

Dave

-Original Message-----
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:23 PM
To: 'Tomcat Users List'
Subject: RE: why use mod_webapp?


same port! port 80 is http (apache) tomcat would then have to run alone
on
another machine or Virtual IP.
the beauty is that we can now SSI jsp/servlet in html and you never
bounce
to another port or have to add DNS entrees...
just a few reasons, you'll get more and better explained.
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: why use mod_webapp?


Hi Folks,
I'm already using mod_webapp for handling my tomcat traffic via
apache.  My question from a guy here is why do we do this and not just
create a simple re-direct page?  ie. create a directory with a 1 line
HTML page in it that re-directs to the tomcat HTTP server.  Are there
other advantages to using the WARP connector?

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Fax: 613-761-3629
EMail: [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: why use mod_webapp?

2002-01-31 Thread Brian Adams

same port! port 80 is http (apache) tomcat would then have to run alone on
another machine or Virtual IP.
the beauty is that we can now SSI jsp/servlet in html and you never bounce
to another port or have to add DNS entrees...
just a few reasons, you'll get more and better explained.
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: why use mod_webapp?


Hi Folks,
I'm already using mod_webapp for handling my tomcat traffic via
apache.  My question from a guy here is why do we do this and not just
create a simple re-direct page?  ie. create a directory with a 1 line
HTML page in it that re-directs to the tomcat HTTP server.  Are there
other advantages to using the WARP connector?

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Fax: 613-761-3629
EMail: [EMAIL PROTECTED]



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)

2002-01-30 Thread Brian Adams

Tomcat must not look in the \winnt\system32 directory.
put the dll in the same directory as the class file.
If you have tomcat starting as a service, try putting the dll in the
%TOMCAT_HOME% directory eg. C:\tomcat
lastly try putting the dll in %TOMCAT_HOME%\bin directory.
goodluck,
B

-Original Message-
From: Anil Bhagwat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)


Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I
execute the JNI from a sample JAVA application. I have placed the DLL under
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters &
doesn't return any value. But, still it doesn't work. So, the problem is
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app
finds the DLL correctly but can't find the method within correctly. I
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw
quite few people have run into this issue, but didn't notice any resolution.
I would appreciate any help on this issue.

thanks

- Anil

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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Serving HTML and J2EE apps

2002-01-29 Thread Brian Adams

okay, how do you setup a Enterprise Stack h.
What is the text capacity of outlook?
three big pieces to install/consider:
HTML serving (Apache)
Servlet and jsp pages (Tomcat)
J2EE Applications with EJB and more (JBOSS and others)

installing:
Apache web server, Port 80 www.apache.org

Tomcat servlet engine (mod_jk or mod_webapp connects you to Apache or better
connects Apache to Tomcat) http://jakarta.apache.org/tomcat/index.html


GREAT INTRO CREATED BY RUSS!
http://abbott.calstatela.edu/courses/cs320b/Running%20a%20Servlet%20under%20
Tomcat.html
Thanks Russ!


Jboss Application server that is known to have docs on howto connect Tomcat
with JBOSS http://www.jboss.org

Java J2ee starter
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/


Good luck!
B




-Original Message-
From: Mike DiChiappari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 7:11 PM
To: [EMAIL PROTECTED]
Subject: Serving HTML and J2EE apps


How are people setting up servers to serve both HTML and J2EE apps?
I would like to setup my app so that both HTML and web apps (JSPs)
are accessed using a web server (like Apache) and using port 80 (for
both HTML and JSPs).  I would prefer to not make any reference to
port 8080 (or whatever port a J2EE server may use).  I would like my
users to be unaware of having to deal with ports.Is this
considered a standard thing to do?  What are most people doing?

Mike




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: "Scheduled Process" servlet: possible?

2002-01-29 Thread Brian Adams

I have a Thread class that does some stuff for me every night and I wrapped
that with a servlet that calls .start()  in the servlet init() method and
that servlet in loaded at start up via 1
tag in web.xml (look below)

this Thread class sleeps for 24 hours then wakes up and performs its duties
then sleeps




PrinterCache
PrinterCache
1







-Original Message-
From: Jeff Corliss [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: "Scheduled Process" servlet: possible?


Hi all,

Is it possible to have a servlet's service method
auto-invoked on a scheduled basis by its container? 
Like say for example you want to have your app do some
auto-archiving of old data on a regular basis or
something like that?

Thanks,
Jeff


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Errors using warp connector

2002-01-29 Thread Brian Adams

Cool, I don't know about the others but I appreciate you doing this :)
Thanks!
B

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:57 PM
To: Tomcat Users List
Subject: RE: Errors using warp connector


Currently I have been able to compile the apr suite
(apr, apr-util, and apr-iconv by following the
instructions at

http://apr.apache.org/compiling_win32.html

I received 7 warnings from the source code downloaded
from CVS this morning.

However, using the Makefile.win to compile mod_warp
failed with some include path information problems.

I'm investigating that this afternoon.

Meanwhile, I tried to compile the source for the 1.0.1
release, and while it compiled some aspects of
mod_webapp, it did not create mod_webapp.so or
libapr.dll.

I know that the Makefile.win files are not to be
trusted, but I did not see the appropriate Visual C++
Studio project or workspace files for mod_webapp.

/mde/

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-29 Thread Brian Adams

I wish I could tell you how but I don't know.
I know you need to get webapp source from jakarta-tomcat-connectors cvs.
and I know you have to get apr source from the apr cvs module.
but then I have no clue on how to build it in Windows.  I read about export
a Makfile and run NMAKE.exe on it
Sorry,
B

-Original Message-
From: lars_ake_gentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 5:28 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: AW: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


hi,

i would like to help you... and i have ms Visual studio... but wich files do
i need
to build the mod_webapp.so for win??? i have the same problems:-( i have
never worked with source code... i have downloaded the following files:
Makefile.in
Makefile.win
mod_webapp.c
when starting mod_webapp.c in ms Visual studio and i click on "compile" i
get an error:
Include file could not be found fatal error: c1083 httpd.h

where can i find the httpd.h file??? wich file do i need else???

thanx

lars.


-Ursprungliche Nachricht-----
Von: Brian Adams [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Januar 2002 04:52
An: Tomcat Users List
Betreff: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


yep, wich I could help but I don't have MS Visual Studio.

CAN SOMEONE HELP PLEASE?  (not shouting just getting attention)  :)

We need mod_webapp.so for Windows and it has to be newer than the download
we can already get.
Has someone built it from CVS?
Thanks for the help folks,
B
good luck dennis!
In the mean time you should be able to run tomcat as a stand alone server
(port 8080) and get some work done.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

I tried TC 4.0.2-b2, but the same thing happened.  Looks like I
could use an already-built mod_webapp.c (or whatever else I might
need for this version, if someone could provide it), as I'm not
up to doing that yet.  Thanks.

Dennis

-Original Message-
From: Dennis.Johnson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:31 PM
To: bigb; tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Thanks.  Will get right on it...

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:30 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


try just tomcat 4.0.2-2b (does not matter zip exe) by its self and see
if it
fixes it.  I am not sure if it is the warp.jar or if the bug was in
mod_webapp.so.
I would try the new tomcat alone and see.
if not you'll have to download the mod_webapp.c and build it or ask some

one
to give you theirs.
let us know what you find. maybe I will bump up to 4.0.2-2b

B
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

Thanks for the reply.  Just to clarify...

You're suggesting that I install Tomcat 4.0.2-2b from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/bin/,
correct?  If so, is there a preference between the exe and zip?  Also, I
noticed that there's no /bin/win32 with a mod_webapp to download for
this
version.  Do I just keep the webapp-module-1.0-tc40-windows versions of
mod_webapp.so and libapr.dll that came with TC 4.0.1?  Please advise.

Thanks.

Dennis

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:05 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads r

RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-28 Thread Brian Adams

yep, wich I could help but I don't have MS Visual Studio.

CAN SOMEONE HELP PLEASE?  (not shouting just getting attention)  :)

We need mod_webapp.so for Windows and it has to be newer than the download
we can already get.
Has someone built it from CVS?
Thanks for the help folks,
B
good luck dennis!
In the mean time you should be able to run tomcat as a stand alone server
(port 8080) and get some work done.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

I tried TC 4.0.2-b2, but the same thing happened.  Looks like I
could use an already-built mod_webapp.c (or whatever else I might
need for this version, if someone could provide it), as I'm not
up to doing that yet.  Thanks.

Dennis

-Original Message-
From: Dennis.Johnson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:31 PM
To: bigb; tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Thanks.  Will get right on it...

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:30 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


try just tomcat 4.0.2-2b (does not matter zip exe) by its self and see
if it
fixes it.  I am not sure if it is the warp.jar or if the bug was in
mod_webapp.so.
I would try the new tomcat alone and see.
if not you'll have to download the mod_webapp.c and build it or ask some

one
to give you theirs.
let us know what you find. maybe I will bump up to 4.0.2-2b

B
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

Thanks for the reply.  Just to clarify...

You're suggesting that I install Tomcat 4.0.2-2b from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/bin/,
correct?  If so, is there a preference between the exe and zip?  Also, I
noticed that there's no /bin/win32 with a mod_webapp to download for
this
version.  Do I just keep the webapp-module-1.0-tc40-windows versions of
mod_webapp.so and libapr.dll that came with TC 4.0.1?  Please advise.

Thanks.

Dennis

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:05 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When I
press Stop and then Refresh (IE 5.5), I get the following error:
WebApp: Error 500, (File: pr_warp.c Line: 438), Invalid packet 16.
After Stop, Back, and then try to load the /examples/jsp/index.html
URL again, the 1st graphic (gears, for Execute the example) is
loaded, but it hangs trying to load the 2nd graphic.  If I Stop and
try to click one of the example Execute links, I get the 500 error
again.  On the other hand, clicking Source brings up the next page
with the link for the source (e.g., Source code for numguess example)
... along with the two graphics (gears for Execute and arrow for
Return).  And clicking the link brings up the source code; but clicking
either of the other links (Execute or Return) makes it hang again.  And
after this scenario, I have to stop both Tomcat and Apache, and then
start (1) Tomcat and then (2) Apache manually (or just reboot - and then
restart Apache to correct the first issue mentioned above.

Any suggestions would be greatly appreciated.  Thanks.

[Ashish - I finally got Apache to talk with Tomcat by restarting
Apache.]

Dennis


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: SSL and certificates, AGAIN

2002-01-28 Thread Brian Adams

I hae not done this yet, but I want to learn.  Can we try and keep it on the
list?  I am a few weeks before I get a signed cert (www.geotrust.com
cheaper I think) so please keep me in the loop.  All I have learned so far
is self-signed certs.
Thanks,
B

-Original Message-
From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:58 PM
To: [EMAIL PROTECTED]
Subject: SSL and certificates, AGAIN


Greetings!

Three quick question to all who have SSL working with signed
certificates (not just self-signed):

1. What provider did you use? Verisign, Entrust, Thawte, etc?

2. Has anyone gotten signed certificates working with Thawte
certification?

3. Would you be willing to discuss this by personal email rather than
through the list (to conserve bandwidth).

Thanks,

-Richard



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Errors using warp connector

2002-01-28 Thread Brian Adams

looks like Tomcat is trying to use a port already in use so it dies. then
Warp connector comes up and can not connect to taomcat.
get tomcat on the port first and working then bring up apache after that.
B

-Original Message-
From: Donald Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:30 PM
To: [EMAIL PROTECTED]
Subject: Errors using warp connector




Hello, I am trying to get the mod_webapp configured and have really been
goofing it up bigtime.  right now tomcat is inaccessible even when I place
the :8080 after the server name.
Has anybody seen this kind of error before?  I am thinking I need to look up
the source and recompile but I wanted to be sure that was my problem.  Kinda
looks like it's the least of my problems but I am just guessing here.  If
anybody can throw me a bone, it would be appreciated.


Here is a section of my error_log:

[Mon Jan 28 21:05:29 2002] [warn] Loaded DSO lib/apache/mod_webapp.so uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)
[Mon Jan 28 21:05:29 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:29 2002] [notice] Apache-AdvancedExtranetServer/1.3.20
(Mandrake Linux/3mdk) mod_ssl/2.8.4 OpenSSL/0.9.6b configured -- resuming
normal operations
[Mon Jan 28 21:05:29 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Mon Jan 28 21:05:29 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:29 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:29 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:29 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:42 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:42 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:43 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:43 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:43 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:43 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:44 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:44 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:44 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:05:44 2002] [error] Connection "warpConnection" cannot
connect
[Mon Jan 28 21:05:44 2002] [error] Cannot open connection "warpConnection"
[Mon Jan 28 21:10:24 2002] [notice] caught SIGTERM, shutting down


this is setup at the top of my httpd.conf file
ServerType standalone
ServerRoot /etc/httpd
ServerName lnxwebsvr
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null

I have this configured at the bottom of my httpd.conf:

LoadModule webapp_module lib/apache/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
WebAppDeploy Guestbook warpConnection /Guestbook/


I am getting this in catalina.out. I am not sure what address the error is
referring to.

- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:477)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:526)
at org.apache.catalina.startup.Catalina.start(Catalina

RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-28 Thread Brian Adams

try just tomcat 4.0.2-2b (does not matter zip exe) by its self and see if it
fixes it.  I am not sure if it is the warp.jar or if the bug was in
mod_webapp.so.
I would try the new tomcat alone and see.
if not you'll have to download the mod_webapp.c and build it or ask some one
to give you theirs.
let us know what you find. maybe I will bump up to 4.0.2-2b

B
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 8:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bigb,

Thanks for the reply.  Just to clarify...

You're suggesting that I install Tomcat 4.0.2-2b from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/bin/,
correct?  If so, is there a preference between the exe and zip?  Also, I
noticed that there's no /bin/win32 with a mod_webapp to download for
this
version.  Do I just keep the webapp-module-1.0-tc40-windows versions of
mod_webapp.so and libapr.dll that came with TC 4.0.1?  Please advise.

Thanks.

Dennis

-Original Message-
From: bigb [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:05 PM
To: tomcat-user
Subject: RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When I
press Stop and then Refresh (IE 5.5), I get the following error:
WebApp: Error 500, (File: pr_warp.c Line: 438), Invalid packet 16.
After Stop, Back, and then try to load the /examples/jsp/index.html
URL again, the 1st graphic (gears, for Execute the example) is
loaded, but it hangs trying to load the 2nd graphic.  If I Stop and
try to click one of the example Execute links, I get the 500 error
again.  On the other hand, clicking Source brings up the next page
with the link for the source (e.g., Source code for numguess example)
... along with the two graphics (gears for Execute and arrow for
Return).  And clicking the link brings up the source code; but clicking
either of the other links (Execute or Return) makes it hang again.  And
after this scenario, I have to stop both Tomcat and Apache, and then
start (1) Tomcat and then (2) Apache manually (or just reboot - and then
restart Apache to correct the first issue mentioned above.

Any suggestions would be greatly appreciated.  Thanks.

[Ashish - I finally got Apache to talk with Tomcat by restarting
Apache.]

Dennis


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics

2002-01-28 Thread Brian Adams

bug in Warp connector.
If you need to use webapp then maybe download 4.0.2b  and try that.
I know folks checked it out of cvs a month ago and it worked.  
good luck,
B


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:56 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ap 1.3.22+TC 4.0.1+NT4+webapp=Hangs loading graphics


Running the following:
- NT 4 Server
- Apache 1.3.22 + Tomcat 4.0.1 using mod_webapp
- Both Apache and Tomcat starting as NT services
- Both Apache and Tomcat work great independently

Two issues:
(1) Have to Restart Apache after bootup:
- Apache won't recognize Tomcat's area (e.g., /examples/)
unless I restart Apache after bootup.  Is there a way to have
Tomcat start before Apache, or is there another solution?

(2) Server hangs when loading Tomcat graphics from Apache:
- When accessing a web page that's in the Tomcat area from
Apache, if the page has graphics, it hangs.  For example, using the
following (my NT machine's DNS = sawebd01):
http://sawebd01/examples/jsp/ - The text for the page loads right
away, but it hangs trying to download the 3 image gif's.  When I
press Stop and then Refresh (IE 5.5), I get the following error:
WebApp: Error 500, (File: pr_warp.c Line: 438), Invalid packet 16.
After Stop, Back, and then try to load the /examples/jsp/index.html
URL again, the 1st graphic (gears, for Execute the example) is
loaded, but it hangs trying to load the 2nd graphic.  If I Stop and
try to click one of the example Execute links, I get the 500 error
again.  On the other hand, clicking Source brings up the next page
with the link for the source (e.g., Source code for numguess example)
... along with the two graphics (gears for Execute and arrow for
Return).  And clicking the link brings up the source code; but clicking
either of the other links (Execute or Return) makes it hang again.  And
after this scenario, I have to stop both Tomcat and Apache, and then
start (1) Tomcat and then (2) Apache manually (or just reboot - and then
restart Apache to correct the first issue mentioned above.

Any suggestions would be greatly appreciated.  Thanks.

[Ashish - I finally got Apache to talk with Tomcat by restarting 
Apache.]

Dennis


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: com.oreilly.servlet.MultipartRequest IO Error

2002-01-28 Thread Brian Adams

no, just recompile the new warp connector and place it into the directory.

-Original Message-
From: J S (l) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:49 PM
To: Tomcat Users List
Subject: RE: com.oreilly.servlet.MultipartRequest IO Error


Thanks for your quick response.  I just have one more question...would I
have to completely recompile tomcat to recompile the WARP connector or
not?

J Sears
On Mon, 2002-01-28 at 12:41, Brian Adams wrote:
> I saw it in the past 6 weeks come across the list and I believe it is in
the
> Warp connector.  hte guy was saying that the file did not end or start
with
> (can't remember which) FF.
> 
> Maybe download from the CVS and build yourself...
> I'm sure someone else will have better memory.
> goodluck,
> B
> 
> 
> -Original Message-
> From: J S (l) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 28, 2002 12:39 PM
> To: Tomcat Users List
> Subject: com.oreilly.servlet.MultipartRequest IO Error
> 
> 
> Please, anyone with information regarding the following error, either
> post a reply or email me asap.
> 
> We are attempting to allow users to upload image files via form on our
> jsp site.  We get the following error upon trying to parse the posted
> data:
> 
> java.io.IOException: unexpected end of part
> 
> We are running tomcat 4.0.1
> JDK 1.3.1
> modwebApp
> Apache 1.3.22
> 
> I have read where this might be a bug with either Tomcat itself or the
> WARP connector, but have been unable to find any responses to the bug
> report.
> Any assistance is greatly appreciated.
> 
> J Sears
> 
> 
> 
> --
> 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: com.oreilly.servlet.MultipartRequest IO Error

2002-01-28 Thread Brian Adams

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg06327.html

here is one problem.


-Original Message-
From: J S (l) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:39 PM
To: Tomcat Users List
Subject: com.oreilly.servlet.MultipartRequest IO Error


Please, anyone with information regarding the following error, either
post a reply or email me asap.

We are attempting to allow users to upload image files via form on our
jsp site.  We get the following error upon trying to parse the posted
data:

java.io.IOException: unexpected end of part

We are running tomcat 4.0.1
JDK 1.3.1
modwebApp
Apache 1.3.22

I have read where this might be a bug with either Tomcat itself or the
WARP connector, but have been unable to find any responses to the bug
report.
Any assistance is greatly appreciated.

J Sears



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: com.oreilly.servlet.MultipartRequest IO Error

2002-01-28 Thread Brian Adams

I saw it in the past 6 weeks come across the list and I believe it is in the
Warp connector.  hte guy was saying that the file did not end or start with
(can't remember which) FF.

Maybe download from the CVS and build yourself...
I'm sure someone else will have better memory.
goodluck,
B


-Original Message-
From: J S (l) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 12:39 PM
To: Tomcat Users List
Subject: com.oreilly.servlet.MultipartRequest IO Error


Please, anyone with information regarding the following error, either
post a reply or email me asap.

We are attempting to allow users to upload image files via form on our
jsp site.  We get the following error upon trying to parse the posted
data:

java.io.IOException: unexpected end of part

We are running tomcat 4.0.1
JDK 1.3.1
modwebApp
Apache 1.3.22

I have read where this might be a bug with either Tomcat itself or the
WARP connector, but have been unable to find any responses to the bug
report.
Any assistance is greatly appreciated.

J Sears



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation

2002-01-28 Thread Brian Adams

search through this archive.  this is a known problem with Windoz.  There is
a registry edit that has to be made...
I just downloaded the source and installed that.

I would search for:
Couldn't find a Java Development Kit


good luck,
B
-Original Message-
From: Michael Kastner [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 11:47 AM
To: Tomcat Users List
Subject: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation


Why would this happen?

When I try to install jakarta-tomcat-4_0_1.exe on my server I receive this
error message:

"Couldn't find a Java Development Kit installed on this computer. Please
download on from http://java.sun.com";

This is strange, because there is a jdk installed (how else could JRun be
running on the server)?

The same happened on my development machine. First I thought, that might be
because I have JDK 1.4.0 on my dev machine. But obviously the reason is
something else.

Can anybody help me?

What is the installation procedure's "criteria" for a jdk?

Michael Kastner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: urgent -- tomcat as NT services interrupt unexpected

2002-01-28 Thread Brian Adams

no log attached. send again please

-Original Message-
From: Sabrina Liu [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: urgent -- tomcat as NT services interrupt unexpected


Dear Sir or Madam,

We are using JDK1.2.2, Tomcat3.2.3, working on NT server. When we use tomcat
as standalone servlet
support, everything is working fine. But when we use tomcat as NT services,
tomcat services will interrupt
every two days unexpected. Attached is the log file. Please help us to
figure out what's the problem is or what
we should work on? This is really an urgent issure. Thank you in advance for
your help.

Sabrina


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Invoking a process on the server from a servlet

2002-01-22 Thread Brian Adams

Good points.
I would NOT use interactive desktop at all.  the program will die when you
log out.
don't do it! :)

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:21 AM
To: Tomcat Users List
Subject: RE: Invoking a process on the server from a servlet



A few other thoughts of accomplishing the same thing:
1.  You could enable Interact with desktop in the service that would
allow it to open windows (but open huge security holes).  Also if your site
gets popular this will consume lots of memory when you can't close the
windows as fast as they are opening.
2.  Instead of opening a process you could send a message (via TCP)
to an application that would catch it and display the message
3.  Instead of opening a process you could update some internal list
and then have a web page (access restricted if you want) that would display
the results.  Then you could do an auto-refresh header if you desired.
4.  Make Tomcat SNMP enabled and then pass messages to the monitor
interface.  Then have your corporate management application listen for the
events and display messages accordingly.

> -Original Message-
> From: Brian Adams [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 10:34 AM
> To: 'Tomcat Users List'
> Subject: RE: Invoking a process on the server from a servlet
> 
> 
> Mark is correct.  If you want you can have the servlet write 
> to a file every
> time you get a visitor and then write a seperate program that 
> runs in your
> tooltray. The other program should read the file and when a 
> new line is
> written then popup what ever it is you want to see.
>  If it is in the your tooltray then the program will only 
> work when you
> login. :)
> the servlet will just write to a special log file that is 
> read by your new
> little monitoring program.
> goodluck,
> Brian
> 
> -Original Message-
> From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 9:46 AM
> To: 'Tomcat Users List'
> Subject: RE: Invoking a process on the server from a servlet
> 
> 
> The problem is due to NT (or 2000) not allowing the Tomcat service to
> interact with the desktop.  If you bring up Task Manager, you 
> will probably
> see your invoked process running, but it can't create window. 
>  In fact, the
> only way you will now be able to get rid of it will be to 
> kill it in Task
> Manager.
> 
> I don't know of any way around this.
> 
> -Original Message-
> From: Stephen Clarke [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 10:42 AM
> To: tomcat
> Subject: Invoking a process on the server from a servlet
> 
> 
> I have the following code in my servlet, where 'out' is the
> HttpServletResponse object.
> 
>   Runtime t = Runtime.getRuntime();
> 
>   try {
> 
>Process proc = t.exec( "c:\\TaskInfo.exe" );
> 
>out.write(" invoked " );
> 
>   } catch ( java.io.IOException ioe ) {
> 
>out.write( ioe.toString() );
> 
>   }
> 
> What I'm getting is "invoked" in the browser window, but 
> nothing visibly
> happens on my local machine( ie. server). I was hoping 
> TaskInfo would start
> up. What I really want to do is open a file in notepad to 
> tell me a visitor
> has just arrived. Am I barking up the wrong tree altogether. Should I
> generate an event and listen for it in another app running as 
> a listener in
> the background, or is there just no way of invoking a process 
> on localhost
> from a servlet.
> 
> Thanks.
> 
> If this is the wrong place to be asking these questions, 
> please let me know.
> 
> --
> cf
> 
> 
> 
> --
> 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: Invoking a process on the server from a servlet

2002-01-22 Thread Brian Adams

Mark is correct.  If you want you can have the servlet write to a file every
time you get a visitor and then write a seperate program that runs in your
tooltray. The other program should read the file and when a new line is
written then popup what ever it is you want to see.
 If it is in the your tooltray then the program will only work when you
login. :)
the servlet will just write to a special log file that is read by your new
little monitoring program.
goodluck,
Brian

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:46 AM
To: 'Tomcat Users List'
Subject: RE: Invoking a process on the server from a servlet


The problem is due to NT (or 2000) not allowing the Tomcat service to
interact with the desktop.  If you bring up Task Manager, you will probably
see your invoked process running, but it can't create window.  In fact, the
only way you will now be able to get rid of it will be to kill it in Task
Manager.

I don't know of any way around this.

-Original Message-
From: Stephen Clarke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:42 AM
To: tomcat
Subject: Invoking a process on the server from a servlet


I have the following code in my servlet, where 'out' is the
HttpServletResponse object.

  Runtime t = Runtime.getRuntime();

  try {

   Process proc = t.exec( "c:\\TaskInfo.exe" );

   out.write(" invoked " );

  } catch ( java.io.IOException ioe ) {

   out.write( ioe.toString() );

  }

What I'm getting is "invoked" in the browser window, but nothing visibly
happens on my local machine( ie. server). I was hoping TaskInfo would start
up. What I really want to do is open a file in notepad to tell me a visitor
has just arrived. Am I barking up the wrong tree altogether. Should I
generate an event and listen for it in another app running as a listener in
the background, or is there just no way of invoking a process on localhost
from a servlet.

Thanks.

If this is the wrong place to be asking these questions, please let me know.

--
cf



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: use JSP open new window

2002-01-21 Thread Brian Adams

yes,  I was thinking about this too and I would (if you had to) make the
call to the jsp page that wanted in a new window with a parameter like:
response.sendRedirect("http://localhost/window.jsp?window=1";);
return;

then in your window.jsp page put:

<% 
if("1".equals(request.getParameter("window"))){
%>
openWindow() 

<%}%>

That is if you wanted to have a page that could be seen in the original
window or in a seperate window.  I don't know if you need that function...
B


-Original Message-
From: Guillermo Labatte [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 5:55 AM
To: Tomcat Users List
Subject: Re: use JSP open new window


Galbayar wrote:

>how to use sendRedirect method to open new browser window?
>
As far as I know, sendRedirect works at the HTTP level. In order to open 
a new browser window you need to operate at the HTML/JavaScript level.

Use something like openWindow() 
in your HTML code in order to open a new window without user 
intervention. Please check the exact syntax in your HTML/JavaScript manuals.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: j2ee and Tomcat 4.0

2002-01-21 Thread Brian Adams

I do the first one, but I am not using EJB or other j2ee functions at this
time.  If you are just using serlvets and don't plan on installing an ap
server like jboss then my advice would be the first one. I believe the
servlet.jar comes with topcat you may have to point your dev env (CLASSPATH)
to it so that they both (tomcat and javac) use the save version.
Brian

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 12:53 AM
To: [EMAIL PROTECTED]
Subject: j2ee and Tomcat 4.0


Do we add the javax/servlets to j2se or do we use j2se in conjunction with 
j2ee with Catalina (Tomcat 4.0)?



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: instructions for Apache & webapp

2002-01-21 Thread Brian Adams

Hi Dean,
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/webapp/INSTALL.txt?r
ev=1.6&content-type=text/vnd.viewcvs-markup

sorry if the URL is broken (Outlook sucks) but this doc comes with
mod_webapp.   I have given you a link to the install.txt file from the CVS
that houses mod_webapp.
If you download mod_webapp you will get this doc in it...
my advise is to get a nightly build of this module, some of the folks here
have made some changes to the module since it's formal release.
Goodluck,
Brian

-Original Message-
From: Dean Hall [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 2:37 AM
To: Tomcat User List
Subject: instructions for Apache & webapp


I'm a new Tomcat user trying to install Tomcat to work with Apache
1.3.22 (on RH Linux 6.2). I gave up trying to compile from source (for
the time being) because I didn't find the docs sufficient (yet) to be
sure it would work.

Now, I've installed the binary distro, and the docs seem to end before
describing how to get Tomcat to run with Apache. I read the
conf/server.xml file in the distro, and it seems to imply that some
other stuff needs to happen (like installing Apache with the mod_webapp)
for it to work properly, but I can find no documentation for this
procedure. I looked just to see if I could find any source for the
module in the apache source tree, and there is none. I looked in the
installation documentation, and there's no mod_webapp listed.

Is there something I'm missing? Some docs somewhere that I haven't seen
yet?

Dean.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: benchmark

2002-01-18 Thread Brian Adams

thanks for sharing your info!
B

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: benchmark



Greetings everyone, a quick thanks to the tomcat
developers for their hardwork.

I just spent two week performing benchmarks on tomcat
4.0.1 and I thought some people might like to know the
results I got.

My comparison was between Orion 1.5.2 and tomcat
4.0.1. I used JMeter to perform the test hitting an
application that gets XML data from another system
over the internet. The data was about 1.2K in size and
the parser used was xerces 2 and xalan.

By no means is my test comprehensive, but it does show
that tomcat 4.0.1 out performs orion 1.5.2 for 1-45
clients. The application is a real app which I can't
describe, but it performs two separate requests to an
external system to get XML data, then transforms it
into HTML. The system was a 900mhz p3 with 256m RAM,
jdk 1.3.1.

Tomcat vs Orion
---
1 client - 7% faster
5 client - 2% faster
15 clients - 9% faster
45 clients - 20% faster

The settings were the default setting for both. No
optimization or tweaking was done. With the default
settings for 90 and 135 clients, tomcat would fail.
Once I cranked up the min and max processors to 2-3x
the defaults, it was able to complete the tests.

I hope others find this interesting.

f00zbll

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: INSTALLING Tomcat-4.0 with JDK1.4 beta.

2002-01-18 Thread Brian Adams

It does work I am using it.  There is a registry error that causes that.  I
don't know how to fix the registry but others here do.
I download the src version for windows and installed by hand and it works
great on two machines! :)
ohh, you did not say what OS, I assumed Windows if not dunno..

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 9:39 AM
To: [EMAIL PROTECTED]
Subject: INSTALLING Tomcat-4.0 with JDK1.4 beta.



Yes you guessed it...Tomcat4.0 won't install using jdk1.4 beta.  The first
thing it does is says it cant find a Java Development kit.  Works fine with
JDK1.3 so I'm guessing jdk1.4 will install once it is out of beta.  Correct?
There are some new utilities in jdk1.4 I'd like to use, but I've noticed
other things that don't work in jdk1.4 that traditionally works in the rest,
namely the way a class is imported.  

PM
-- 




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

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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Can a url have a space in it?

2002-01-17 Thread Brian Adams

dude, I am with ya now!
okay, I tried on my server just now and it work!
I made a directory named "a b" inside my $TOMCAT4/webapps/test/  folder and
put in it a index.jsp page.
Ten I tried "localhost:8080/test/a b/index.jsp" and it worked...
so then I said h wonder if it works through Apache so I did
"localhost/test/a b/index.jsp"  (notice port 80 now) and it also worked...
I wonder what is wrong with yours...
:(


I did this on a dev box: win2000, tomcat 4.0.1ish and apache 1.3
B

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 6:17 PM
To: Tomcat Users List
Subject: RE: Can a url have a space in it?


Thanks for responding Brian,

Users are creating folders with spaces in them, not in the parameters, so
the url is like this...

http://localhost/my folder/index.html

tomcat (or the browser) is successfully turning the url into

http://localhost/my%20folder/index.html

When you click on that url though, you get a 404 error.

-----Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 6:08 PM
To: Tomcat Users List
Subject: RE: Can a url have a space in it?


if it is in your URL then it should %20  that represents a space in a string
so
if uRL was http:/localhost/servlet/test?file=my%20documents
then when your do :
String paramV = request.getParameter("file");
out.println("File Path is: " + paramV);


this should make paramV = "my documents"

is this what your looking for?
B
Anyone correct me if I am wrong please.


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 5:31 PM
To: Tomcat Users List
Subject: Can a url have a space in it?


When using tomcat 3.2.4, is it invalid to create a folder called "/my
folder"?  It looks like tomcat turns the url into "my%folder", which I
thought should work, but it can't find any files in this directory.  Is this
correct, is there something I can do to allow tomcat to find files in a
directory with a space in it?

Brandon


--
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: Can a url have a space in it?

2002-01-17 Thread Brian Adams

if it is in your URL then it should %20  that represents a space in a string
so
if uRL was http:/localhost/servlet/test?file=my%20documents
then when your do :
String paramV = request.getParameter("file");
out.println("File Path is: " + paramV);


this should make paramV = "my documents"

is this what your looking for?
B
Anyone correct me if I am wrong please.


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 5:31 PM
To: Tomcat Users List
Subject: Can a url have a space in it?


When using tomcat 3.2.4, is it invalid to create a folder called "/my
folder"?  It looks like tomcat turns the url into "my%folder", which I
thought should work, but it can't find any files in this directory.  Is this
correct, is there something I can do to allow tomcat to find files in a
directory with a space in it?

Brandon


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: response.sendRedirect

2002-01-17 Thread Brian Adams


have you // your session.invalidate and tried it? :) sorry it begged the
question! 
my answer is "dunno, try commenting it out and then try it or swapping the
two lines"


-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 2:26 PM
To: '[EMAIL PROTECTED]'
Subject: response.sendRedirect


I have the following code snipet in a .JSP...

if (userStatus.equals ("Failed"))
{
session.invalidate() ;  // Kill this
session.
response.sendRedirect(htmlHome) ;   // Redirect
the user to our home page.
return ;
}

When this condition occurs, the response.sendRedirect fails with the
following message:

javax.servlet.ServletException: Response has already been committed

According to the response object documentation, the sendRedirect 'must be
called before the response is committed (in other words, before the status
code and headers have been written).' Obviously, the response has been
committed, else I wouldn't be getting the error!

My question - is the session.invalidate() doing this to me, or is it
something else that I am completely unaware of?

Thanks.

Jerry Jalenak
LabOne, Inc.

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0

2002-01-14 Thread Brian Adams

I don;t have MS Studio either.  
If your apache is not working at all I think you have a config problem.  I
would think something is wrong in your httpd.conf file

you don't need to step down to tomcat 3  I use tomcat 4 with mod_jk


-Original Message-
From: Terry McBride [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:35 PM
To: Tomcat Users List
Subject: RE: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0 


Thanks Brian,

I must be a bad archive searcher.

I the simptoms seem different though because apache
isn't working AT ALL when tomcat is running.  Even a
text.html file in htdocs dir.

I do not have access to Visual Studio.  Has anyone out
there compiled the latest mod_webapp for Windows?  If
so, does it work (including jpg ;)?  If so can you
please email me the libapr.dll and mod_webapp.so.

I am guessing I am not going to get my wish.  So does
this thread contain good instructions?
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg38624.html

I guess I nees to download Tomcat 3.

Thanks for any help,
Terry

--- Brian Adams <[EMAIL PROTECTED]> wrote:
> Hi Terry, 
>   I think if you take a close look at the archive you
> will see that
> many of us have not installed mod_webapp on windos
> with success.
> The hanging is probably on the connector that
> mod_webapp uses.  I bet money
> if you make a jsp page that has no images it will
> work.  then add a gif and
> it should work.  add a jpeg and hang time for
> ever
> 
> there is a bug and you can get the latest mod_webapp
> code from the jakarta
> cvs and build it(youll need MS Visual Studio 5.0 or
> higher) 
> OR
> you can install mod_jk (if your requirements allow)
> and you'll be happy for
> now.  I had the same problem with no real luck just
> good advise so I
> installed mod_jk and that works for me.  My windows
> box is a development box
> not production(thank god) and it works fine.
> Good luck
> Brian Adams
> 
> -Original Message-
> From: Terry McBride [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 14, 2002 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: mod_webapp hanging apache Win 2000 apache
> 1.3.22 tomcat4.0 
> 
> 
> After searching the archives all I have seen is that
> people seem to get this to work pretty easily.
> Unfortunately not me :( .  They've been working
> seperately for a while.
> 
> When I use mod_webapp and run tomcat apache hangs
> forever.  I tried telnet localhost 80 and it just
> sits
> there.  Same thing with the web browser (doesn't
> even
> come back with page not found-just hangs).  If they
> are both running and I shutdown tomcat, boom, apache
> works.
> 
> Apache's error.log contains nothing.  No tomcat logs
> contain anything.
> 
> Has anybody out there had the same problem?  How do
> I
> fix it?  It's coming up on crunch time for me and
> I'm
> scared that tomcat standalone will not be able to
> handle the traffic.  I work for the King Papers
> Project at Stanford and we're trying to launch this
> before the Holiday.
> 
> Thanks for any help,
> Terry
> 
> #Here is output from tomcat to the console --#
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0-b6-dev
> Starting service Tomcat-Apache
> Apache Tomcat/4.0-b6-dev
>
[org.apache.catalina.connector.warp.WarpConnectionHandler]
> New instance created
>
[org.apache.catalina.connector.warp.WarpConnectionHandler]
> Setting connection
>
[org.apache.catalina.connector.warp.WarpConnectionHandler]
> Setting Request ID 0
> 
> 
> 
> # Here is part of my httpd.conf ---#
> ServerName 171.64.248.194
> 
> LoadModule webapp_module modules/mod_webapp.so
> AddModule mod_webapp.c
> 
> WebAppConnection launch warp localhost:8008
> WebAppDeploy launchpads   launch /launchpads
> WebAppInfo /webapp-info
> 
> # Here is part of my server.xml ---#   name="Tomcat-Apache">
> 
> 
className="org.apache.catalina.connector.warp.WarpConnector"
>  port="8008" minProcessors="5"
> maxProcessors="75"
>  enableLookups="true"
>  acceptCount="10" debug="0"/>
> 
> 
> 
className="org.apache.catalina.connector.warp.WarpEngine"
>   name="Apache" defaultHost="171.64.248.194"
> debug="0" appBase="webapps">
> 
>   
>className="org.apache.catalina.logger.FileLogger"
>   prefix="apache_log." suffix=".txt"
>   timestamp="true"/>
> 
>   
>className="org.apache.catalina.realm.MemoryRealm&q

RE: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0

2002-01-14 Thread Brian Adams

Hi Terry, 
I think if you take a close look at the archive you will see that
many of us have not installed mod_webapp on windos with success.
The hanging is probably on the connector that mod_webapp uses.  I bet money
if you make a jsp page that has no images it will work.  then add a gif and
it should work.  add a jpeg and hang time for ever

there is a bug and you can get the latest mod_webapp code from the jakarta
cvs and build it(youll need MS Visual Studio 5.0 or higher) 
OR
you can install mod_jk (if your requirements allow) and you'll be happy for
now.  I had the same problem with no real luck just good advise so I
installed mod_jk and that works for me.  My windows box is a development box
not production(thank god) and it works fine.
Good luck
Brian Adams

-Original Message-
From: Terry McBride [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:10 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp hanging apache Win 2000 apache 1.3.22 tomcat4.0 


After searching the archives all I have seen is that
people seem to get this to work pretty easily.
Unfortunately not me :( .  They've been working
seperately for a while.

When I use mod_webapp and run tomcat apache hangs
forever.  I tried telnet localhost 80 and it just sits
there.  Same thing with the web browser (doesn't even
come back with page not found-just hangs).  If they
are both running and I shutdown tomcat, boom, apache
works.

Apache's error.log contains nothing.  No tomcat logs
contain anything.

Has anybody out there had the same problem?  How do I
fix it?  It's coming up on crunch time for me and I'm
scared that tomcat standalone will not be able to
handle the traffic.  I work for the King Papers
Project at Stanford and we're trying to launch this
before the Holiday.

Thanks for any help,
Terry

#Here is output from tomcat to the console --#
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b6-dev
Starting service Tomcat-Apache
Apache Tomcat/4.0-b6-dev
[org.apache.catalina.connector.warp.WarpConnectionHandler]
New instance created
[org.apache.catalina.connector.warp.WarpConnectionHandler]
Setting connection
[org.apache.catalina.connector.warp.WarpConnectionHandler]
Setting Request ID 0



# Here is part of my httpd.conf ---#
ServerName 171.64.248.194

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

WebAppConnection launch warp localhost:8008
WebAppDeploy launchpads launch /launchpads
WebAppInfo /webapp-info

# Here is part of my server.xml ---#  






  
  

  
  



  




__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
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: mod_webapp and Tomcat tip

2002-01-11 Thread Brian Adams

cool tip..
did not know that. 
thanks,
Brian

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: mod_webapp and Tomcat tip


Hi,

This may be obvious but, it helped me.

Enabling the /webapp-info context as specified in the README file for
mod_webapp will tell you where it's looking for your Tomcat web apps:

Add this line:
WebAppInfo /webapp-info

to your Apache httpd.conf file.

Browsing http://host.com/webapp-info will tell you where mod_webapp is
looking.  The "Local Deployment Path" is where it's trying to access your
web apps.

Saved me some head scratching.

-Mark

.oO Mark Donoghue
.oO System Administrator
.oO S&T, Pearson Education
.oO mark[dot]donoghue[at]pearsoned[dot]com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Standard SSL question

2002-01-09 Thread Brian Adams

actually you can just use
request.isSecure();
it is built in to ServletRequest
:)


-Original Message-
From: Corey A. Johnson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 5:55 PM
To: Tomcat Users List
Subject: Re: Standard SSL question


I have done something similar..  by checking the start of the String
returned by request.getHeader("host")  And do a response.semdRedirect to
the secure version of the page.

if(!request.getHeader("host").startsWith("https:"))
response.sendRedirect("https://www.domain.com/securePage.jsp";);

Or you can redirect to an error page.. and have it META REFRESH and link
to the secure version.

Hope that helps.

Cj

Steve Mactaggart wrote:

>Hello all,
>
>I need to make it that certain pages on the site are accessed via SSL, is
>there a way in tomcat to reject the connection of http to a specific page
>(ie securePage.jsp) but still allow http access to other pages (ie.
>standardPage.jsp).
>
>Pages like login, CC submission etc..  need to be secure and I want to make
>sure that they are always accessed via SSL.
>
>Hope there's an answer..
>
>
>Steve Mactaggart
>Senior Java Developer /
>Team Leader
>
>303 Sport
>BH: 9620 7477
>FAX 9620 7377
>
>
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>

--
corey a. johnson <><> cni <><> 1.321.259.1984 <><> 1.800.264.5547




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat v4.01 refuses to install on WinXP

2002-01-09 Thread Brian Adams

this is a know problem it is in your registry.
I don't know where exactly but it has been posted here before.look through
the last 45 days and you will see it.
or wait and someone will answer with more precision than me. :)


-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 3:53 AM
To: Tomcat User
Subject: Tomcat v4.01 refuses to install on WinXP


Hi all,

I have had a long lasting headache trying to get the Installshield
version of Tomcat to install at all under Windows XP.

I have tried both the IBM JDK v1.3, and the Sun JDK (enterprise edition)
v1.3, and neither of these JDKs can be found by the Tomcat
Installshield. In both cases the error message is:

"Couldn't find a Java Development Kit installed on this computer. Please
download one from http://java.sun.com";

There is nothing I can find in the release notes to say that XP is
specifically not supported, nor is there an explanation anywhere of
where Tomcat is trying to find the JDK (registry? environment? somewhere
else?), nor is there is an option to say "point me at a JDK", which is a
pretty obvious pice of functionality to have.

I've just sold the concept of Tomcat to a bunch of people as being
pretty easy to use - so far it's impossible to use under windows, and
I'm pretty embarrassed about the whole thing. Is there some guiding
light anyone can share?

Regards,
Graham
-- 
-
[EMAIL PROTECTED]"There's a moon
over Bourbon Street
tonight..."

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_webapp.c

2002-01-09 Thread Brian Adams

don't actually need the file just a handle to the module (Load...).
try it :)


-Original Message-
From: Ansalvish, Dave R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 11:58 AM
To: '[EMAIL PROTECTED]'
Subject: mod_webapp.c


Hi,

 I got TOMCAT 4.0.1 installed and running on my Solaris boxes as a
standalone server.  Now I'm ready to integrated TOMCAT with our Apache
servers.  So after reading the online documentation I downloaded the Solaris
version of mod_webapp.so.  Now I must be getting stupid or senile, but
according to the documentation I need to have an 'add module mod_webapp.c'
in the my httpd.conf.  Since I only downloaded the 'so' file. Where can I
get the mod_webapp.c or don't I actually need the file.

Dave

Also,

 I want to thank all those people who sent me helpful hints on getting
TOMCAT working on my one Solaris server. I finally traced the problem to an
httpproxy that was installed by another administrator and it ran on port
8080.

Dave Ansalvish

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Odd Apache+Tomcat errors

2002-01-07 Thread Brian Adams

are you logging at debug level?
what does it show when you do?

SSLLog logs/SSL.log 
SSLLogLevel debug
 
in your httpd.conf (in case you are not familiar)
B 


-Original Message-
From: Mario Felarca [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Odd Apache+Tomcat errors


At 04:34 PM 01/07/2002 -0500, you wrote:

>I had the same lock-up problem for the myapp sample webapp when Apache,
>Tomcat, and IE5.0 where all running on the same win2000Pro box.
>
>I got the myapp sample webapp to work (serve images) though in both of the
>following two situations:
>
>1.  running IE5.0 browser from a different machine (from that running
Apache
>and Tomcat)
>2.  Using Netscape 6.2 on the same machine as Apache and Tomcat.

Interesting. I haven't tried the NS 6.2 yet, but I know that we are 
experiencing these drop-outs even when browsing from machines other than 
the server itself.

Does anyone have any ideas as to how to try to pin this down further? I too 
think it has to do with the connector but I would like to isolate it to be 
sure, and if possible try to find some way to reduce the number of request 
drops.

Would trying to use another connector help? Or would removing SSL from the 
equation help?

Thanks in advance,

Mario-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JDBC for mySQL

2002-01-01 Thread Brian Adams

yep!
http://jdbc.postgresql.org/

http://sourceforge.net/project/showfiles.php?group_id=15923

both work with tomcat!
have fun.
B

-Original Message-
From: Simon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 01, 2002 12:44 PM
To: Tomcat Users List
Subject: JDBC for mySQL


Sorry, this goes a little out of topic.

Are there JDBC driver for MySQL and postgres? Any these drivers work with
tomcat?

Simon.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problem with the mod_webapp connector

2001-12-27 Thread Brian Adams

Hi Marcelo,
If you check the archive around mid November to Dec 10 you will see many
posts from me and others on this problem.
Bottom line, it no worky!
I heard of some that download the warp connector from cvs and compiled tthat
and they never replied to the list to say if it worked or not.  I finally
went back to mod_jk on my windows box but use warp webapp on linux(works
just fine)
sorry not more
B
  -Original Message-
  From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 27, 2001 5:59 PM
  To: Tomcat Users List
  Subject: Problem with the mod_webapp connector


  Hi everybody!  I have a "mission" for this list :-)

  When I install Tomcat 4.0.1 and Apache 1.3.22 in an environment W2K
  professional with JDK 1.3.1 and the mod_webapp WARP connector, I get the

  following problem:

  Whenever I try to access the Tomcat example index page:

  [...]/examples/jsp/index.html

  The plain text is displayed, but then Apache hangs downloading the gifs.

  And I have to restart Apache.

  However I do not have the problem running Tomcat in Stand-alone mode.

  Thanks in advance and i will appreciate so much a solution to this
  trouble.


  Marcelo







RE: servlet can't access postgreSQL database

2001-12-24 Thread Brian Adams

yep, just dropped it in common/lib in RedHat and restarted tomcat and it
worked.
:)
B
checked conf files, no sign of any postrgesql confs.


-Original Message-
From: Sanjeev Rathore [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 10:50 PM
To: [EMAIL PROTECTED]
Subject: servlet can't access postgreSQL database


Hi

I am trying to use servlet to access postgreSQL
database but I am not able to. I am able to run
servlets just fine as long as they don't try to access
postgreSQL database.  If I run stand alone Java
program, then I am able to access postgreSQL database
just fine.  I use: export
CLASSPATH=/usr/local/jakarta-tomcat-4.0/common/lib/jdbc7.1-1.2.jar:${CLASSPA
TH}
to install the driver.  I am using RedHat 7.2, and
have installed all the postgreSQL RPMs that came with
the CD.  Please can somebody help me as to what I am
doing wrong.  Do I have to edit some XML file?

thanks,
Sanjeev R.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: servlet can't access postgreSQL database

2001-12-24 Thread Brian Adams

Hi, I am running it on Windows and  put it in common\lib  and did not touch
any files and it sees it.
hmmm...
I have a redhat box and I have not dropped in the jar yet I will try...
B

-Original Message-
From: Sanjeev Rathore [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 10:50 PM
To: [EMAIL PROTECTED]
Subject: servlet can't access postgreSQL database


Hi

I am trying to use servlet to access postgreSQL
database but I am not able to. I am able to run
servlets just fine as long as they don't try to access
postgreSQL database.  If I run stand alone Java
program, then I am able to access postgreSQL database
just fine.  I use: export
CLASSPATH=/usr/local/jakarta-tomcat-4.0/common/lib/jdbc7.1-1.2.jar:${CLASSPA
TH}
to install the driver.  I am using RedHat 7.2, and
have installed all the postgreSQL RPMs that came with
the CD.  Please can somebody help me as to what I am
doing wrong.  Do I have to edit some XML file?

thanks,
Sanjeev R.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Alternate webapps dir not seen by apache

2001-12-21 Thread Brian Adams

have you erased the compiled apps in the work directory?

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 3:20 PM
To: Tomcat Users List
Subject: Alternate webapps dir not seen by apache


Hello.

I have tomcat at C:\tomcat and apache at C:\apache.
I have the warp module in place and everything is working just peachy
for me in my little test environment (my desktop).  I realized that I
do not want all my webapps in the C:\tomcat\webapps directory because if
I install a new version of tomcat it will be easier to have all my apps
in one central place (not ususual thoughts).

I moved my webapps to C:\website.  So I have the example and manager
and even the forumdemo app from Velocity.  I changed server.xml to see
the new directory as the base for both Standalone and Apache.  I go to
http://localhost:8080/examples/jsp/index.html and its all good.  The little
text change that I made at the top of the page is present.  But when I
go to http://localhost/examples/jsp/index.html it is still seeing the
original one in the C:\tomcat\webapps directory.  Do I just need to
restart a few times?  Is there a different way to configure the httpd.conf?

WebAppConnectionwarpConnection  warplocalhost:8008
WebAppDeployexampleswarpConnection  /examples/

and server.xml has:





How come Tomcat can see it and not Apache?  I will keep hacking away at it.
I was just wondering if anyone else had run into this problem.

Thanks.

Charlie Harvey


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getting mod_webapps to work

2001-12-21 Thread Brian Adams

not sure. I bet it has something to do with DocRoot in apache.
not an apache expert at all but you did have two docroots
 DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples

and I am not sure that is cool with apache...
try just
 DocumentRoot /var/www/html

I don't think you need the other..


-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:49 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Brian,

everything checks OK
but I've lost static pages.
I mean http://sol.lansa.co.uk/
now returns "Forbiden... you have permission / on
this server"
Somehow am baffled that am trying to access /

As for http://sol.lansa.co.uk/examples/jsp
am getting "WebApp error  Web-application not yet
deployed"

if we talking about the examples JSP stuff, I do have
it and I know it use to run on http://sol.lansa.co.uk:8080/examples/jsp

Dom


-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:56
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test <http://sol.lansa.co.uk/test> 
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
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: getting mod_webapps to work

2001-12-21 Thread Brian Adams

actually you may want to start tomcat first then restart apache

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 9:56 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-----
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test <http://sol.lansa.co.uk/test> 
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
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: getting mod_webapps to work

2001-12-21 Thread Brian Adams

apachectl check

apachectl restart

$CATALINA_HOME/bin/catalina.sh run


http://sol.lansa.co.uk/examples/jsp

should work if your tomcat examples are install and configured like so in
httpd.conf 
  WebAppDeployexamples  conn/example





-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 10:06 AM
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


Cheers Brian,

How do test that it works?

Dom

-Original Message-----
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2001 15:35
To: 'Tomcat Users List'
Subject: RE: getting mod_webapps to work


why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test <http://sol.lansa.co.uk/test> 
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
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: getting mod_webapps to work

2001-12-21 Thread Brian Adams

why are you doing   ServerName sol.lansa.co.uk:8080/test?
why not   ServerName sol.lansa.co.uk
or   ServerName sol.lansa.co.uk/test
the warp connector has nothing to do with 8080, that is an Apache config
thing.
Warp has had some problems in windows but I have it working in Linux RH6-7.1

try this:

NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarp localhost:8008
WebAppDeploytestconn   /test 
#use examples for the Tomcat examples
  WebAppDeployexamples  conn/example

 






-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: getting mod_webapps to work


I've managed to so far to figure out how
to add in the WebAppcConnection 
in my httpd.conf (or I think so) so
httpd doesn't complain anymore when
am reloading it, yet it still doesn't seem
to work.
 
Here is what I've got in my httpd.conf:
 
#Name based virtual hosts directives
 
NameVirtualHost 192.168.0.247


ServerName sol.lansa.co.uk
DocumentRoot /var/www/html

 
#tomcat webapps directive
 

ServerName sol.lansa.co.uk:8080/test
DocumentRoot /usr/share/tomcat/webapps/examples
WebAppConnectionconnWarplocalhost:8008
WebAppDeploytestconn/examples


What am I doing wrong? Can anyone show me a "typical example"
config?

As well am not too happy about having to specify port 8080
and I still want to serve static page on port 80. How would
I redirect something like:
http://sol.lansa.co.uk/test  
to tomcat?

Thanks for any help.

Dom
Dominique Cressatti
Newlook/PC/Network support
LANSA Ltd

 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Can anyone give me an answer?

2001-12-19 Thread Brian Adams

Hi Ed,
I do mine via apache httpd.conf

Alias /catgraphics/ "C:/Apps/Apache/catgraphics/"


Options FollowSymLinks
AllowOverride None


here is an alias...
now my web-app gets it like:
here



-Original Message-
From: Ed Turner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:09 AM
To: [EMAIL PROTECTED]
Subject: Can anyone give me an answer?


I am running a web application under Tomcat 3.2.3 and would like to
access existing jpeg files from the server's local disk.   Is there a
way to get to these files from my JSP without putting them under the web
app directory??   Any hints?


Ed


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: somebody trying hack me, what they really wanted?

2001-12-13 Thread Brian Adams

HA! your funny!  FBI stop building your Magic Lantern and come find the poor
sap that is trying to hack my free software nothing invested but time server
sitting in my broadband closet! 
Ya Right!

-Original Message-
From: Dr. Evil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: somebody trying hack me, what they really wanted?



I get those all the time.  I wish I could put a sign on my computer
that says, "You're wasting your time.  This machine is running
Tomcat/Linux.  Find someone running Windows".  On a more serious note,
this is a computer hacking attack, and it comes accross state lines.
Could I get the FBI to investigate these things?  I'm sure this is a
Federal crime.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Errors building mod_webapp for Apache 1.3

2001-12-13 Thread Brian Adams

It looks like there may by a problem with your apxs script.
if you don't know wa.h is in the webapps include and I see it here being -I
I had problems with apxs and had to change some lines in it.  1.3.22 sounds
kinda new, I am surprised that it did not work there.
maybe you can INCLUDE the includes in the Makfile in apache1.3 directory.
just a thought.
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:18 AM
To: Tomcat Users List
Subject: Errors building mod_webapp for Apache 1.3


I have checked out the latest cvs version of jakarta-tomcat-connectors
and followed the build instructions for webapp. On two different
systems (apache 1.3.9/22), I consitenly get the following error:


make[2]: Entering directory
`/home/craigm/src/jakarta-tomcat-connectors/webapp/apache-1.3'
{ APXS_LDFLAGS_SHLIB="`/usr/bin/apxs -q LDFLAGS_SHLIB` \
 \
-lm -lcrypt -lnsl -ldl" ; \
APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
APXS_CFLAGS="`/usr/bin/apxs -q CFLAGS` \
-g -O2 \
-g -O2 \
 \
-DLINUX=2 -D_REENTRANT \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/apr/include \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/include \
" ; \
APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/bin/apxs \
-S CFLAGS="${APXS_CFLAGS}" \
-S LDFLAGS_SHLIB="${APXS_LDFLAGS_SHLIB}" \
-o "mod_webapp.so" \
-c "mod_webapp.c" \
"/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libwebapp.a"
\
"/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libapr.a" ; \
}
Bareword found where operator expected at (eval 6) line 1, near ""-DLINUX=22
-DEAPI -DTARGET="apache"
(Missing operator before apache?)
String found where operator expected at (eval 6) line 1, at end of line
gcc -DLINUX=22 -DEAPI -DTARGET="apache" -I/usr/include/db1 -DUSE_HSREGEX
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fpic -DSHARED_MODULE
-I/usr/include/apache-1.3  -c mod_webapp.c
mod_webapp.c:70: wa.h: No such file or directory
apxs:Break: Command failed with rc=1

etc...
--


So what's the deal? Please tell me I am not a moron.

Later,
-- 
\ Craig "Cowboy" McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
Teenagers



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Errors building mod_webapp for Apache 1.3

2001-12-13 Thread Brian Adams

what OS and version?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 9:18 AM
To: Tomcat Users List
Subject: Errors building mod_webapp for Apache 1.3


I have checked out the latest cvs version of jakarta-tomcat-connectors
and followed the build instructions for webapp. On two different
systems (apache 1.3.9/22), I consitenly get the following error:


make[2]: Entering directory
`/home/craigm/src/jakarta-tomcat-connectors/webapp/apache-1.3'
{ APXS_LDFLAGS_SHLIB="`/usr/bin/apxs -q LDFLAGS_SHLIB` \
 \
-lm -lcrypt -lnsl -ldl" ; \
APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
APXS_CFLAGS="`/usr/bin/apxs -q CFLAGS` \
-g -O2 \
-g -O2 \
 \
-DLINUX=2 -D_REENTRANT \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/apr/include \
-I/home/craigm/src/jakarta-tomcat-connectors/webapp/include \
" ; \
APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/bin/apxs \
-S CFLAGS="${APXS_CFLAGS}" \
-S LDFLAGS_SHLIB="${APXS_LDFLAGS_SHLIB}" \
-o "mod_webapp.so" \
-c "mod_webapp.c" \
"/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libwebapp.a"
\
"/home/craigm/src/jakarta-tomcat-connectors/webapp/lib/libapr.a" ; \
}
Bareword found where operator expected at (eval 6) line 1, near ""-DLINUX=22
-DEAPI -DTARGET="apache"
(Missing operator before apache?)
String found where operator expected at (eval 6) line 1, at end of line
gcc -DLINUX=22 -DEAPI -DTARGET="apache" -I/usr/include/db1 -DUSE_HSREGEX
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fpic -DSHARED_MODULE
-I/usr/include/apache-1.3  -c mod_webapp.c
mod_webapp.c:70: wa.h: No such file or directory
apxs:Break: Command failed with rc=1

etc...
--


So what's the deal? Please tell me I am not a moron.

Later,
-- 
\ Craig "Cowboy" McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
Teenagers



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_webapp file upload fix

2001-12-13 Thread Brian Adams

here are instructions:
http://jakarta.apache.org/site/cvsindex.html

here is a web view of mod_webapp:
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/webapp/

-Original Message-
From: Dom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 4:21 PM
To: Tomcat Users List
Subject: Re: mod_webapp file upload fix


where can I get mod_webapp cvs ? I  can't fint it anymore.

Dom
 
- Original Message - 
From: "Brian Adams" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 9:39 PM
Subject: RE: mod_webapp file upload fix


> I think people were getting latest from cvs and compiling there own.
> you may try that.
> B
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 12, 2001 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: mod_webapp file upload fix
> 
> 
> Is there a new binary release of mod_webapp (for Linux) that fixes the
> binary file upload problem?
> 
> Later,
> -- 
> \ Craig "Cowboy" McDaniel
> /_\ Software Engineer
> /_/_\ n + 1, Inc.
> /_/_/_\ [EMAIL PROTECTED]
> /_/_/_/_\ (502) 479-5557
>  
> MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
> Teenagers
> 
> --
> 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: mod_webapp file upload fix

2001-12-12 Thread Brian Adams

I think people were getting latest from cvs and compiling there own.
you may try that.
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 3:00 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp file upload fix


Is there a new binary release of mod_webapp (for Linux) that fixes the
binary file upload problem?

Later,
-- 
\ Craig "Cowboy" McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
 
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools
Teenagers

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Crystal report work with Tomcat

2001-12-12 Thread Brian Adams

goodluck!  they are awesome.  we had all kinds of road blocks using the apps
that come with CR Enterprise edition and so I went looking for something
else and they were able to provide us with solutions (in pure java) to all
our problems.  This is an Enterprise app we are building so you can image
the problems that needed solving. they are great.
B

-Original Message-
From: Denis Balazuc [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 10:04 AM
To: Tomcat Users List
Subject: Re: Crystal report work with Tomcat


Hi Brian, hi all

I was not aware that Inet-Software was doing some CR stuff...
I'll have a closer look as we're already customers of this company (we
bought their JDBC driver for M$-SQL).
Seeing the stability of this driver, I have full confidance in them and I
must also say that the support is just great !

Thanks for the info !


Denis


- Original Message -----
From: "Brian Adams" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 10:36 AM
Subject: RE: Crystal report work with Tomcat


> Sorry I missed the thread.  I am working with Tomcat/CR for a project at
> work and we dropped the applet that crystal reports provides.  they have
not
> supported it for quite sometime now(htey are in bed with MS) and they
applet
> has bugs.   Denis is right though, I believe you just drop it in
> WEB-INF/lib.
>
> I too wrote all my dll's but I interacted with C++ (MFC) through JNI and
it
> is complicated.  We decide to use a company from Germany
> (www.inetsoftware.de) and it is working out really well.  Their prices are
> cheap and they provide a full java implimentation of what you want for
your
> RPT files.
> If it was not for them I would be working weekends trying to write all my
> functionality before the due date.
> Good luck,
> Brian
>



--
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: Crystal report work with Tomcat

2001-12-12 Thread Brian Adams

Sorry I missed the thread.  I am working with Tomcat/CR for a project at
work and we dropped the applet that crystal reports provides.  they have not
supported it for quite sometime now(htey are in bed with MS) and they applet
has bugs.   Denis is right though, I believe you just drop it in
WEB-INF/lib.

I too wrote all my dll's but I interacted with C++ (MFC) through JNI and it
is complicated.  We decide to use a company from Germany
(www.inetsoftware.de) and it is working out really well.  Their prices are
cheap and they provide a full java implimentation of what you want for your
RPT files.  
If it was not for them I would be working weekends trying to write all my
functionality before the due date.
Good luck,
Brian

-Original Message-
From: Denis Balazuc [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 9:51 AM
To: Tomcat Users List
Subject: Re: Crystal report work with Tomcat


Hi

We use CR within Tomcat, but we do NOT use the java API for the report
display applet. We actually create downloadable reports with various formats
(PDF, RTF, etc.), and do not display them. So the following may not apply to
you.

If your goal is only to show reports using their applet, my guess is that
you should be able to copy their JAR file(s) to your WEB-INF/lib and
use the Java API for the report applet.

For what we wanted to do, I had to actually write a few DLLs, since CR does
not provide any entry in its API that is java-based and that is aimed to
something else than displaying a report in an applet.

So here's the solution we have :
-- Report templates and logic are stored within a Visual-Basic DLL (CR
integration with C++ is a real pain) as DSR objects from CR dev components.
-- This DLL is loaded and accessed through JNI, but as JNI is C/C++ based,
we needed a C++ DLL that actually forwards all requests to the VB DLL...
-- The JNI DLL is loaded within Java using loadLibrary and a Java class
defines all the native methods accessible via JNI..

The VB dll is placed in the WEB-INF/lib folder and the jni access DLL is
placed in the JDK/bin directory.

Now the drawbacks :
It is complicated for no apparent reason (the only reason is that CR does
not provide any java entry point...), because there's 3 layers of code (java
class declaring native calls, JNI DLL, VB DLL)
It is a real pain trying to support multiple formats as CR 8.5 has an
incredible amount of bugs (PDF needs several patches).
It is a real pain to install the CR 8.5 dev components on the machine where
Tomcat runs because there's many patches to apply in a definite order.
It is not stable at all...it crashes every 2 or 3 days or so, but I cannot
blame CR for that because I haven't took the time to make sure it's not my
code that leaks memory...(although MSVC++ dumps do not show any leak) and
that JVM crashes I experience are not caused by my JNI calls.
And the worst is, despite what CR engineers said (until I sent them some
code proving the point), the export DLL they provide is not
multi-threadedwhich is a nightmare in a web-environment because every
creation of a report is queued...

Hope this helps you find another solution

Denis



- Original Message -
From: "Miao, Franco CAWS:EX" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 01:15 AM
Subject: Crystal report work with Tomcat


> Hi there,
>
> anyone has experience about show Crystal report in Jsp on Tomcat? anything
> need to install in Tomcat?
>
> Franco
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: need information

2001-12-11 Thread Brian Adams

I don't know how others do it but I unwar the file in the webapps so the
directory looks like /var/tomcat4/webapps/opencms then I make the
appropriate changes in either server.xml or where ever you register your
apps.
then I restart tommy! :)
HTH
B

-Original Message-
From: zarouali rachid [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 5:49 AM
To: [EMAIL PROTECTED]
Subject: need information


anyone may help me please,

i would like to deploy an application opencms.war wich is in
/var/tomcat4/webapps/

and while tomcat4 restart it didn't deploy it , how can i do it manualy
please ?


thanks for your help


Sincerely 

Rachid

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on AIX 4.33

2001-12-10 Thread Brian Adams

I think there was someone else having problems this morning with an AIX
build as well. have  you checked the archive of this mail list?
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

B

-Original Message-
From: Liedtke, Joerg [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 8:44 AM
To: Tomcat (E-mail)
Subject: error while building mod_jk.so Tomcat 3.3 + Apache 1.3.22 on
AIX 4.33


Hello all,

I have a problem when building mode_jk.so on AIX.

At the beginning, everything works fine but then I get:

"mod_jk.c", line 1286.6: 1506-026 (S) Number of initializers cannot be
greater than the number of aggregate members.
apxs:Break: Command failed with rc=1

Can anyone help me please???


Kind regards

Jörg Liedtke

mailto:[EMAIL PROTECTED]

I build the apache with:

./configure --prefix=/usr/local/apache --enable-module=most
--enable-shared=max --enable-rule=SHARED_CORE

Here my apxs Flags:
---
my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl
my $CFG_CC= q(cc);# substituted via
Makefile.tmpl
my $CFG_CFLAGS= q( -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
-U__STR__ -DAIX_BIND_PROCESSOR -qcpluscmt -qnogenpcomp -qnousepcomp
-DMOD_SSL=207101 -DMOD_PERL -DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE
-D_POSIX_SOURCE -qmaxmem=16384 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT
-I../lib/expat-lite `../apaci`);# substituted
via Makefile.tmpl
my $CFG_CFLAGS_SHLIB  = q(-DSHARED_MODULE);  # substituted via
Makefile.tmpl
my $CFG_LD_SHLIB  = q(ld);  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bexpall
-bI:/usr/local/apache2/libexec/httpd.exp -lc -ldl); # substituted via
Makefile.tmpl
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl
my $CFG_PREFIX= q(/usr/local/apache2);# substituted via
APACI install
my $CFG_SBINDIR   = q(/usr/local/apache2/bin);   # substituted
via APACI install
my $CFG_INCLUDEDIR= q(/usr/local/apache2/include);# substituted
via APACI install
my $CFG_LIBEXECDIR= q(/usr/local/apache2/libexec);# substituted
via APACI install
my $CFG_SYSCONFDIR= q(/usr/local/apache2/conf);# substituted via
APACI install
-

cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include  -c
jk_ajp12_worker.c
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include  -c
jk_ajp13.c
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include  -c
jk_ajp13_worker.c
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include  -c
jk_connect.c
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include  -c
jk_jni_worker.c
"jk_jni_worker.c", line 739.28: 1506-068 (W) Operation between types
"long(*)(const struct JNIInvokeInterface_***,const struct
JNINativeInterface_***,void*)" and "void*" is not allowed.
"jk_jni_worker.c", line 740.34: 1506-068 (W) Operation between types
"long(*)(const struct JNIInvokeInterface_***,int,int*)" and "void*" is not
allowed.
"jk_jni_worker.c", line 741.43: 1506-068 (W) Operation between types
"long(*)(void*)" and "void*" is not allowed.
cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR
-qcpluscmt -qnogenpcomp -qnousepcomp -DMOD_SSL=207101 -DMOD_PERL
-DUSE_PERL_SSI -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/local/apache2/include -I/usr/java130/include  -c
jk_lb_worker.c
cc

RE: Regarding tomca and servelt

2001-12-10 Thread Brian Adams

Jegan, You haven't said a thing about httpd.conf... what is in it?  what did
you add to it?
do you tell apache where to find /ectu/?
if you are going to appaches port (assuming 80) then httpd.conf must be
configured to call tomcat.
maybe send some information about httpd.conf file.
thanks,
B

-Original Message-
From: Jagan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 10:20 PM
To: Tomcat Users List
Subject: Regarding tomca and servelt


hi!
i am using tomcat 4 and Apache1.3.12
my application structure is
my application dir. name is myapp
and under my app
all my .jsp and .htm files are under my app directly,
my classes are under myapp/WEB-INF/classes/myapp
in myapp/WEB-INF/classes/myapp, i had one Manager servlet from which i had
to transfer my path.
for ex:Manager?action="here i will give class"&page="here i will give jsp
page".
i had done changes in web.xml as below:

  Manager
  
   initParam1
   value1
  
  
   initParam2
   value2
  
  
   ectu.Manager
  
  
  



Manager


/Manager



when i had done thos changes and i will run my application,
i am getting below error:
Apache Tomcat/4.0.1 - HTTP Status 404 - /ectu/




type Status report

message /ectu/

description The requested resource (/ectu/) is not available

if i am not changing anything in my web.xml
the application is successfully running for .jsp & .htm but wen i am
accessing through Manager
means my URL is:"/Manager?action='myclass'&page='myjsppage'"
i am getting below error:
Apache Tomcat/4.0.1 - HTTP Status 404 - /Manager




type Status report

message /Manager

description The requested resource (/Manager) is not available


can anybody help me?

Thanks and Best Regards.
Jagan Mohan
Project Consultant
Unidux Technologies Pte Ltd
(subsidiary of the public-listed Unidux Electronics Ltd)
TEL: (65) 293 4797
FAX: (65) 293 4920


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Help needed: SocketException killing Tomcat 4.0.1 !?

2001-12-10 Thread Brian Adams

sounds like the sam problem I had when using mod_webapp  I reconfigured it
for good old jk_mod and all is well.
B

-Original Message-
From: Guillaume Mathe [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 2:32 AM
To: [EMAIL PROTECTED]
Subject: Help needed: SocketException killing Tomcat 4.0.1 !?


Hi again,

This post must have been lost in the flow... I really need help on that,
because a self-destructing Tomcat will not help me deploy my commercial
webapp...
Here's the setup:
- Tomcat 4.0.1, windows 98SE or 2000/Server
- Direct servlet access from port 8080
- JDK/JRE 1.3.1 from Sun or JRE 1.3.0 from IBM, tested both
- Also compiled with JDK1.4, just to make sure it's not my JDK
- Crash test servlet: a image/jpeg content-type servlet, using Sun's JPEG
codec. Using a BufferedOutputStream. The servlet works fine when called 
normally. (you can create a blank image, no need to draw anything - a wait
loop would be useful though...)

Crash test procedure:
- Open a browser and call the servlet. (with a  )
- BEFORE the servlet has finished encoding the JPEG, click on STOP, BACK, or
a link going elsewhere.

Result:
- A SocketException: connection reset by peer shows up, as expected.
- The exception is thrown  by out.close() ('out' being the
BufferedOutputStream given to the JpegEncoder) and is NOT catched by the
servlet ! quite 
unexpected...
- Catalina dies, now that is unexpected ! Logs generally do not reflect the
fatal exception.
- Under windows98SE it dies with a fatal error... 

My questions:
- Is it a *known* bug of Catalina ?
- If yes, has it been fixed in a recent build ?
- How can i trap this exception ? I want to handle properly client
disconnects by closing resources and stopping SQL queries etc... Currently
even if i put a 
catch() at each level up to GenericServlet, it goes through.

Regards,
Guillaume Mathe
Smartinnov


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error

2001-12-10 Thread Brian Adams

permissions right on the directories and files?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 9:40 AM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error


Hi Everyone,

We are using Apache 4.0.1, Red Hat Linux 7.1, and Java black sown 1.3.0.02.

After the tomcat restarted, the pages callsJava class are all shown this
error:

Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
Type: Exception report
Message: Internal Server Error
Description: The server encounterred an internal error(Internal Server
Error) that prevented it from fulfilling this request.
exception:

org.apache.jasper.JasperException: Unable to compile class  
for JSPerror: Can't write: /data/domains/   
 java/search/search.jsp 
  error:  Can't write: /data/domains/   
 java/WEB-INF/classes/search.class  

 1 error

   at   
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) 
 at 
 org.apache.jasper.servlet.JspServlet.1 oadJSP  
 (JspServlet.java:546)  
 at 
 .  
 .  
 . a lot of other errors

 After this error occured, refresh the page, then the error is  
 gone.  Every page needs to do the refresh. 

 Does anybody know why? 





Thanks

Junying Du


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Jakarta NT SERVICE--- logout USER

2001-12-10 Thread Brian Adams

$ java -X
-Xbootclasspath:
  set search path for bootstrap classes and resources
-Xnoclassgc   disable class garbage collection
-Xmsset initial Java heap size
-Xmxset maximum Java heap size
-Xrs  reduce the use of OS signals
-Xcheck:jni   perform additional checks for JNI functions
-Xrunhprof[:help]|[:=, ...]
  perform heap, cpu, or monitor profiling
-Xdebug   enable remote debugging
-Xfuture  enable strictest checks, anticipating future default

The -X options are non-standard and subject to change without notice.

-Original Message-
From: Pae Choi [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 9:17 AM
To: Tomcat Users List
Subject: Re: Jakarta NT SERVICE--- logout USER


Wesley,

What the "rs" option does in the "-Xrs" option?


Pae


> Use the -Xrs option when starting the JVM.
> 
> Wesley
> 
> > -Original Message-
> > From: Catalin [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 10, 2001 2:55 PM
> > To: [EMAIL PROTECTED]
> > Subject: Jakarta NT SERVICE--- logout USER
> > 
> > 
> > Hello to everybody!
> > 
> > 
> > I have a jakarta-tomcat-3.3m4 on a Win2k system and
> > I have a problem:
> > every times one user of Operating System logout, the
> > service it
> > stoppes. :-(
> > Where do I need to modify the config so that will
> > not be happens any
> > more??
> > 
> > Thanks!!
> 
> 
> __
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: : newbie tomcat 4.0.1installation on NT

2001-12-08 Thread Brian Adams

your right I have not seen anyone with this problem.
If you hava a package in your classpath that has org.apache.naming it may
get confused and not see the one in your bootstrap.jar.  that is why I asked
what your classpath looks like.

I am not sure what to do at this point
:(



-Original Message-
From: John Kilbourne [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 09, 2001 12:47 AM
To: Tomcat Users List
Subject: : newbie tomcat 4.0.1installation on NT


While waiting for the download, I unzipped the tomcat I downloaded
earlier today, and had the same results, which is what happened with
the newly installled version. I un-jarred the bootstrap.jar just to
be sure the Naming/jndiPermissions class was in there (it was). If
the class is in the jar that is also the current directory, and my
setCLASSPATH command ended in a period (all true), then what is going
on here? I tried compiling some other java source I had lying around,
and had no problem. I feel I understand tomcat installation much
better, except that I still can't get it to work. I would start over,
except I've done that twice already. I am tempted to just use the old
jwsdk, even though it is out of date; I just want this servlet of
mine to run. I don't see similar questions to mine on the archives,
so others must not be having my frustration.

Any advice?

John




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: RE: RE: RE: newbie tomcat 4.0.1installation on NT

2001-12-08 Thread Brian Adams

BTW, Don't add anything new to the new install just unzip it and run the
catalina.bat run command.


classpath is used generally for .jar files it allows you to "INCLUDE" other
libraries that you may need in order to compile your program.  Everytime you
use import at the top of your code the compiler needs to look into the
packages/jars listed in classpath to see if they are real and if your
program is using them correctly.

PATH on the other had really just holds the executable (exe, bat,...) so you
don't have to type C:\winnt\cmd.exe  you can just type cmd.exe. Windows
looks through your PATH for cmd.exe

better understood?


-Original Message-
From: John Kilbourne [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 09, 2001 12:01 AM
To: Tomcat Users List
Subject: Re: RE: RE: RE: newbie tomcat 4.0.1installation on NT


Yes they are all System environment variables. While I've been
unclear on the precise difference between the environment variable
PATH and the java classpath (and the command line use of % and ; in
setting the classpath), I've been using java for about 8 months
without too much trouble.



-- Reply Separator ----
Originally From: "Brian Adams" <[EMAIL PROTECTED]>
Subject: RE: RE: RE: newbie tomcat 4.0.1installation on NT
Date: 12/08/2001 11:53pm


are these System variables?
right click My Computer then properties then the advanced tab then
environment variables and in the System one?

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




  1   2   >