RE: Servlet loading on linux startup

2000-10-30 Thread Kitching Simon

Hi,

Maybe this is a file permissions or paths problem...

Check what user tomcat runs as when started from inittab.
Is this the same user you use when you "log in to linux" to
start tomcat? If not, does this user have access permissions
to the WEB-INF/classes directory, the web.xml file, etc?

What about the environment variables like TOMCAT_HOME?
Are they set correctly when tomcat is started from inittab?

Regards,

Simon

> -Original Message-
> From: Domenico di Girolamo [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, October 30, 2000 7:31 PM
> To:   Tomcat ML
> Subject:  Servlet loading on linux startup
> 
> If I start Tomcat from inittab on linux startup it do not
> load servlets on web.xml configured as load on startup.
> If I login into linux and stop and restart tomcat then it
> load servlets on startup.
> How can I solve this problem ?
> thanks
> Domenico



Re: catalina.sh IS tomcat.sh ?

2000-10-30 Thread mike niemaz

"Craig R. McClanahan" wrote:

> For the purposes of starting up Tomcat 4.0, this is correct -- use
> catalina.sh or catalina.bat instead of tomcat.sh / tomcat.bat.
>

> >
> > Any more noticeable diffs?
> >
>
> Quite a few.  One of the primary reasons that Tomcat 4.0 is still
> "pre-alpha" is (incomplete or missing) documentation -- the code quality
> is getting there :-).
>
> Interesting differences:
>
> * No web connectors yet, only runs stand alone
>   (this is being actively worked on).

Thank you Craig.
I'm using TomCat on Apavhe so i guess I shall wait
for the web connectors ;-)

--mike




Help ME !!

2000-10-30 Thread 朱庭輝



I am trying to integrate romcat with netscape 
enterprise on solaris unix,
How can build the nsapi_refirect and configure 
it?
There is only documentation & binary build for 
windows.So please help !!


RE: NT-Service-Howto

2000-10-30 Thread Hovnan Jonah Alexanian

Hi Again,

Everything is fine now.  I had to use version 3.2 beta 6 for everything.
Cound not mix them up.

Regarfds,
Jonah

-Original Message-
From: Hovnan Jonah Alexanian [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:39 PM
To: [EMAIL PROTECTED]
Subject: RE: NT-Service-Howto


oops forgot to tell you that I am using Tomcat v3.1

but I also downloaded version 3.2 beta 6 and tried with that one but same
results

-Original Message-
From: Hovnan Jonah Alexanian [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:09 PM
To: [EMAIL PROTECTED]
Subject: NT-Service-Howto


Hi,

I am a new tomcat user and for the last two days I have been trying to
install the NT-Service.  Can you help me...

I downloaded jk_nt_service.exe and wrapper.properties.  Made the two changes

wrapper.tomcat_home = c:\tomcat
wrapper.java_home = c:\jdk1.2.2

then I ran jk_nt_service -i Jakarta wrapper.properties.

the wrapper.properties files is located in the same dir as the exe

jk_no_service installed the service and reported no errors but the service
does not start.

I can manualy start tomcat and execute the examples.  I think AJPV12
connecter is installed and running because there is an entry in the
server.xml file plus i am able to start and stop tomcat using the supplied
code.  I can even run the isapi version from iis.

Is there any error file jk_nt_service writes to that I can read and find out
what is going on?
I am using Windows2000 Advanced Server with and without IIS.

>From nt services i can see that Jakarta service is installed but after i
start it it stops a second after it starts.

Best regards
Hovnan Jonah Alexanian
(818) 954-4453






Re: jsp compilation problem

2000-10-30 Thread Julio Serje (@canada.com)

Hi, Sibon

Looks like you are not putting your class Service800NumberBean in the right
place... (WEB-INF/classes, WEB-INF/lib, or the system CLASSPATH).

If you haven't  jar'ed your class it should be located at:

/tomcat/webapss/yourapp/WEB-INF/classes/com/ss8networks/smp/sms/provisioning
/jsp.

By the way, looks like you might be my neighbour  (I'm at Calian, just next
door in the same building as SS8 premises in Kanata).

Julio Serje
Calian Tech


(613) 599-8600 x501

- Original Message -
From: Sibon Barman <[EMAIL PROTECTED]>
To: tomcat-user <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 4:13 PM
Subject: jsp compilation problem


> Hi all,
> Here is a snippet of jsp code that I am having trouble in compiling jsp
> pages:
>  class="com.ss8networks.smp.sms.provisioning.jsp.Service800NumberBean" />
> <% QuestionnaireTreeModel model = traverser.getModel();
>if (model != null){
>   model.clearProvisionedData(model.getRoot().getInstanceID());
>}
> %>
>
> I get the following error:
> Error: 500
> Location: /provision/service800number_start.jsp
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Unable to compile class for
>
JSPD:\jakarta-tomcat\work\localhost_8080%2Fprovision\_0002fservice_00038_000
>
30_00030number_0005fstart_0002ejspservice800number_0005fstart_jsp_0.java:60:
> Undefined variable or class name: traverser
>  QuestionnaireTreeModel model = traverser.getModel();
> ^
> 1 error
>
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> Code)
> at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> rvlet.java:149)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:161)
> at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code)
> at
>
org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
> ava:163)
> at
>
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357)
> at
>
_0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_0002ejsplogin_jsp_0.
> java:75)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:174)
> at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java, Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
>
>
> The problem seem to happen with only TomCat but when I run the same page
> under weblogic it runs smoothly. Can somebody please let me know what I am
> doing wrong or is it a bug in TOMcat jsp engine.
>
>
> Cheers,
> Sibon.
>




Re: ClassCastException,Beans, and Constant Restarts

2000-10-30 Thread Julio Serje (@canada.com)

I agree with you, there's no clarity about that issue, so I tried to put
together some of the references in the different available documents:

>From the User Guide, defining the RELOADABLE parameter of the  tag
in server.html:

"When developing a servlet it is very convenient to have Tomcat reload it
upon change, this lets you fix bugs and have Tomcat test the new code
without the need to shutdown and restart. To turn on servlet reloading set
the reloadable flag to true. Detecting changes however is time consuming;
moreover, since the new servlets are getting loaded in a new class-loader
object there are cases where this class-reloading trigger casts errors. To
avoid these problems you can set the reloadable flag to false; this will
disable the autoreload feature."

>From "Real World Configuration Tips":

"Servlet auto-reloading is really useful for development time. However it is
very expensive (in performance degradation terms) and may put your
application in strange conflicts when classes that were loaded by a certain
classloader cannot co-operate with classes loaded by the current
classloader.

So, unless you have a real need for class reloading during your deployment
you should turn off the reloadable flag in your contexts. "

>From the Tomcat FAQ: "Does Tomcat reload changed servlets? "

"Tomcat 3.1b reload changed servlets from it's WEB-INF directories.

Note: Do NOT include the classes or .jar files from WEB-INF directories for
which you want to enable automatic servlet reloading in the CLASSPATH of the
shell that starts Tomcat.

I had a two-day struggle with init-files, classpaths, reloads etc. before I
spotted a small comment in tomcat.properties that states the CLASSPATH for
the
main execution of Tomcat must not contain servlets one wants to reload - and
now
I just want to let you know :) "


>From my experience with Tomcat 3.1:  (maybe things have changed for 3.2 B6,
the current milestone)

- JSP's are regenerated and reloaded OK when they change.
- Classes are NOT reloaded (succesfully) no matter if they are in the system
CLASSPATH or in the WEB-INF directory You will always have to restart
Tomcat


Julio Serje
Calian Tech.
Ottawa, Canada.





- Original Message -
From: Steve Goyette <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 2:16 PM
Subject: ClassCastException,Beans, and Constant Restarts


> I have read quite a few posts regarding this, but I could not find a clean
> cut answer.  Using Tomcat 3.2 can I make changes to a bean, recompile,
touch
> my JSP file that accesses that bean, and view my page with the new bean?
> Currently I am getting a ClassCastException.  Why, when the JSP file has
to
> be recompiled, does it not find the new version of the bean?  Is there a
> workaround for this?
>
> thanks in advance,
>
> steve
>
>




Installing jserv webapp

2000-10-30 Thread David Knaack

I have a system that was designed to run with apache
and jserv that I would like to get working on my
server using tomcat (3.1).  The system (siteforum)
normally comes with its own apache distribution with
jserv and all the configuration files pre-built.

I have a virtual host set up that I would like to
install all the siteforum stuff into, but I'm at
a loss as to how to migrate the settings from its
jserv.conf, properties and zone files over into 
the tomcat setup.

The main problem at the moment is that the URL
/servlets/sfs  doesn't bring anything up.  There
is a jserv mount setup as /servlets /sfs, and
a rewrite rule that looks like:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !^/servlet/sfs
RewriteRule ^/servlet/(.*) $1 [R]

Which I do not understand.

Any suggestions would be appreciated.

Thanks
DK
--
99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again, 101 little bugs in the code.





Re: freebsd, jdk1.2, tomcat 3.1 help

2000-10-30 Thread Michael Westbay

Haberman-san wrote:

> I can't get tomcat 3.1 to run under freebsd 
> 
> 3.4-RELEASE FreeBSD 3.4
> Classic VM (build Linux_JDK_1.2.2_RC4, green threads, sunwjit)

I have not problem running the native FreeBSD port of 1.2.2
on FreeBSD 4.1-RELEASE.

Have a look at

http://java2.freebsd.methodsystems.com/java/jdk.html

for the patchset.  Koster-san has prepared an excellent tutorial
on getting it all compiles at:

http://web.inter.nl.net/users/kjkoster/java/index.html

Also, I see that you have a JIT running.  Was that JIT compiled
for the Linux JDK 1.2.2?  Or was it compiled for the native
1.1.8?

> Here's the message I get When I try to connect 
> 
> Error reading request Resource temporarily unavailable: Resource temporarily una
> vailable

Do you know what resource it is talking about?  Is it a 
ResourceBundle?  Is it in your 1.1.8 classpath, but not your
1.2.2 classpath and/or tomcap classpath?

--
Michael Westbay
Work: Beacon-IT http://www.beacon-it.co.jp/
Home:   http://www.seaple.icc.ne.jp/~westbay
Commentary: http://www.japanesebaseball.com/



Auto-Setting CLASSPATh during ANT compilation

2000-10-30 Thread Mike Papper

Hello, I have been using Ant + Tomcat for a little while and I have added 
more and more Java libraries (like struts, Universe, mail). Each time I 
do so, I need to update the CLASSPATH environment variable on my machine 
to include the new Jar and Zip files.

This is NOT because the it wont run, as Tomcat will use all files in the 
WEN-INF/lib/ directory and add these to the classpath.

The reason I have to add these Jar and Zip files explicitly to my 
CLASSPATH is because I cannot compile otherwise. Is there anyone whos 
figured out a clean way to have the ant compilation process also include 
these files (either in tomcat/webapps/WEB-INF or my working directories 
lib directory) into the CLASSPATH for compilation?

Could you email me any ideas?
Mike Papper
[EMAIL PROTECTED]



server.xml and individual servlets

2000-10-30 Thread Scott Goldstein



I'm fairly new to 
Tomcat and I have a configuration question. 
 
I want to register a 
number of individual servlets without grouping them under a web application as 
follows:
 
path = 
domain/servlet1  will invoke servlet1
path = 
domain/servlet2  will invoke servlet2
  
.    

  .
  
.
 
 
 
It seems that a 
"Context" tag will define a complete web app causing Tomcat to locate servlets 
specified in an associated Web Application Deployment Descriptor.  Is there 
another tag in the server.dtd that will allow me to specify individual servlets 
as I've described above?
 
Thanks for the 
info.
 
Scott


RE: NT-Service-Howto

2000-10-30 Thread Hovnan Jonah Alexanian

oops forgot to tell you that I am using Tomcat v3.1

but I also downloaded version 3.2 beta 6 and tried with that one but same
results

-Original Message-
From: Hovnan Jonah Alexanian [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:09 PM
To: [EMAIL PROTECTED]
Subject: NT-Service-Howto


Hi,

I am a new tomcat user and for the last two days I have been trying to
install the NT-Service.  Can you help me...

I downloaded jk_nt_service.exe and wrapper.properties.  Made the two changes

wrapper.tomcat_home = c:\tomcat
wrapper.java_home = c:\jdk1.2.2

then I ran jk_nt_service -i Jakarta wrapper.properties.

the wrapper.properties files is located in the same dir as the exe

jk_no_service installed the service and reported no errors but the service
does not start.

I can manualy start tomcat and execute the examples.  I think AJPV12
connecter is installed and running because there is an entry in the
server.xml file plus i am able to start and stop tomcat using the supplied
code.  I can even run the isapi version from iis.

Is there any error file jk_nt_service writes to that I can read and find out
what is going on?
I am using Windows2000 Advanced Server with and without IIS.

>From nt services i can see that Jakarta service is installed but after i
start it it stops a second after it starts.

Best regards
Hovnan Jonah Alexanian
(818) 954-4453







Execute JSP's in a different directory - sans-examples.

2000-10-30 Thread Sterling

H-

I've been poking around the docs and archives for this list and from
what I see there isn't a simple way to make this happen.
Set up another directory that will execute JSP files without having to
go through examples. (And from what I've seen this directory cannot be
inside the httpd/htdocs directory either. True?)

For example:
Add to tomcat-apache.conf file:
ApJServMount /MYDIRECTORY ajpv12://127.0.0.1:8007

Create a directory inside
/usr/local/tomcat/webapps/MYDIRECTORY

Create all the special JSP files and dirs in that directory
META-INF, WEB-INF, images, jsp, servlets.

Now modify the web.xml file inside WEB-INF to include every servlet that
I'm going to use. When I create another servlet I must re-edit this file
to include that servlet than reload Tomcat, Restart Apache.

This can't be right. This is a lot of configuring just to pull up
http://www.myserver.net/MYDIRECTORY
and have it pull and executes JSP files.

Is this the only way (did I even get it right?) or am I reading the
wrong information?

Thanks for any thoughts or insights you might have.
-Sterling





Re: (Possible VIRUS) Re: ???????? - ????????????

2000-10-30 Thread Ray Allis

Crashed Netscape 4.73 on my Solaris SPARC.  But Netscape 6 renders
a very nice page in Chinese? and let me delete it so I could
go back to the older Netscape.  

Ray Allis
--
William Brogden wrote:
> 
> Crashed my Netscape 4.61 but I don't think it was a virus,
> just some really weird data.
> --
> WBB



NT-Service-Howto

2000-10-30 Thread Hovnan Jonah Alexanian

Hi,

I am a new tomcat user and for the last two days I have been trying to
install the NT-Service.  Can you help me...

I downloaded jk_nt_service.exe and wrapper.properties.  Made the two changes

wrapper.tomcat_home = c:\tomcat
wrapper.java_home = c:\jdk1.2.2

then I ran jk_nt_service -i Jakarta wrapper.properties.

the wrapper.properties files is located in the same dir as the exe

jk_no_service installed the service and reported no errors but the service
does not start.

I can manualy start tomcat and execute the examples.  I think AJPV12
connecter is installed and running because there is an entry in the
server.xml file plus i am able to start and stop tomcat using the supplied
code.  I can even run the isapi version from iis.

Is there any error file jk_nt_service writes to that I can read and find out
what is going on?
I am using Windows2000 Advanced Server with and without IIS.

>From nt services i can see that Jakarta service is installed but after i
start it it stops a second after it starts.

Best regards
Hovnan Jonah Alexanian
(818) 954-4453







Re: (Possible VIRUS) Re: ???????? - ????????????

2000-10-30 Thread William Brogden

Crashed my Netscape 4.61 but I don't think it was a virus,
just some really weird data.
-- 
WBB



Re: strange applet/plugin issues

2000-10-30 Thread Harding, David

now things are working againodd...very oddi think maybe my jdk/jre
install is not clean.

hr



Re: (Possible VIRUS) Re: ???????? - ????????????

2000-10-30 Thread neo

Well,

It crashed NetScape 4.75...
I have BI at paranoid and McAfee on every file coming in my box --
Go figure...


"C. Jason Benedict" wrote:

> i have cut the binary code out of this one
>
> sinboda wrote:
>
> >  [Image]




strange applet/plugin issues

2000-10-30 Thread Harding, David

im not sure where to get help on this one but here goes...perhaps someone
here has had this problem:

i am developing swing applets on a freebsd machine running tomcat 3.1.  i
write two hello world type applets that used swing.  on my client machine
(redhat 7, netscape 4.75) i installed the java plugin 1.3 so that i could
view these applets in netscape.  so the plugin was installed and i tested it
by hitting some sample applets found in the Java Tutorial (Applet trail - on
http://java.sun.com)...everything works.  so i decide to build my webapp and
deploy it.  i do this with no errors or warnings.  so far so good.  then i
decide to test out my applets (which by the way are called by using
).

Applet 1: HelloSwingApplet - runs fine and all works !!!
Applet 2: HeadingApplet - does not work, down in the status bar i get the
following message:  "Start: applet not initialized" and the applet area on
the page shows the text "Loading Java Applet ... ".

so i check and double and triple check my applet 2 code. everything is fine.
i try copying the HelloSwingApplet code (with class name changed of course)
to HeadingApplet and still the one works but the other does not.  the two
are, save the class and file name, identical.

G.

then it gets really wierd...i aska friend with a windows machine to hit the
pages to see if i get any more information on the problem.  he cannot get
either applet to work.  i scream.  then i go back to my desk and try both on
my machine again, only one works.  so i search sun's site, the tomcat
mailing list archive, and start looking at newsgroupsi do not find
anything so i just restart tomcat and netscape and try again on my
machinethis time NEITHER WORKS!!!   ack! nothing changed in the
codejust a restart of the server!

this is driving me crazy.  i will continue to try and dig up info on this
but was hoping that someone else on this list knew what was going on.

thanks in advance.

bleh,
  david




Tomcat with Apache

2000-10-30 Thread Juan Esteban
Title: Tomcat with Apache





There all,


I am new with Tomcat, and my question is:
It is possible to configure Tomcat with Apache web server,
and make that Tomcat start automatically when Apache do?
I will appreciate if someone can help me, or send to my an example of howto!


By the way, it's Tomcat a wood engine to run JSP pages?
I use to work with JServ and GNP-JSP as the compiler...


Thank for all!!



PD: sorry for my english.





Re: jsp compilation problem

2000-10-30 Thread Pierre Delisle

Fix the typo and that should work.



-- Pierre


Sibon Barman wrote:
> 
> Hi all,
> Here is a snippet of jsp code that I am having trouble in compiling jsp
> pages:
>  class="com.ss8networks.smp.sms.provisioning.jsp.Service800NumberBean" />
> <% QuestionnaireTreeModel model = traverser.getModel();
>if (model != null){
>   model.clearProvisionedData(model.getRoot().getInstanceID());
>}
> %>
> 
> I get the following error:
> Error: 500
> Location: /provision/service800number_start.jsp
> Internal Servlet Error:
> 
> org.apache.jasper.JasperException: Unable to compile class for
> JSPD:\jakarta-tomcat\work\localhost_8080%2Fprovision\_0002fservice_00038_000
> 30_00030number_0005fstart_0002ejspservice800number_0005fstart_jsp_0.java:60:
> Undefined variable or class name: traverser
>  QuestionnaireTreeModel model = traverser.getModel();
> ^
> 1 error
> 
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> Code)
> at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
> at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> rvlet.java:149)
> at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:161)
> at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code)
> at
> org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
> ava:163)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357)
> at
> _0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_0002ejsplogin_jsp_0.
> java:75)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:174)
> at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java, Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
> 
> The problem seem to happen with only TomCat but when I run the same page
> under weblogic it runs smoothly. Can somebody please let me know what I am
> doing wrong or is it a bug in TOMcat jsp engine.
> 
> Cheers,
> Sibon.



Tomcat Netscape on Sun Solaris

2000-10-30 Thread Nijholt, Ralf

Hello there,
For our project we want to use Tomcat as JSP/Servlet engine cooperating with
Netscape iPlanet webserver. I read the Tomcat Netscape howto document. One
of the installation/configuration steps is web server plugin. On NT we must
use the nsapi_redirect.dll, but what redirector must we use on Unix
(Solaris)? 

Best regards,
Ralf Nijholt

NOBLE(STAR
Ralf Nijholt
Technical Manager Benelux

Rijksstraatweg 104
3532 AD Loenen a/d Vecht
+31 294 237 260 (Office)
+31 294 230 254 (Fax)
+31 622 455 274 (GSM)
[EMAIL PROTECTED]
http://www.noblestar.com




jsp compilation problem

2000-10-30 Thread Sibon Barman

Hi all,
Here is a snippet of jsp code that I am having trouble in compiling jsp
pages:

<% QuestionnaireTreeModel model = traverser.getModel();
   if (model != null){
  model.clearProvisionedData(model.getRoot().getInstanceID());
   }
%>

I get the following error:
Error: 500
Location: /provision/service800number_start.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta-tomcat\work\localhost_8080%2Fprovision\_0002fservice_00038_000
30_00030number_0005fstart_0002ejspservice800number_0005fstart_jsp_0.java:60:
Undefined variable or class name: traverser
 QuestionnaireTreeModel model = traverser.getModel();
^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
Code)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:161)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
ava:163)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357)
at
_0002flogin_0002ejsplogin_jsp_0._jspService(_0002flogin_0002ejsplogin_jsp_0.
java:75)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)


The problem seem to happen with only TomCat but when I run the same page
under weblogic it runs smoothly. Can somebody please let me know what I am
doing wrong or is it a bug in TOMcat jsp engine.


Cheers,
Sibon.




Raven SSL and Tomcat

2000-10-30 Thread Ranko Bijelonic


Does anyone have these two running together?  I'm having major trouble
(HANDLER THREAD PROBLEM).
Thank you,

ranko




RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)

2000-10-30 Thread Ranko Bijelonic

Thanks guys, dowloaded, compiled, and working (kind of)

-Original Message-
From: Jagannathan, Giri (c) [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)


U got to download the source dist. of tomcat 3.2b6 or later & build the
mod_jk modules & 
follow the instructions given in this link:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

Giri

-Original Message-
From: Ranko Bijelonic [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)


Speaking of mod_jk, where can I find the source and instructions to compile
it?
Apache complains that the one I downloaded (linux i386) is 'garbled'.
Thanks,

ranko

-Original Message-
From: Kenneth Topp [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 1:45 PM
To: [EMAIL PROTECTED]
Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu)



I've just noted a issue with mod_jk, causing the webserver to run out
of control.  The tomcat (3.2b4) process was restarted, and about 10 of the
apache httpd's started consuming all of CPU.

I had to kill them, but didn't need to restart apache in general. I (under
linux) straced' the process, and it was repeating recv syscall.

Anyone have expierience with this problem?

I will try to repeat the problem with b6...  I think the only thing that
was different was possibly requests in midstate.

Thanks,

Kenneth Topp
---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html





uninitialized instance variables in servlet

2000-10-30 Thread Tom O'Connor

In the init() method of my Servlet class, I populate 2 String instance
variables that are later used in the doPost() method.  The String values are
populated by calling .getInitParameter() on the ServletConfig instance
passed into init().  I verify that the String returned from
.getInitParameter() != null inside init().

After tomcat starts, I start a client program that generates HTTP requests
aimed at the servlet.  More often than not, these requests fail with 500
Server Error as the response.  For each failed request, in
$TOMCAT_HOME/logs/tomcat.log there is a
NullPointerException and a stack trace, and the stack trace points me to a
line in my servlet where I invoke a method on the String instance variables
that should have been initialized in init().

This is *NOT* a configuration file issue.  I can say this because in the
same webapp, I have 2 servlets that each have the same servlet-class element
in web.xml.  The first servlet will generate failures (sometimes) but the
second servlet (which is the same class, but a different instance) will
succeed.  The only thing different between the two instances are the
init-param values in web.xml.  I also swap which servlet I invoke first and
it's the first servlet invoked that fails.

I've tried this using both Apache+mod_jk over Ajp13, and invoking the
servlet directly through Tomcat's HTTP adapter.

Doesn't the servlet spec say that no thread shall enter Servlet.service()
until Servlet.init() has successfully completed?  If that's true, how can my
instance variables be null?

The servlet looks like this:

public class S extends HttpServlet {
   private String n = null;
   private String v = null;
   public void init(ServletConfig config) throws ... {
  super.init(config);
  n = config.getInitParameter("n");
  v = config.getInitParameter("v");
  if (n == null) throw new UnavailableException();
  if (v == null) throw new UnavailableException();
// snip
   }
   public void doPost(...) throws ... {
  // this.n and this.v are used in here
   }
}




Managing Live Sessions

2000-10-30 Thread Anand Prasad

Hi All,

I would like to limit number of live sessions to say x number.

Is there a way where I can configure in Tomcat or in apache.

Can I set the number of live sessions from Tomcat from a JSP or Servlet, if 
so could any let me know.

Thanks
--Anand
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




Re: Configuring Tomcat - Examples don't work.

2000-10-30 Thread Sterling

H-

Thank you very much!

This is great, it's working now.

Is there anyway one can put/submit this in the FAQ documentation for Tomcat?
I think this would be very useful information.

BTW - the Official Faq-o-matic for Jakarta (
http://jakarta.apache.org/faq/faqindex.html ) doesn't work.

So now all I have to do is

TOMCAT_HOME=/usr/local/tomcat ; export TOMCAT_HOME
set JAVA_HOME=/usr/local/jdk1.2.2; export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin; export PATH
export CLASSPATH=/usr/local/jdk1.2.2/lib/tools.jar

into my env variables on boot up and I should just have to bin/startup.sh
tomcat and than start apache and it will come up warm and fuzzy. Yeah/Nay?
Or is there something in Tomcat conf that I could manually set so it would
load up correctly each time?

Thanks again for the quick reply and great information.
-Sterling



[EMAIL PROTECTED] wrote:

> Try this for the CLASSPATH:
>
> export CLASSPATH=/usr/local/jdk1.2.2/lib/tools.jar
>
> Rick
>
> [EMAIL PROTECTED] wrote:
> > H-
>
> I have been through the archive and found references to this problem but
> haven't found any solutions. Or at least any that give examples on the
> solution.
>
> My question is how do you set the classpath for tomcat?
> Could someone please give me an example of classpath setting? I tried
>
> set CLASSPATH=/usr/local/jdk1.2.2/lib; export CLASSPATH
>
> without success. 8^(
>
> Is this really the problem?
> Is it me, tomcat configuration, the planets?
>
> I'm very lost and frustrated on this issue. For a week now.
> Any assistance or insight anyone might have would be greatly
> appreciated.
>
> Thanks.
> -Sterling
>
> PS(I start Tomcat first, than restart Apache. None throw errors on
> loading.)
> PPS(Is there a Tomcat Newsgroup available, other than posting queries to
> the Apache one? (japan.www.server.apache) I see a lot of Tomcat posts up
> there but would like to focus on this program in the appropriate
> newsgroup, if possible. Hence this mailing list. 8^)




Re: Configuring Tomcat - Examples don't work.

2000-10-30 Thread ricksmth

Try this for the CLASSPATH:

export CLASSPATH=/usr/local/jdk1.2.2/lib/tools.jar

Rick

[EMAIL PROTECTED] wrote:
> H-

I have been through the archive and found references to this problem but
haven't found any solutions. Or at least any that give examples on the
solution.

My question is how do you set the classpath for tomcat?
Could someone please give me an example of classpath setting? I tried

set CLASSPATH=/usr/local/jdk1.2.2/lib; export CLASSPATH

without success. 8^(

Is this really the problem?
Is it me, tomcat configuration, the planets?

I'm very lost and frustrated on this issue. For a week now.
Any assistance or insight anyone might have would be greatly
appreciated.

Thanks.
-Sterling


PS(I start Tomcat first, than restart Apache. None throw errors on
loading.)
PPS(Is there a Tomcat Newsgroup available, other than posting queries to
the Apache one? (japan.www.server.apache) I see a lot of Tomcat posts up
there but would like to focus on this program in the appropriate
newsgroup, if possible. Hence this mailing list. 8^)






Re: Configuring Tomcat - Examples don't work.

2000-10-30 Thread Craig R. McClanahan

Sterling wrote:

> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>

Add "$JAVA_HOME/lib/tools.jar" to your classpath.  Adding just
"$JAVA_HOME/lib" is not sufficient, because that only looks for unpacked
classes -- not classes that are resident in JAR files in the named
directory.

Craig McClanahan






Configuring Tomcat - Examples don't work.

2000-10-30 Thread Sterling

H-

I have been through the archive and found references to this problem but
haven't found any solutions. Or at least any that give examples on the
solution.

Being a newbie to tomcat (and linux to a degree) I was wondering if
anyone could help me out with a Tomcat problem?

Here's what I have so far.
Linux: Redhat 6.2
Apache 1.3.12 Up and Running smoothly. Domain names work good and all
that jazz.
Tomcat 3.1 up and Running half way. Pulls up directory pages under
examples (jsp, servlets, images) Tomcat WebServer v3.1

My servlets will run but the JSP examples come up with
Error: 500
Location: /examples/jsp/dates/date.jsp
sun/tools/javac/Main

Yes the dreaded 500 error.

My server is throwing out a lot of text when I try to execute a JSP
example. But at the top it says.
java.lang.NoClassDefFoundError: sun/tools/javac/Main

Here's what I have for my env variables as per the documentation.
TOMCAT_HOME=/usr/local/tomcat ; export TOMCAT_HOME
set JAVA_HOME=/usr/local/jdk1.2.2; export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin; export PATH

All the posts I've found on this issue say that the CLASSPATH isn't set
to find tools.jar.
My question is how do you set the classpath for tomcat?
Could someone please give me an example of classpath setting? I tried

set CLASSPATH=/usr/local/jdk1.2.2/lib; export CLASSPATH

without success. 8^(

Is this really the problem?
Is it me, tomcat configuration, the planets?

I'm very lost and frustrated on this issue. For a week now.
Any assistance or insight anyone might have would be greatly
appreciated.

Thanks.
-Sterling


PS(I start Tomcat first, than restart Apache. None throw errors on
loading.)
PPS(Is there a Tomcat Newsgroup available, other than posting queries to
the Apache one? (japan.www.server.apache) I see a lot of Tomcat posts up
there but would like to focus on this program in the appropriate
newsgroup, if possible. Hence this mailing list. 8^)





RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)

2000-10-30 Thread kenneth topp


in the tomcat source bundle...

---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html

On Mon, 30 Oct 2000, Ranko Bijelonic wrote:

> Speaking of mod_jk, where can I find the source and instructions to compile
> it?
> Apache complains that the one I downloaded (linux i386) is 'garbled'.
> Thanks,
> 
> ranko
> 
> -Original Message-
> From: Kenneth Topp [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 30, 2000 1:45 PM
> To: [EMAIL PROTECTED]
> Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu)
> 
> 
> 
> I've just noted a issue with mod_jk, causing the webserver to run out
> of control.  The tomcat (3.2b4) process was restarted, and about 10 of the
> apache httpd's started consuming all of CPU.
> 
> I had to kill them, but didn't need to restart apache in general. I (under
> linux) straced' the process, and it was repeating recv syscall.
> 
> Anyone have expierience with this problem?
> 
> I will try to repeat the problem with b6...  I think the only thing that
> was different was possibly requests in midstate.
> 
> Thanks,
> 
> Kenneth Topp
> ---
>  to unsubscribe: [EMAIL PROTECTED]
>  for more info: http://jakarta.apache.org/getinvolved/mail.html
> 
> 




RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)

2000-10-30 Thread Jagannathan, Giri (c)

U got to download the source dist. of tomcat 3.2b6 or later & build the
mod_jk modules & 
follow the instructions given in this link:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

Giri

-Original Message-
From: Ranko Bijelonic [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)


Speaking of mod_jk, where can I find the source and instructions to compile
it?
Apache complains that the one I downloaded (linux i386) is 'garbled'.
Thanks,

ranko

-Original Message-
From: Kenneth Topp [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 1:45 PM
To: [EMAIL PROTECTED]
Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu)



I've just noted a issue with mod_jk, causing the webserver to run out
of control.  The tomcat (3.2b4) process was restarted, and about 10 of the
apache httpd's started consuming all of CPU.

I had to kill them, but didn't need to restart apache in general. I (under
linux) straced' the process, and it was repeating recv syscall.

Anyone have expierience with this problem?

I will try to repeat the problem with b6...  I think the only thing that
was different was possibly requests in midstate.

Thanks,

Kenneth Topp
---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html




Re: RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)

2000-10-30 Thread ricksmth

If you download with Netscape it can save it as text and that will leave it garbled. 
Download with Lynx or some other browser and you won't have that problem. 

Rick

[EMAIL PROTECTED] wrote:
> Speaking of mod_jk, where can I find the source and instructions to compile
it?
Apache complains that the one I downloaded (linux i386) is 'garbled'.
Thanks,

ranko

-Original Message-
From: Kenneth Topp [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 1:45 PM
To: [EMAIL PROTECTED]
Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu)



I've just noted a issue with mod_jk, causing the webserver to run out
of control.  The tomcat (3.2b4) process was restarted, and about 10 of the
apache httpd's started consuming all of CPU.

I had to kill them, but didn't need to restart apache in general. I (under
linux) straced' the process, and it was repeating recv syscall.

Anyone have expierience with this problem?

I will try to repeat the problem with b6...  I think the only thing that
was different was possibly requests in midstate.

Thanks,

Kenneth Topp
---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html






RE: [tomcat-user] issues with mod_jk (consuming 100% of cpu)

2000-10-30 Thread Ranko Bijelonic

Speaking of mod_jk, where can I find the source and instructions to compile
it?
Apache complains that the one I downloaded (linux i386) is 'garbled'.
Thanks,

ranko

-Original Message-
From: Kenneth Topp [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 1:45 PM
To: [EMAIL PROTECTED]
Subject: [tomcat-user] issues with mod_jk (consuming 100% of cpu)



I've just noted a issue with mod_jk, causing the webserver to run out
of control.  The tomcat (3.2b4) process was restarted, and about 10 of the
apache httpd's started consuming all of CPU.

I had to kill them, but didn't need to restart apache in general. I (under
linux) straced' the process, and it was repeating recv syscall.

Anyone have expierience with this problem?

I will try to repeat the problem with b6...  I think the only thing that
was different was possibly requests in midstate.

Thanks,

Kenneth Topp
---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html





RE: BindException on Solaris + Q

2000-10-30 Thread Chris Francis

H
Not as trivial as putting mod_jserv.dll in your modules directory
:)

-Original Message-
From: Jeff Klein [mailto:[EMAIL PROTECTED]]
Sent: 30 October 2000 18:37
To: '[EMAIL PROTECTED]'
Subject: RE: BindException on Solaris + Q



> Does anyone know if/where I can get mod_jserv.so for sparc?

Get the jserv src code from java.apache.org and statically link it into your
apache instance. (makefiles are included so usually this is a triial task
;-).

J

PS (To Mike...)  What is that lsof command you mentioned?  I have never
heard of it before.  I just tried doing a 'which lsof' and it is not in my
$PATH (nor in my $MANPATH).  Is it 3rd party stuff that needs to be
downloaded and installed separately?


-Original Message-
From: Mike Bremford [mailto:[EMAIL PROTECTED]]
Sent: 30 October 2000 16:41
To: [EMAIL PROTECTED]
Subject: RE: BindException on Solaris


Tomcat also listens on port 8080 by default. Try netstat -a | grep 8080, or
even better "lsof -i tcp:8080".

Cheers... Mike

> -Original Message-
> From: Chris Francis [mailto:[EMAIL PROTECTED]]
> Sent: 30 October 2000 15:27
> To: Tomcat-User (E-mail)
> Subject: BindException on Solaris
>
>
>
> I'm attempting to run Tomcat on a Solaris 7 machine. We get a
> java.net.BindException:Address already in use
> on startup. There's nothing already on port 8007. What else
> can we try?
> There's very little other feedback - nothing in
> the logs etc.
>
>
> Chris Francis,
> Software Engineer,
> Static 2358, Ltd.
> +44 (0) 20 7250 1244
>
>
>



[tomcat-user] issues with mod_jk (consuming 100% of cpu)

2000-10-30 Thread Kenneth Topp


I've just noted a issue with mod_jk, causing the webserver to run out
of control.  The tomcat (3.2b4) process was restarted, and about 10 of the
apache httpd's started consuming all of CPU.

I had to kill them, but didn't need to restart apache in general. I (under
linux) straced' the process, and it was repeating recv syscall.

Anyone have expierience with this problem?  

I will try to repeat the problem with b6...  I think the only thing that
was different was possibly requests in midstate.

Thanks,

Kenneth Topp
---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html




Servlet loading on linux startup

2000-10-30 Thread Domenico di Girolamo

If I start Tomcat from inittab on linux startup it do not
load servlets on web.xml configured as load on startup.
If I login into linux and stop and restart tomcat then it
load servlets on startup.
How can I solve this problem ?
thanks
Domenico




RE: BindException on Solaris + Q

2000-10-30 Thread Jeff Klein


> Does anyone know if/where I can get mod_jserv.so for sparc?

Get the jserv src code from java.apache.org and statically link it into your
apache instance. (makefiles are included so usually this is a triial task
;-).

J

PS (To Mike...)  What is that lsof command you mentioned?  I have never
heard of it before.  I just tried doing a 'which lsof' and it is not in my
$PATH (nor in my $MANPATH).  Is it 3rd party stuff that needs to be
downloaded and installed separately?


-Original Message-
From: Mike Bremford [mailto:[EMAIL PROTECTED]]
Sent: 30 October 2000 16:41
To: [EMAIL PROTECTED]
Subject: RE: BindException on Solaris


Tomcat also listens on port 8080 by default. Try netstat -a | grep 8080, or
even better "lsof -i tcp:8080".

Cheers... Mike

> -Original Message-
> From: Chris Francis [mailto:[EMAIL PROTECTED]]
> Sent: 30 October 2000 15:27
> To: Tomcat-User (E-mail)
> Subject: BindException on Solaris
>
>
>
> I'm attempting to run Tomcat on a Solaris 7 machine. We get a
> java.net.BindException:Address already in use
> on startup. There's nothing already on port 8007. What else
> can we try?
> There's very little other feedback - nothing in
> the logs etc.
>
>
> Chris Francis,
> Software Engineer,
> Static 2358, Ltd.
> +44 (0) 20 7250 1244
>
>
>



Re: (Possible VIRUS) Re: ???????? - ????????????

2000-10-30 Thread Martin Smith

"C. Jason Benedict" wrote:
> 
> i have cut the binary code out of this one
> 
> sinboda wrote:
> 
> >  [Image]

The original message made my Netscape running
under RedHat 6.1 linux crash.  I had to remove the
message by other means before I could run netscape
again.  Don't know what that means.

martin

-- 
Martin Smith   email: [EMAIL PROTECTED]
Vollsveien 9   tel. : +47 6783 1202
P.O. Box 482
1327 Lysaker, Norway



ClassCastException,Beans, and Constant Restarts

2000-10-30 Thread Steve Goyette

I have read quite a few posts regarding this, but I could not find a clean
cut answer.  Using Tomcat 3.2 can I make changes to a bean, recompile, touch
my JSP file that accesses that bean, and view my page with the new bean?
Currently I am getting a ClassCastException.  Why, when the JSP file has to
be recompiled, does it not find the new version of the bean?  Is there a
workaround for this?

thanks in advance,

steve




RE: Win98 & Tomcat 3.1 - Starts to launch but then exists???

2000-10-30 Thread Jeff Klein

Another thing that can cause this behavior is if there is already an
instance of Tomcat (or any other application that binds to ports) running.
If the port is already bound to another application (tomcat or other), then
a BindException is thrown, and the startup fails.  Also, realize that you
need to have a free Ajpv12 (apache JServ protocol version 1.2) port as well.
Both the http and ajpv12 ports are defined in server.xml.  You could try
changing them from their defaults and see if you can run startup then.

Good luck,
jeff





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 29, 2000 9:10 PM
To: [EMAIL PROTECTED]
Subject: RE: Win98 & Tomcat 3.1 - Starts to launch but then exists???


Hello
Belive it or not i faced the same problem ...and 
what did i do???
I just downloaded tomcat again ...and reinstalled 
it ..it executed successfully in first go

 cheers
jayram

-
This mail sent through  http://www.sify.com



Re: catalina.sh IS tomcat.sh ?

2000-10-30 Thread Craig R. McClanahan

mike niemaz wrote:

> I'm updating jakarta to 4.0 and i noticed
> that some scripts (and more?) has disapeared,
> which can be quiet crtitical since I had modified
> some ...
> So is catalina sh script the old tomcat.sh?

For the purposes of starting up Tomcat 4.0, this is correct -- use
catalina.sh or catalina.bat instead of tomcat.sh / tomcat.bat.

The reasoning for the name change is that it is now possible to separate
the servlet container out from the rest of Tomcat (i.e. Turbine, for
example, packages the servlet container part without the JSP engine).

Tomcat == Servlets + JSP.

>
> Any more noticeable diffs?
>

Quite a few.  One of the primary reasons that Tomcat 4.0 is still
"pre-alpha" is (incomplete or missing) documentation -- the code quality
is getting there :-).

Interesting differences:

* No web connectors yet, only runs stand alone
  (this is being actively worked on).

* Tomcat 4.0 supports the new servlet 2.3 and JSP 1.2
  specifications.

* Details of the server.xml configuration file format are
  subtly different, although the basic idea of defining a
   entry for each web app is still there.

* Server internals are completely different.  This has two
  fairly visible effects:

  - Anything you have currently implemented with
RequestInterceptor will need to be re-implemented
with Valve.

  - Users who embed Tomcat (with the EmbededTomcat
class) will need to use the new
org.apache.catalina.startup.Embedded class instead.

>
> Thanx,
>
> --mike

Craig McClanahan





Tomcat 3.2 Release ???

2000-10-30 Thread raimee




Is there a target date for a production quality release of Tomcat 3.2?





RE: BindException on Solaris + Q

2000-10-30 Thread Chris Francis

Thanks, I found a mysterious previous version of apache (older 1.3.6)
listening on port 8080, no idea where it came from!!

Does anyone know if/where I can get mod_jserv.so for sparc?


-Original Message-
From: Mike Bremford [mailto:[EMAIL PROTECTED]]
Sent: 30 October 2000 16:41
To: [EMAIL PROTECTED]
Subject: RE: BindException on Solaris


Tomcat also listens on port 8080 by default. Try netstat -a | grep 8080, or
even better "lsof -i tcp:8080".

Cheers... Mike

> -Original Message-
> From: Chris Francis [mailto:[EMAIL PROTECTED]]
> Sent: 30 October 2000 15:27
> To: Tomcat-User (E-mail)
> Subject: BindException on Solaris
>
>
>
> I'm attempting to run Tomcat on a Solaris 7 machine. We get a
> java.net.BindException:Address already in use
> on startup. There's nothing already on port 8007. What else
> can we try?
> There's very little other feedback - nothing in
> the logs etc.
>
>
> Chris Francis,
> Software Engineer,
> Static 2358, Ltd.
> +44 (0) 20 7250 1244
>
>
>



freebsd, jdk1.2, tomcat 3.1 help

2000-10-30 Thread Mike Haberman


I can't get tomcat 3.1 to run under freebsd 

3.4-RELEASE FreeBSD 3.4
Classic VM (build Linux_JDK_1.2.2_RC4, green threads, sunwjit)


Here's the message I get When I try to connect 

Error reading request Resource temporarily unavailable: Resource temporarily una
vailable

It seems to run fine under jdk1.1.8.

Has anyone gotten it to work ?


thanks

mike






Re: destroy() method invocation

2000-10-30 Thread Steve Weiss

mike niemaz wrote:
> 
> Hi,
> 
> "Craig R. McClanahan" wrote:
> 
> > You don't ... and you should NOT ... call destroy() on your servlet instance.
> 
> Yes I understand that. I just meant to invoke the detroy method indirectly
> when launcing the shutdown tomcat script.
> 
> > Tomcat calls it for you when it is shut down normally.  Failure to do so is a
> > bug in Tomcat -- which may well be true in 3.1, but not in 3.2 or 4.0.
> >
> 
> OK, I'll check this out. For info, how do I know which version I have ;-)

The destroy() method is definitely invoked in 3.1 final.
-- 
Steve Weiss  Association of American Medical Colleges
(202)828-0428mailto:[EMAIL PROTECTED]http://www.aamc.org



Re: tomcat on IIS/NT4.0 can you help ?

2000-10-30 Thread Jason Watkins

I think the issue there is you need to set up the default file, since
examples has no index.html or index.asp. Anyhow, if the gren light is
working, your issues are no longer to do with the wrapper... instead ensure
that you're asking for the right url, and that tomcat itself is working
properly

jason

- Original Message -
From: "Alon Marom" <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 6:30 AM
Subject: tomcat on IIS/NT4.0 can you help ?


> Hi,
> I have made the necessary registry changes and the virtual "jakarta" in
the
> iis4 admin.
> but the isapi_redirect.dll filter was red(not loaded)
> In the isapi.log   the ajp13 was having trable , so I removed ajp13 from
the
> "workers"
> And ...the iis4 isapi_redirect.dll filter in green (loaded )
> http://localhost:8080/examples is working .
> BUT with   http://localhost/examples  , nothing comes  up  :-(
>  can you help ?
> what next ??
>
> thanks , Alon
>
>
>
>




RE: BindException on Solaris

2000-10-30 Thread Mike Bremford

Tomcat also listens on port 8080 by default. Try netstat -a | grep 8080, or
even better "lsof -i tcp:8080".

Cheers... Mike

> -Original Message-
> From: Chris Francis [mailto:[EMAIL PROTECTED]]
> Sent: 30 October 2000 15:27
> To: Tomcat-User (E-mail)
> Subject: BindException on Solaris
>
>
>
> I'm attempting to run Tomcat on a Solaris 7 machine. We get a
> java.net.BindException:Address already in use
> on startup. There's nothing already on port 8007. What else
> can we try?
> There's very little other feedback - nothing in
> the logs etc.
>
>
> Chris Francis,
> Software Engineer,
> Static 2358, Ltd.
> +44 (0) 20 7250 1244
>
>
>




(Possible VIRUS) Re: ???????? - ????????????

2000-10-30 Thread C. Jason Benedict

i have cut the binary code out of this one

sinboda wrote:

>  [Image]




FW: tomcat on IIS/NT4.0 can you help ?

2000-10-30 Thread Alon Marom


> Hi,
> I have made the necessary registry changes and the virtual "jakarta" in
> the iis4 admin.
> but the isapi_redirect.dll filter was red(not loaded)
> In the isapi.log   the ajp13 was having trable , so I removed ajp13 from
> the "workers"
> And ...the iis4 isapi_redirect.dll filter in green (loaded ) 
> http://localhost:8080/examples is working .
> BUT with   http://localhost/examples  , nothing comes  up  :-(
>  can you help ?
> what next ??
> 
> thanks , Alon
> 



Re: AW: redirect problems?

2000-10-30 Thread William Brogden



ok wrote:
> 
> yeah, I have returns, why does this do this, there is no documentation in the
> JSP spec saying i have to do returns after a redirect. Is this a bug in tomcat?
> 
The docs for

 javax.servlet.http.HttpServletResponse.sendRedirect

States:
"After using this method the response should be considered to 
be committed and should not be written to."

-- 
WBB - [EMAIL PROTECTED]  Chief Scientist, LANWrights, Inc.
Java Programmer Certification information and mock exam
at  http://www.lanw.com/java/javacert/



tomcat on IIS/NT4.0 can you help ?

2000-10-30 Thread Alon Marom

Hi,
I have made the necessary registry changes and the virtual "jakarta" in the
iis4 admin.
but the isapi_redirect.dll filter was red(not loaded)
In the isapi.log   the ajp13 was having trable , so I removed ajp13 from the
"workers"
And ...the iis4 isapi_redirect.dll filter in green (loaded ) 
http://localhost:8080/examples is working .
BUT with   http://localhost/examples  , nothing comes  up  :-(
 can you help ?
what next ??

thanks , Alon




libhpi.so ?

2000-10-30 Thread mike niemaz

I get the followin error trying to run the last version of tomcat.
I'm using jdk1.2.2.

ld.so.1: /opt/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
libhpi.so: open fa
iled: No such file or directory

Should I re-install correctly jdk?

--mike




READ THIS First! Mailing-list archive and good tips

2000-10-30 Thread Wolfgang Stein

  To unsubscribe from this list


  To stop subscription for an alternate account
  (e.g. [EMAIL PROTECTED]) send an eMail to
[EMAIL PROTECTED]


 Before posting any questions ---

+ We welcome open discussion of Tomcat issues at both advanced
  and beginner levels of expertise. However, please be respectful
  of other people's time. Before posting questions, do your own
  reading and research. As the saying goes, "There are no stupid
  questions"... except the ones you could have answered by yourself!

  Before posting a question, perform the following steps.

+ Be familiar with servlets in general. See:
  http://java.sun.com/products/servlet/
  http://java.sun.com/products/jsp/

+ Read any of the several published books about servlets or JSP.

+ Read the Servlet API 2.2 Specification.

  Download a copy of the spec in PostScript or Acrobat PDF formats:
  http://java.sun.com/products/servlet/download.html#specs

  The spec is currently not available online; you must download a copy.
  You may obtain free Acrobat PDF reader software from:
  http://www.adobe.com/products/acrobat/readstep.html
  
  Tomcat implements this spec, so think of it as one of Tomcat's
  manuals.

+ Read Tomcat's other documentation:
  http://jakarta.apache.org/tomcat/index.html

+ Study the Tomcat examples.

  First use the servlets found in the /examples context.
  Read their source code.

  Then try your own first servlets in the /examples context, and
  add an entry into /example/WEB-INF/web.xml

+ Search either of these two archives for past discussions.
  
  Contributed by Bob Tanner:
  http://archives.real-time.com/rte-tomcat/
  
  Contributed by Philip J. Mikal:
  http://mikal.org/interests/java/tomcat/index.html

  Search for short phrases, such as your server error messages.
  Search the archive again with better or different phrases.

  Many beginner questions have already been asked, so please
  make several attempts at finding your question in the archive.

+ Read the FAQ (temporary(?) unavailable):
  http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/
  Click the Jakarta link.

+ Search the bug report facility
  http://znutar.cortexity.com:
  provided by Nick Bauman.

+ Read this mailing list regularly, not just when you have a problem.
  
+ Examine your error messages problems not directly related to Tomcat,
  such as CLASSPATH problems. Write, compile, and run a "Hello World"
  application to be sure your problem is related to servlets or Tomcat.
  
+ Ask an expert in your company, school class, or local Java users
  group.
  http://industry.java.sun.com/jug/

+ Do not treat this list as a dumping ground for your problems. Think of
  the list as a volunteer community of people engaging in respectful
  discussion.
 
== THE MORAL OF THE STORY 
Help yourself first.
Be responsible for your own learning.
   Try to solve your own problem.
   If you are still suffering, then post to this list.
==

+ Be aware: This mailing list may contain viruses.

  Don't trust anybody. If your are not absolutely sure, do not open
  any attachments. Do not read the postings with a JavaScript-enabled
  email client.

  Microsoft Windows users:
  Disable all stuff like ActiveScripting etc.
  in your mail reader.  Be careful with attachments,
  especially of type .exe .vbs or some virus attachments like
  "livestages.txt.shs".
  The .shs extension disappears/is not visible under Windows but
  represents an executable script which will execute when opened
  separately.

+ Other resources:
  - An archive of the mailing list for the developers building Tomcat
discussing bugs, future releases, etc.
http://www.metronet.com/~wjm/tomcat/
  
  - Sun's mailing list for general servlet information:
Search its archive at:
http://archives.java.sun.com/archives/servlet-interest.html
Subscribe only, if you are willing to receive hundred messages
per day!
   
  - Search DejaNews at http://www.deja.com/home_ps.shtml

  - Look at jGuru, JCentral etc.

  - Search the whole Web with a popular search engine.
As a developer of server applications you should know
all about it.  :-)
You can find entire websites dedicated to Java servlets.
Find the online versions of Java magazines with past articles
on servlets and JSP.
   
-- end --



XML, DTD, Tomcat

2000-10-30 Thread Alex Tang

Hi folks.

I've got a servlet (actually a couple) that are doing some XML parsing
(Mainly SAX, some DOM).

The only problem I seem to be having is that when if I have a XML file
that looks like this:

 
 

Tomcat looks for the DTD file in the TOMCAT_HOME/bin directory.   the
XML and DTD files are in my WEB-INF/classes part of my class path.

>From what I understand of XML, using the

 

where the dtd file is given as a URI with no path, the parser should
look for the DTD file in the same directory as the XML file.

It's probably something stupid on my part.  I'm creating the InputSource
using an input stream which I instantiate using "getResourceAsStream()",
(which is probably where I'm going wrong).

 InputStream ist = FormattedTextWidgetStub.class.getResourceAsStream ( 
ATTR_TAGFILE );

 InputSource iso = new InputSource ( ist );

 parser.parse ( iso );

Is there a better way to get the InputSource?   or is there any other
way i can get tomcat to look for my DTD file in the same directory as my
XML file (considering that I must keep my XML and DTD files in my
classpath (under the WEB-INF/classes directory somewhere)?

thanks very much.

...alex...




reuse of JServ Applc. with Tomcat

2000-10-30 Thread thomas . maesing

Hi,
I have a question to configure Apache to work with Tomcat instead of JServ.
The Apache Sever
works with Tomcat but I cannot find a solution for the servlet mapping. For
JServ "/servlets/"
maps the servlet repository. How must I configure Tomcat to use this
Repository?

regards

Thomas




BindException on Solaris

2000-10-30 Thread Chris Francis


I'm attempting to run Tomcat on a Solaris 7 machine. We get a
java.net.BindException:Address already in use
on startup. There's nothing already on port 8007. What else can we try?
There's very little other feedback - nothing in 
the logs etc.  


Chris Francis, 
Software Engineer, 
Static 2358, Ltd.
+44 (0) 20 7250 1244





AW: AW: redirect problems?

2000-10-30 Thread Amrhein, Thomas

Search the archive!
I remember, this was discussed a time ago in this list (or tomcat-dev)
I found it somewhere documented or used in an example. But don't ask me
where.
It's definitively no bug.

regards

Thomas

-Ursprüngliche Nachricht-
Von: ok [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 30. Oktober 2000 16:11
An: [EMAIL PROTECTED]
Betreff: Re: AW: redirect problems?

yeah, I have returns, why does this do this, there is no documentation in
the
JSP spec saying i have to do returns after a redirect. Is this a bug in
tomcat?

On Mon, 30 Oct 2000, you wrote:
> Do you make a return after the sendRedirect?
> ...
> rresponse.sendRedirect("/checkout2.jsp");
> return;
> ...
> 
> Otherwise, the output of checkout2.jsp is added (and not a 'new' output).
> 
> Hint: Call sendRedirect before you make any output!!!
> 
> 
> -Ursprüngliche Nachricht-
> Von: jim [mailto:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 27. Oktober 2000 18:41
> An: [EMAIL PROTECTED]
> Betreff: redirect problems?
> 
> Hi,
> We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird
problems.
> 
> 1. checkout.jsp (FORM collecting new user info)
>- POSTs to checkout_eng1.jsp
> 
> 2. checkout_eng1.jsp
>  - adds user from #1 and does a
response.sendRedirect("/checkout2.jsp");
> 
> 3. checkout2.jsp shows the next FORM asking for mailing address
information
> 
> 
> Weird Symptom #1
> --
> On any version of Internet Explorer (never on netscape) the POST to step
#2
> above fails and up comes this IE error "cannot find server or DNS error"
> which
> leads me to beleive that the response.sendredirect() is doing something
odd,
> maybe not sending back the correct http location header or something
> 
> If you immediatly hit the browsers back button and re-submit the form, it
> then
> works with no problem and as expected. This only seems to occur the first
> time
> submitting forms to a page that re-directs after an operation.
> 
> Weird Symptom #2
> 
> occasionally on Internet Explorer AND Netscape.
> User submits info from form #1 above (checkout.jsp), their information is
> added
> to the database and they are redirected to checkout2.jsp, HOWEVER what is
> shown
> on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND
the
> expected contents of checkout2.jsp with a visible HTTP response header
> printed
> out in between checkout.jsp's contents and checkout2.jsp's contents ALL on
> visible on the URL checkout2.jsp
> 
> Anyone have any ideas? I tried checking the bug database but it appears to
> be
> down.



RE: APJ12: connection failed

2000-10-30 Thread Jagannathan, Giri (c)

hey,
1) Try changing the default apj12 worker definition section of
workers.properties file as follows:
worker.ajp12.host=your serverip(instead of the default localhost!) & see if
it works.
2) Make sure you have Included tomcat.conf at the end of httpd.conf if you
are using mod_Jserv / Include mod_jk.conf-auto at the end of httpd.conf if
you are using mod_JK.
2) Start tomcat first & then apache!!

Hope it helps.

-Giri

-Original Message-
From: Joakim Verona [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: APJ12: connection failed


hello,

apache and tomcat talk to each other using the ajp protocoll
on a port, normally 8007.

apache needs to have a plugin properly configured and running for this to
work.

there appears to be both mod_jserv and mod_jk you can use for this, where
mod_jk is never.
i use mod_jserv.

read the installation instuctions, and find which plugin to use and where to
put it
(depending on your os config) and then change the apache startup file to
include 
a file called tomcat.conf or something like that tomcat creates for apache
when starting.

hope this helps somewhat, even if i wasnt very specific.

Natalie D Rassmann wrote:
> 
> Hi,
> 
> I have been trying to get Apache to start Tomcat and after many long
> days I have finally got Apache to start Tomcat.  However, when I try to
> go to the examples page and have Apache serve the JSP or Servlet
> examples I get the following error:
> 
> ajp12: can not connect to host 127.0.0.1:8007
> ajp12: connection fail
> an error returned handling request via protocol "ajpv12"
> 
> What does this mean?  I see when I type netstats -a that both ports 8007
> and 8080 are not listening.  I tried changing the default port to 8009
> and this did not work.
> 
> Can anyone help me

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



RE: Logger

2000-10-30 Thread Andy LaMora

You might just try Webtrends...

-Original Message-
From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 05:00
To: '[EMAIL PROTECTED]'
Subject: RE: Logger


Hi Craig,

I need a logger to collect data on tomcat contexts usage. I want to know how
many hits a certain context got, what is the most popular page, how many
hits from inside versus from the outside,
things like that. I was thinking on something like writing a
RequestInterceptor for that. Is that the way or there are less painful paths
?

Wellington

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: 28 October 2000 04:00
To: [EMAIL PROTECTED]
Subject: Re: Logger


"Lacerda, Wellington (AFIS)" wrote:

> For tomcat contexts usage, not program logging.
>
> Will this new api be in Servlet 2.4 or 2.3 ? I saw the public draft 1 for
> 2.3 and saw nothing there.
>

There are no substantive changes in 2.3 relative to logging ... what goes
into future versions is totally up to the expert group at that time.

>
> Besides, we need something more immediate.
>

What kinds of features are you looking for?

>
> Wellington
>

Craig McClanahan






Re: AW: redirect problems?

2000-10-30 Thread ok

yeah, I have returns, why does this do this, there is no documentation in the
JSP spec saying i have to do returns after a redirect. Is this a bug in tomcat?

On Mon, 30 Oct 2000, you wrote:
> Do you make a return after the sendRedirect?
> ...
> rresponse.sendRedirect("/checkout2.jsp");
> return;
> ...
> 
> Otherwise, the output of checkout2.jsp is added (and not a 'new' output).
> 
> Hint: Call sendRedirect before you make any output!!!
> 
> 
> -Ursprüngliche Nachricht-
> Von: jim [mailto:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 27. Oktober 2000 18:41
> An: [EMAIL PROTECTED]
> Betreff: redirect problems?
> 
> Hi,
> We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird problems.
> 
> 1. checkout.jsp (FORM collecting new user info)
>- POSTs to checkout_eng1.jsp
> 
> 2. checkout_eng1.jsp
>  - adds user from #1 and does a response.sendRedirect("/checkout2.jsp");
> 
> 3. checkout2.jsp shows the next FORM asking for mailing address information
> 
> 
> Weird Symptom #1
> --
> On any version of Internet Explorer (never on netscape) the POST to step #2
> above fails and up comes this IE error "cannot find server or DNS error"
> which
> leads me to beleive that the response.sendredirect() is doing something odd,
> maybe not sending back the correct http location header or something
> 
> If you immediatly hit the browsers back button and re-submit the form, it
> then
> works with no problem and as expected. This only seems to occur the first
> time
> submitting forms to a page that re-directs after an operation.
> 
> Weird Symptom #2
> 
> occasionally on Internet Explorer AND Netscape.
> User submits info from form #1 above (checkout.jsp), their information is
> added
> to the database and they are redirected to checkout2.jsp, HOWEVER what is
> shown
> on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND the
> expected contents of checkout2.jsp with a visible HTTP response header
> printed
> out in between checkout.jsp's contents and checkout2.jsp's contents ALL on
> visible on the URL checkout2.jsp
> 
> Anyone have any ideas? I tried checking the bug database but it appears to
> be
> down.



Re: APJ12: connection failed

2000-10-30 Thread Joakim Verona

hello,

apache and tomcat talk to each other using the ajp protocoll
on a port, normally 8007.

apache needs to have a plugin properly configured and running for this to work.

there appears to be both mod_jserv and mod_jk you can use for this, where mod_jk is 
never.
i use mod_jserv.

read the installation instuctions, and find which plugin to use and where to put it
(depending on your os config) and then change the apache startup file to include 
a file called tomcat.conf or something like that tomcat creates for apache when 
starting.

hope this helps somewhat, even if i wasnt very specific.

Natalie D Rassmann wrote:
> 
> Hi,
> 
> I have been trying to get Apache to start Tomcat and after many long
> days I have finally got Apache to start Tomcat.  However, when I try to
> go to the examples page and have Apache serve the JSP or Servlet
> examples I get the following error:
> 
> ajp12: can not connect to host 127.0.0.1:8007
> ajp12: connection fail
> an error returned handling request via protocol "ajpv12"
> 
> What does this mean?  I see when I type netstats -a that both ports 8007
> and 8080 are not listening.  I tried changing the default port to 8009
> and this did not work.
> 
> Can anyone help me

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



Making SOAP sample work on Tomcat

2000-10-30 Thread Alejandro Carrillo

I run the SOAP GetQuote sample against Tomcat, and got
the following error messages on the Tomcat screen:

>>(Mon Oct 30 09:24:59 EST 2000) Processing SOAP
request...
java.lang.NullPointerException
at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
java, Compiled Code)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va, Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:597)
at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java
:257)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va, Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:479)

Could you please help me determine what the problem
is? Thanks



=
You guys start coding, I will figure out what they want.

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



RE: strange Error 404

2000-10-30 Thread Wolfgang Egger

Servus Wyn,

first thanx for your answer.

> -Original Message-
> I'm sure the problem is with the URL used to access the servlet of
> WebAppB.

I don't think so, because of the following behaviour:

Our WebServerDirStructure looks like this

/websites/WebAppA
/websites/WebAppA/WEB-INF
/websites/WebAppA/WEB-INF/classes
...
/websites/WebAppB
/websites/WebAppB/WEB-INF
/websites/WebAppB/WEB-INF/classes
...

as written in my first mail the whole site WebAppA is working as expected,
the WebAppB only shows Error 404
If I remove /websites/WebAppA

and rename /websites/WebAppB with /websites/WebAppA,
the whole WebAppB is working (with the URR bla/WebAppA/fasel)

Because of this I assume, that something in the configuration of tomcat
doesn't like WebAppB.
I have done a grep "WebAppA tomcat/conf/*" and a "grep WebAppB
tomcat/conf/*".
The result is, that all entries for WebAppA are the same as the entries for
WebAppB. Near the same, because the string WebAppA is replaced by WebAppB in
each entry.

Are there any other locations apart from tomcat/conf, where I have to do
some configuration respectively WebAppB.

Greetings from Berlin

  Wolfgang




Strange behavoir

2000-10-30 Thread Phillip T. Gerringer

This weekend Tomcat stopped running.  It can be started but throws errors
in the mod_jk.log.  Then Apache will fail to start with no errors.  If
I comment out the Include tomcat line in the httpd.conf file, Apache
runs fine.  The lines in the mod_jk.log file are:

[jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed
[jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007
[jk_worker.c (164)]: wc_create_worker validate failed for ajp12
[jk_worker.c (229)]: build_worker_map failed to create workerajp12

Does anyone have any ideas?  The only thing that changed this weekend is
that I added a second NIC and changed the domain name of the server.
Everything else seems to be working fine.  Please help...




RE: Integrating TomCat with Apache

2000-10-30 Thread Renchy Thomas

Make sure tomcat is disabled in the stand-alone mode (default) - section
under $TOMCAT_HOME/conf/server.xml.  It should solve your problem.

renchy

PS:  Did you look into the $APACHE_HOME/logs/apache error_log file for any
info?

-Original Message-
From: Sridhar R. Kundur [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 29, 2000 6:33 PM
To: [EMAIL PROTECTED]
Subject: Integrating TomCat with Apache


Hello All,

I am trying to integrate Tomcat with Apache on Windows
NT.

This is what I am trying to do:

Added the following line in httpd.conf of Apache:

Include "H:\TomCat\jakarta-tomcat\conf\tomcat.conf"

With the above line included in the httpd.conf file
the Apache server (running as service) is not
starting. However with the above line commented Apache
runs fine.

On the otherhand my TomCat runs fine in a standalone
mode.

Any ideas regarding this issue are highly appreciated.

Thanks in advance

Sridar

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/




APJ12: connection failed

2000-10-30 Thread Natalie D Rassmann

Hi,

I have been trying to get Apache to start Tomcat and after many long
days I have finally got Apache to start Tomcat.  However, when I try to
go to the examples page and have Apache serve the JSP or Servlet
examples I get the following error:

ajp12: can not connect to host 127.0.0.1:8007
ajp12: connection fail
an error returned handling request via protocol "ajpv12"

What does this mean?  I see when I type netstats -a that both ports 8007
and 8080 are not listening.  I tried changing the default port to 8009
and this did not work.

Can anyone help me




Re: jakarta website FAQ system and an alternative

2000-10-30 Thread Ted Husted

Very cool, and extremely useful. I would seriously sign-on for this
project. 

I went to the FAQ Maintenance page, and logged in fine as root. I
didn't see how to edit a question though. 

The print question tree feature is very neat. The first thing I would
like add would be a Save feature here that would resolve (or remove)
the links. If I do it with my browser, the links remain relative, and
break. Being able to use a template or skin here would also be a neat
way to create documentation.

Perhaps the thing to do is to start a Jakarta FAQ, and have at it. I
could host it, if that were helpful. 

A related type of project that would interest me is something like <
dmoz.org >, with group-editing and heirachial storage, that would let
you store pages instead of just URLs (like a moderated Wiki, or Sparrow
system). 

-Ted < http://husted.com/ted/ >

*** REPLY SEPARATOR  ***

On 10/26/2000 at 7:11 PM Alex Muc wrote:
If you'd like to check the system out I have a demo currently running.
It is accessible at the following URLs
Browsing: http://24.112.129.151:8080/faq/questionpage.xml?QID=1
Maintenance: http://24.112.129.151:8080/faqmaint
To login to the maintenance side of the system use the following:
username: root
password: root
email address: [EMAIL PROTECTED]
Web name: FAQ0
The first link will take you to an FAQ tree of about 250 questions
which
is taken from the work I did.  I have setup another tree for testing
purposes, you can add a tree yourself if you want, and questions too.

So, if you're interested check it out.  Like I said at the beginning,
if
people are interested I'd be happy to open source the whole thing.  I
also have some computing resources available which could be used to
host
the project should that be necessary.

Cheers
Alex.






Re: strange Error 404

2000-10-30 Thread Wyn Easton

I'm sure the problem is with the URL used to access the servlet of
WebAppB.
Look at the Tomcat output after you get the first 404 error.
That should show you how Tomcat is trying to find the servlet.
The Tomcat output will show the "context" + "pasted in URL".
If your servlet is not at the combination of those two items,
it will not be found.
You could map your servlets if you want share them from one web app.
to another.


> we have two WebApps. They both use the same java-classes, only the
> *.html
> are different.
> 
> Both WebApps are installed with ant, both AebApps resp. their
> docbases are
> showing right entries when viewing them with bla:8080/admin. Runing
> diff and
> compairing /webAppA/WEB-INF/classes and
> /webAppB/WEB-INF/classes
> shows, that both paths have the same content or subdirs.
> 
> WebAppA is running as expected. All JSPs are compiled and started,
> same with
> sevlets.
> WebAppB is causing an Error 404 with the first servlet and only the
> *.html
> were found.
> 
> Does anyone have any idea, what is going wrong there?
> 
> Thanx in advance and have a nice day
> 
>Wolfgang
> 


=
Wyn Easton
[EMAIL PROTECTED]

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



RE: Tomcat & Apache

2000-10-30 Thread Jagannathan, Giri (c)

hello, 
download the source distribution of tomcat 3.2 beta 6.  I am sure you would
find subdirs under /src...

-Giri

-Original Message-
From: Da Eriksson Brothers [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 5:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat & Apache


No I got the source of tomcat. And untard it. I have a src dir though, but
now that particular thing in it.

On Fri, 27 Oct 2000, Jagannathan, Giri (c) wrote:

> Looks like you have the binary distribution of tomcat.  U wouldnt find src
> directory under tomcat..
> U got to download the source distribution of tomcat...
> 
> -Original Message-
> From: Da Eriksson Brothers [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 27, 2000 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat & Apache
> 
> 
> Im having trouble getting tomcat working with apache.
> I followed the user guide that comes with tomcat. First when it asks me to

> change direcotry into jakarta-tomcat/src.native/apache/jserv. and build
> the mod_jserv.so file with apxs, I don't have such a dir or any dir called
> jserv under the tomcat catalgue. I downloaded the file though, but I still
> can't get it working. I don't have apxs under my apache installation
> either. I can start up tomcat and connect, but when i try to run apache, I
> just get httpd could not be started. That is after I included the
> tomcat-apache.conf file. Could anyone please tell me what I might be
> missing here. I would really appreciate it. I can add I am running
> Slackware 7.1 and the apache installation that came with it. 
> 
> Thanks
> 



Re: Session Info Sharing

2000-10-30 Thread Wyn Easton

> And ... when is this servlet preloaded: is it when you start the
> server ?

The line  1
tells Tomcat to pre-load this servlet first (1) when Tomcat starts.

> If yes, does this mean that if you have 10 web-apps, each of which
> has one
> preloaded servlet, Tomcat will preload them all ?

Tomcat will pre-load all the servlets you request.

=
Wyn Easton
[EMAIL PROTECTED]

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



爱利维电梯商务网 - 电子宣传资料(总第二期)

2000-10-30 Thread sinboda
Title: 电子宣传资料(第二期) - 爱利维电梯商务网






  
  

  
  
  


  
爱利维 --- 电子宣传资料 
  
2000年10月30日 星期三 总第2期 
由此登录爱利维电梯商务网主页 




  
  




  
  

  ★本期索引★



  
  
【爱 利 维】 

  
  

  1..爱利维电梯商务网---主要栏目说明 
  2..爱利维电梯商务网---特别说明
  
【本期推荐】 

  


  1..推荐会员企业---甘肃省电梯工程公司 
  
【新闻动态】 

  


  1..广州地铁二号线自动扶梯全用国货 
  2..世界最新电梯率先在中国面市 
  3..中国西南地区规划布局机场将达四十五个 
  4..全国最大电梯合同落入广州日立囊中 
  
【商业机会】 

  


  1..提供设计电梯零部件的工装夹具及专用设备的设计、制造等服务 
  2..福建省机电设备招标公司 --- 采购乘客电梯的招标公告 
  3..南阳高新技术产业开发区管理委员会 --- 
  河南中原机械厂年产1000台电梯生产线 
  4..观光梯井道光幕(专利)
  

更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
【爱 利 
维】



  
  

  3...爱利维电梯商务网---主要栏目说明



  
  

  
新闻动态: 
将为你提供实时新闻报导,及时反映中国和世界电梯界的人和事。 
电梯企业: 
是一个大型数据库,收录国内绝大部份电梯企业的资讯资料,为你查询电梯企业的相关资料,寻找商业合作机会提供极大便利。 
商业机会: 
目前开辟商业招标信息,供求信息,工程信息,相关知识三个栏目。给各类电梯企业提供招投标信息的查询,又是一个进行招标和投标商务活动的窗口。 
配件市场: 
即是一个电梯产品展示的厨窗,更是一个查询选购电梯产品的市场。也是电梯及其配件生产厂家展示产品的大舞台。 
网站导航: 

在这里提供了本网站的第一、二层网页的链接,方便您浏览本网站。 
  

更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  

  4...爱利维电梯商务网---特别说明



  
  

  
爱利维电梯商务网入会申请优惠期已过,会员费从十月一日起恢复为每年2400元;请在优惠期间已登记注册的企业,尽快把会员合同寄回我公司,仍按照1200元优惠费计。 

爱利维电梯商务网“书面宣传资料”每月两期,从本月开始发送给所有的电梯、配件及相关的企业,用来宣传会员企业及产品,树立企业形象,扩大产品知名度;另外“电子宣传资料”每月两期,在互联网也同时发行。  详细内容请看这里 

爱处维电梯商务网(英文版)正在紧张测试中,将于近日推出。
  
如有任何意见或建议请在爱利维电梯商务网留言板留言或写电子邮件给我们,谢谢您的支持!!!
  

更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
【本期推荐】



  
  

  1...推荐会员企业---甘肃省电梯工程公司



  
  

  甘肃省电梯工程公司成立于一九八三年,是被国家建设部审定为国家—级资质施工企业的“甘肃省第二安装工程公司”下属的具有独立对外经营生产的专业分公司,是西北地区技术精湛、管理严密、经验丰富、最早从事电梯安装、维修及改造业务的骨干企业,也是建设部在西北地区第一批认可具有电梯安装维修能力的企业。先后取得建设部须发的“电梯安装许可证”;甘肃省建设委员会颁发的壹级“电梯安装许可证”和“电梯维修许可证”;甘肃省劳动局颁发的“甘肃省危险性大的生产设备安装安全认可证资质证书。 

  我公司自成立以来,一贯本着“质量第一,用户第一,服务第一,信誉第一”的企业经营方针,以及“团结、奉献、开拓、进取的企此精神,全乙全意向用户提供高效率的服务,保证用户要求的工期、工程质量和安全使用。公司行政、技术、人事及公文档案处理全部实现了计算机管理,为所有用户储存了安装维修资料,配备了传真机、直投电话、移动电话,使公司能为广大用户提供更及时有效、满意放心的优质服务。 

  

经营范围: 



  
  1.可承担各种工业建筑用、民用建筑用货、客用电梯、扶梯安装。2.可承担各种客、货用电梯、扶梯维修、保养、改造工作。3.可承担各种电梯配件销售及电气仪表安装维修工作。 
  
  
详细内容... 
更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
【新闻动态】



  
  
1...广州地铁二号线自动扶梯全用国货



  
  

  记者(任伟 
  黄皓)从地铁二号线车站自动扶梯采购合同签字仪式上获悉,地铁二号线车站自动扶梯全部采用国产设备,而且要求工艺、技术水平及其他各项指标高于一号线水平。目前,第一期工程的扶梯设备招标工作已经完成,中标的广州日立电梯有限公司为此工程的16个车站提供全部共109台自动扶梯。  地铁公司按照新的招标法,在“公开、公平、公正”的原则下,组织专家评委进行了认真细致的评标工作,最终广州日立电梯有限公司以技术、商务综合总分第一的优势脱颖而出,赢得了这个项目。  广州市地铁总公司卢光霖昨日在签字仪式上透露,从目前情况看,地铁二号线实际投资将比预算下降一大步,从另外一方面讲,地铁二号线每公里造价将大大低于一号线。 
  
  
  
更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
2...世界最新电梯率先在中国面市



  
  

  新华网北京10月26日专电 
  世界第一大电梯供应商奥的斯电梯公司日前宣布,在中国推出最新电梯技术Gen2系统,同时率先在中国推出综合电子商务产品和服务。据介绍,采用Gen2系统的产品首次将电梯牵引缆绳由重型缆绳改为扁平复合钢皮带,这是对具有150年历史的升降技术的重大突破。它使电梯的主机体积缩小了四分之三,无需独立机房,运行更安全、平稳。这一新技术研制期间,奥的斯公司组建了奥的斯中国工程中心,与总部的开发工作保持同步。目前Gen2系统以引入中国的本地化生产,产品除满足国内需求外,将出口国际市场。奥的斯的电子商务战略将使客户不论在世界任何地方、任何时间,都能快捷地与奥的斯服务中心保持联系,他们已在中国分别设置了中、英文网站。通过这一网站,客户可方便地选订电梯,公司可随时对每一部电梯的运行情况进行远程监控,乘客可通过电梯内的彩色显示屏浏览诸如新闻、气象、金融市场行情等各类信息,还可与奥的斯24小时服务中心进行有声通讯。
  
  
更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
3...中国西南地区规划布局机场将达四十五个



  
  

  中新社成都十月二十七日电 民航西南管理局局长王存浩在此间透露,在实施西部大开发的进程中,西南地区民用航空事业将迅速发展,到二0一五年,西南五省规划布局机场总数将达到四十五个,其中支线机场四十个。   王存浩称,在西部大开发的大背景下,为适应西部各省经济跨越式、追赶式发展的需要,西南地区迫切需要加快航空运输的发展。目前西部地区建机场热情空前高涨。   他说,根据西南现有民用机场的实际情况,目前在加强成都双流机场国家级枢纽机场地位的前提下,将再建设一批支线机场,从而形成以双流机场为中心的支线机场体系及支线航空网络,满足经济、社会和旅游业发展的需要。   据悉,成都双流国际机场将建成国家级、具有强大的中转、辐射能力的国际枢纽机场。同时,四川将在此期间建成十一个机场,分别为西昌青山机场、绵阳南郊机场、宜宾菜坝机场、泸州蓝田坝机场、康定斯丁措机场、九寨黄龙红星旅游机场、阆中朱家山等。并拟在今年完成绵阳南郊机场工程、泸州机场扩建工程,明年完成双流国际机场扩建工程、广元盘龙机场工程,二00三年完成攀枝花保安营机场工程、达州河市机场扩建工程,到二00五年完成九寨沟黄龙机场工程、康定斯丁措机场工程。   王存浩说,要完成上述机场建设项目,估计总投资近一百三十亿元人民币。
  

更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
4...全国最大电梯合同落入广州日立囊中



  
  

  新快报讯(记者浦一舟 毕伟强) 
  继1998年9月与合生创展集团、广东珠江投资有限公司签订468台电梯购买合同之后,今年10月27日,广州日立电梯有限公司又与合生创展集团、广东珠江投资有限公司共同签订合计808台电梯的长期供货合同。这是迄今为止国内最大的一份电梯合同,无论在电梯数量、订货金额、服务内容及产品的先进程度等方面均为国内电梯业之最。  双方再次签订的长期合同,代表了市场经济下企业间建立全新合作方式的发展趋势,反映了强强联合的巨大效果,标志着房地产发展带动相关产业发展的效果已经显露,相信此种合作模式将会成为其它行业借鉴的样板。  据悉,广州日立电梯有限公司是华南最大的电梯制造商,这次的合作方之一——合生创展集团有限公司是香港联交所上市公司,是广州市内最具实力的房地产发展商之一,而另一合作方——广东珠江投资有限公司则是集房地产开发、路桥建设、高科技通信网络投资于一体的大型资本经营公司。
  

更多内容请登录爱利维电梯商务网查阅 
  
返回索引





  
  
【商业机会】



  
  
1...提供设计电梯零部件的工装夹具及专用设备的设计、制造等服务



  
  

  本人(姓名:苏文生,男,现年59岁,职称:高级机械工程师)自1963年江西工学院机械系大学毕业后,一贯从事机械设计、制造等技术工作。尤其是

May I ask a question of Tomcat?

2000-10-30 Thread Baron





Hi,
 
I was installing Tomcat and Apache for 
testing. Most of functions were working fine.
But there was a problem when I want to 
upload  a file. A form tag was setting in a jsp file as 
following

when I submit to upload, the URL was 
transfered to
http://servername/servlet/UploadDepartmentImage , this is a worng URL
Actually, the correct URL should be 

http://servername/jeestore/servlet/jeestore/UploadDepartmentImage
 
And, web.xml was setting as 
following
 
    
    
jeestore    
com.jeestore.JeestoreServlet   
 
servlet.properties.location 
/home/jeestore/etc/jeestore.properties   
    
1    
    
    
UploadLogo    
com.oreilly.servlet.UploadLogo    
2    
    
    
UploadProductImage    
com.oreilly.servlet.UploadProductImage    
3    
    
    
UploadDepartmentImage
    
com.oreilly.servlet.UploadDepartmentImage    
4    


 
Would you please tell me what's wrong? 

Thanks.
 
Baron


IIS-Tomcat problem: Posting forms

2000-10-30 Thread Mauro Angonesi


Hello everybody!

I have a problem when trying to POST forms to ASP pages, it seems
that the posted information gets lost. As far as I understand, IIS first
tries to redirect requests to Tomcat and, if it's not handled, IIS takes
care of it. So, I guess the information is being messed up when redirecting
to Tomcat...
Has anybody had the same problem or have a clue about what's
happening? 
I'm using IIS 4 and Tomcat 3.1

Best regards,
Mauro



Re: response.sendRedirect stops working in Apache/Tomcat setup

2000-10-30 Thread Leon Palermo



Instead of redirecting, try forwarding like 
this:
 
getServletConfig().getServletContext().getRequestDispatcher("/jsp/forwardto.jsp").forward(request, 
response); 
 
Leon

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, October 30, 2000 6:44 
  AM
  Subject: response.sendRedirect stops 
  working in Apache/Tomcat setup
  
  
  
Hi!I recently setup my Tomcat to run integrated 
  with Apache. Everything worked fine, except that any jsp-page that 
  contained a response.sendRedirect stopped redirecting. I don't get any 
  response at all. Any clues?Thanks!/Martin 
  Holmgren
  Check out the latest in z.com programming, produced 
  exclusively for the net!  http://www.z.com 
  


response.sendRedirect stops working in Apache/Tomcat setup

2000-10-30 Thread mih
Hi!

I recently setup my Tomcat to run integrated with Apache. Everything 
worked fine, except that any jsp-page that contained a 
response.sendRedirect stopped redirecting. I don't get any response 
at all. Any clues?

Thanks!

/Martin Holmgren
Check out the latest in z.com programming, produced exclusively for the net!  http://www.z.com 


strange Error 404

2000-10-30 Thread Wolfgang Egger

Servus,

we have two WebApps. They both use the same java-classes, only the *.html
are different.

Both WebApps are installed with ant, both AebApps resp. their docbases are
showing right entries when viewing them with bla:8080/admin. Runing diff and
compairing /webAppA/WEB-INF/classes and /webAppB/WEB-INF/classes
shows, that both paths have the same content or subdirs.

WebAppA is running as expected. All JSPs are compiled and started, same with
sevlets.
WebAppB is causing an Error 404 with the first servlet and only the *.html
were found.

Does anyone have any idea, what is going wrong there?

Thanx in advance and have a nice day

   Wolfgang




Re: catalina.sh IS tomcat.sh ?

2000-10-30 Thread mike niemaz

And what about tomcat.conf file?
Could someone point me to the new documentation?
Also, I'm running tomcat3.2. Do you think a simple
update the the bin files, the conf & xml files is
enough to update to tomcat4.0?

--mike

mike niemaz wrote:

> I'm updating jakarta to 4.0 and i noticed
> that some scripts (and more?) has disapeared,
> which can be quiet crtitical since I had modified
> some ...
> So is catalina sh script the old tomcat.sh?
> Any more noticeable diffs?
>
> Thanx,
>
> --mike




catalina.sh IS tomcat.sh ?

2000-10-30 Thread mike niemaz

I'm updating jakarta to 4.0 and i noticed
that some scripts (and more?) has disapeared,
which can be quiet crtitical since I had modified
some ...
So is catalina sh script the old tomcat.sh?
Any more noticeable diffs?

Thanx,

--mike




RE: Logger

2000-10-30 Thread Lacerda, Wellington (AFIS)

Hi Craig,

I need a logger to collect data on tomcat contexts usage. I want to know how
many hits a certain context got, what is the most popular page, how many
hits from inside versus from the outside,
things like that. I was thinking on something like writing a
RequestInterceptor for that. Is that the way or there are less painful paths
?

Wellington

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: 28 October 2000 04:00
To: [EMAIL PROTECTED]
Subject: Re: Logger


"Lacerda, Wellington (AFIS)" wrote:

> For tomcat contexts usage, not program logging.
>
> Will this new api be in Servlet 2.4 or 2.3 ? I saw the public draft 1 for
> 2.3 and saw nothing there.
>

There are no substantive changes in 2.3 relative to logging ... what goes
into future versions is totally up to the expert group at that time.

>
> Besides, we need something more immediate.
>

What kinds of features are you looking for?

>
> Wellington
>

Craig McClanahan





AW: Win98 & Tomcat 3.1 - Starts to launch but then exists???

2000-10-30 Thread Merdes, Matthias

hi,

have you checked if your TOMCAT_HOME ends with 
\jakarta-tomcat
not 
\tomcat
?

matthias


-Ursprüngliche Nachricht-
Von: David Harris [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 30. Oktober 2000 07:15
An: '[EMAIL PROTECTED]'
Betreff: RE: Win98 & Tomcat 3.1 - Starts to launch but then exists???

I've seen this problem, on the two installations that I found this
happening, what was actually happening (after uncommenting out the @echo off
lines in tomcat.bat is that an 'out of environment space' error was
occurring.

I think there are two ways to fix it...

see this article:
http://www.polymath-software.com/support/environ.shtml

in short the method I used was no. 2

1) Open the SYSTEM.INI file and find the section "[NonWindowsApp]".
2) Ensure this section contains the following entry:
CommandEnvSize=4096

obviously if it's not an environment space error, this won't work.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: Win98 & Tomcat 3.1 - Starts to launch but then exists???


Hello
Belive it or not i faced the same problem ...and 
what did i do???
I just downloaded tomcat again ...and reinstalled 
it ..it executed successfully in first go

 cheers
jayram

-
This mail sent through  http://www.sify.com



RE: Path problem

2000-10-30 Thread Adi Eyal



Hi 
Shankar
 
I 
don't know JSP at all but your include problem is a common. If JSP includes work 
like most other environments, what is actually happening is that your included 
file is replacing your include statement. So if you refer to "images/image1.gif" 
in top.jsp, that same path is going to be used in 
mission.jsp
 
Is 
there an equivalent in jsp to $DOCUMENT_ROOT in php? This gives you the 
full path to the current file, that way your full path is calculated dynamically 
which will work for your production enviroment. 
 
Another option is to set the full path some where, 
database, include file, application session and append it to your includes. This 
variable is then a setting that must be changed when you move to production. 
etc.
 
Hope 
that was clear.
 
Adi

  -Original Message-From: shanky 
  [mailto:[EMAIL PROTECTED]]Sent: 30 October 2000 10:25To: 
  [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Path 
  problem
  Hello,
   
  Sorry for a long mail. Please help me with this. 
  
   
  Problem:Our company has lot of 
  small teams developing websites. we use a central jsp engine(tomcat) for 
  development. In order to refer to pages we use relative paths and it is 
  causing problems. this is the situation.
   
  This is our file structure.
   
  c:\programs\jrun\data\projects\proj1c:\programs\jrun\data\projects\proj1\index.jspc:\programs\jrun\data\projects\proj1\Top.jspc:\programs\jrun\data\projects\proj1\images\image1.gifc:\programs\jrun\data\projects\proj1\aboutus\mission.jsp
   
  top.jsp is used by all the pages thru out the 
  project. index.jsp includes top.jsp as <%@ include file="Top.jsp" 
  %>and Top.jsp has reference to image1.gif as mission.jsp includes top.jsp as  
  <%@ include file="Top.jsp" %>but this causes a problem - the 
  image1.gif gets referenced in mission.jsp as  and thats a wrong path and the image is not 
  shown.
   
  Work around:So we decided 
  to use absolute paths. now that causes an entirely different 
  problem.
   
  Problem with 
  workaround:---When we refer to other pages with 
  absolute paths, we have to specify the whole 
  "/projects/proj1/."(c:\programs\jrun\data is the root), but this is not 
  the path that will be in production.Using virtual directories is also 
  ruled out as we have to mention the virtual directory name in the file 
  path.
   
  Does anybody have a different approach we can 
  use.
   
  Solution being 
  considered:--One of things we were thinking is 
  modifying tomcat code to replace the path of all files to the absolute path at 
  runtime.
   
  thanks,
  Shankar
   


Re: destroy() method invocation

2000-10-30 Thread mike niemaz

Hi,

"Craig R. McClanahan" wrote:

> You don't ... and you should NOT ... call destroy() on your servlet instance.

Yes I understand that. I just meant to invoke the detroy method indirectly
when launcing the shutdown tomcat script.

> Tomcat calls it for you when it is shut down normally.  Failure to do so is a
> bug in Tomcat -- which may well be true in 3.1, but not in 3.2 or 4.0.
>

OK, I'll check this out. For info, how do I know which version I have ;-)

--mike





AW: redirect problems?

2000-10-30 Thread Amrhein, Thomas

Do you make a return after the sendRedirect?
...
response.sendRedirect("/checkout2.jsp");
return;
...

Otherwise, the output of checkout2.jsp is added (and not a 'new' output).

Hint: Call sendRedirect before you make any output!!!


-Ursprüngliche Nachricht-
Von: jim [mailto:[EMAIL PROTECTED]]
Gesendet am: Freitag, 27. Oktober 2000 18:41
An: [EMAIL PROTECTED]
Betreff: redirect problems?

Hi,
We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird problems.

1. checkout.jsp (FORM collecting new user info)
   - POSTs to checkout_eng1.jsp

2. checkout_eng1.jsp
 - adds user from #1 and does a response.sendRedirect("/checkout2.jsp");

3. checkout2.jsp shows the next FORM asking for mailing address information


Weird Symptom #1
--
On any version of Internet Explorer (never on netscape) the POST to step #2
above fails and up comes this IE error "cannot find server or DNS error"
which
leads me to beleive that the response.sendredirect() is doing something odd,
maybe not sending back the correct http location header or something

If you immediatly hit the browsers back button and re-submit the form, it
then
works with no problem and as expected. This only seems to occur the first
time
submitting forms to a page that re-directs after an operation.

Weird Symptom #2

occasionally on Internet Explorer AND Netscape.
User submits info from form #1 above (checkout.jsp), their information is
added
to the database and they are redirected to checkout2.jsp, HOWEVER what is
shown
on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND the
expected contents of checkout2.jsp with a visible HTTP response header
printed
out in between checkout.jsp's contents and checkout2.jsp's contents ALL on
visible on the URL checkout2.jsp

Anyone have any ideas? I tried checking the bug database but it appears to
be
down.