RE: web.xml layout

2001-05-19 Thread CPC Livelink Admin


I believe that the web.xml is parsed using the DTD, so rearranging the
elements will make it complain that the format of the file is incorrect.
Even if you find a container which lets you rearrange, the spec says you
should follow the DTD. So to be portable . . . .

Regards,
Paul


-Original Message-
From: Richard Draucker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 12:24 PM
To: [EMAIL PROTECTED]
Subject: web.xml layout


Does anyone know if it makes any difference whether I group
servlet contexts with servlet mappings or keep all contexts
together and below them keep all mappings together.

Assuming the xml file is being processed by SAX, the
callback handling would make this irrelevant I would think.

Thoughts?

Thanks,
Richard











RE: Why does Internet Explorer think it is offline?

2001-05-07 Thread CPC Livelink Admin


I have found that IE really wants to have the HTTP:// in front of the
localhost - On mine, it wants to change localhost:8080/whatever to
local:8080/whatever and I get a similar error to what you mention.

Could this be part of your problem?

-Original Message-
From: RODGERS,RICK (HP-Cupertino,ex3) [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 11:18 AM
To: '[EMAIL PROTECTED]'
Subject: Why does Internet Explorer think it is offline?



I am using tomcat with IE and am having problems with it.
Every time I start IE and try and access a Java Server Page or
servlet through "lolcalhost:8080/examples/jsp" the browser first complains
that the system is not connected to a network. I then click on
"try again" and the browser then seems to find the JSPand display it.
Is there a special setting for tomcat if the system is connected to a
hub?

Any thoughts?

Rick




RE: [ERROR] OutputStream is already being used for this request

2001-05-01 Thread CPC Livelink Admin


Why do you need to use a JSP - The JSP is designed to product HTML output,
and as such will always grab the writer and set the content type to
text/html.

What is wrong with just using the servlet, perhaps with an extention mapping
. . .

-Original Message-
From: Tali Ambar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 2:12 AM
To: '[EMAIL PROTECTED]'
Subject: FW: [ERROR] OutputStream is already being used for this request




> Hi
>
> 1. I'm trying to pass a stream to an html in order to see GIF files in a
> stream form on the browser.
>
> 2. I wrote (in a servlet) the following lines
>
> IStream  stream = ...; // stream of a  file in a GIF format
>
> response.setContentType ("image/GIF");
> ServletOutputStream outStream = response.getOutputStream();
>
> int p1 = 1;
> int[] p2 = new int[1];
> byte bytes[] = new byte[1];
> stream.RemoteRead(bytes,p1,p2);
> outStream.write(bytes);
>
> 3. This servlet is called by a jsp which is called from an Html file (by
> the tag:  )
>
> 4. When running only the servlet I can see the GIF file.
>
> 5. When I run the jsp I get the following error:
> "Error 500:
> OutputStream is already being used for this request
> at org.apache.tomcat.core.ResponseImpl.getWriter(ResponseImpl.java:210)"
>
> 6. running the html file fails
>
> 7. I can not use PrintWriter servlet because I need to pass binary data
> and not test.
>
> Thanks
> Tali
>
> Email: [EMAIL PROTECTED]
>




RE: Detect Browser "Disconnect"

2001-04-30 Thread CPC Livelink Admin


Put a heartbeat on the client - Use either an applet or a form with a
timeout before it resubmits.  If you don't get the heartbeat at the server,
than terminate the background thread. (This assumes that the initiat
processing can be put in a background thread.)

-Original Message-
From: Reiche, Mike [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 3:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Detect Browser "Disconnect"



WebLogic (sometimes) throws exceptions when you write to the response socket
(out.println) after a user has clicked on the 'stop' button or the browser
has timed out. Tomcat may do the same.

Mike

>-Original Message-
>From: Devon Ziegler [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 30, 2001 11:58 AM
>To: [EMAIL PROTECTED]
>Subject: Detect Browser "Disconnect"
>
>
>Well, I waited a while and decided to ask this question again
>(WITHOUT read
>receipts this time!!! :) (what a waste of email bandwidth)).
>Is there any
>way to determine if the browser that requested a page is still
>waiting for
>the response?  I would like to terminate lengthy queries and
>computations if
>the browser asking for the page is no longer waiting for it.
>We're using
>Linux 6.2 with tomcat 3.2.1 standalone and using Servlets.
>Any thoughts?
>Is this impossible?  Anybody?  Anybody?
>
>---
>Devon C. Ziegler
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>Cell:   (678) 485-7025
>Office: (678) 589-4126
>




RE: Wierd Casting Problem. Tomocat Bug?

2001-04-29 Thread CPC Livelink Admin


Are any of the classes you are using defined outside of the web app.  That
is, are you using any libraries, or class files which you specify on the
classpath prior to tomcat starting, which may also be in your web-app.  It
is situations like this which the more experienced folks point to as the
cause to this problem.  Generally, the type of error you are mentioning
happen if the class is loaded by a higher level class loader than the
JSP/Servlet's loader, but the JSP/Servlet sees the web-app's WEB-INF class
and libs before the system's classes and libs.  So if the object was created
by the system class loader (with it's copy of the class), it has a different
'Class ID' than one loaded by the JSP/Servlet class loader.

In short, try to remove all elements from your class path and extentions
directories, and put them all in the webapp for a short testing period. See
if this exposes solves the error or exposes a place where some code would
get a class from a different class loader than from others.  Then you can
slowly move the libraries back where they came from to better isolate your
problem.

Hope that helps,
Paul


-Original Message-
From: Cory L Hubert [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Wierd Casting Problem. Tomocat Bug?


Casting could happen in a regular fashion if you just restart.  Wierd.  Is
anyone planning on fixing this issue, no developer should have a 12 hour
problem because of a faulty Dynamic class loader.

-Original Message-
From: Cory L Hubert [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Wierd Casting Problem. Tomocat Bug?


When I restart that little trick doesn't work anymore.  I have a feeling
it's defenaitley a bug.  Can anyone confirm?

-Original Message-
From: Cory L Hubert [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: Wierd Casting Problem. Tomocat Bug?


I found out the problem.  This looks like an extreme hack though.

<$=((member) ((Object)e.nextElement()) ).getFname()%>

Works.   But why do I have to cast to an Object before I cast it back to
it's appropiate type.   My only guess is that the Servlet DownCast the
Vector to an Object (because there is some reflection that goes on) before
setting the Attribute and passing it to JSP.
But the actual member objects are put in the Vector as member Objects.
Any Ideas?  Does anyone thing it's wierd that you have to cast to and Object
then to the Type.
I believe this isn't a Java Bug it may be a Tomcat Bug.  Because I don't
have to cast to an Object, if I am casting to member objects in the Servlet.


-Original Message-
From: Cory L Hubert [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 3:46 AM
To: [EMAIL PROTECTED]
Subject: Wierd Casting Problem.


Ok.  Here is the problem.  I am using Model 2 Architecture.  So my Servlet
handles all the biz logic and pushes the results that are then displayed by
jsp pages.

Within a jsp page I grab my vector from the request like so..

Vector mems =(Vector)request.getAttribute("response");

Then I try to loop around it and cast it to the appropiate 
Object. Like
so...
<%
for (int i=0; i < mems.size(); i++) {

member m = (member)mems.get(i);
%>
<%=m.getFname()%>
<%}%>


I get a ClassCastException.   But when I do a toString on the Object
itself without casting, it specifies the package name of the object that I
am trying to cast to.

To make matters wierder.  When I do a getClass().isInstance(THE OBJECT 
I
WANT TO CAST TO) it returns false?

What is going on here?  Is this some classLoader issue?


Some tips that might help figure this issue out..

I am importing the class I am casting, in the JSP page. like 
so..

<%@page import="thepackage.member, java.util.*"%>

And the class itself isn't in a jar.  It's in the 
WEB-INF/classes
directory.

I also changed the container from a Vector to an ArrayList and 
got the
same results.

And I can instantiate the member object itself and use it in 
the jsp
page.

Any ideas?  Please.  Someone, HELP!!!





RE: Forwarding

2001-04-28 Thread CPC Livelink Admin

Create an frameset document with one frame.  Your servlet produces the
frameset, the target of the one frame is the new URL you want.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zsolt Koppany
Sent: Saturday, April 28, 2001 11:07 AM
To: [EMAIL PROTECTED]
Subject: Re: Forwarding


Thank you for the idea, I know the jsp:forward command but I was not
able to forward to a complete different URL for example
"http://www.sun.com:8080";. Do you know how to do that?

Zsolt

Barthélémy TEHAM wrote:
>
> by using jsp:forward Action
>
> exple: 
>
> Documentation source:
>
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html
#Section8.6
>
> --- Zsolt Koppany <[EMAIL PROTECTED]> a écrit : > Hi,
> >
> > how can I forward to a page that the user does not see where he was
> > forwarded to? The reason is, we might change the target host or page and
> > if the user makes a bookmark to the forwarded page he cannot come back
> > if we change the target host or the page.
> >
> > Zsolt
> >
> > --
> > Zsolt Koppany
> > Intland GmbH www.intland.com
> > Schulze-Delitzsch-Strasse 16
> > D-70565 Stuttgart
> > Tel: +49-711-7871080 Fax: +49-711-7871017
>
> =
> Barthélémy TEHAM -
> E-mail : [EMAIL PROTECTED]
> Website: http://teham.free.fr
>
> ___
> Do You Yahoo!? -- Pour faire vos courses sur le Net,
> Yahoo! Shopping : http://fr.shopping.yahoo.com

--
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017




RE: PLeeeeeeeeeeeeeeeeaseeeeeeeeeeeeeeeeeee help

2001-04-27 Thread CPC Livelink Admin


Yes, though when I wen to test your problem, I uses pjp as my extention.
Here is the relavant portion of my web.xml :




jsp
*.pjp

8< snip >8






-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 8:43 PM
To: [EMAIL PROTECTED]
Subject: Re: PLaseee help


I tried everything accessing tomcat directly and even with Apache but it
doesn't work. Are you writting the same kind of stuff in web.xml

Thanks
Shelly

CPC Livelink Admin wrote:
>
> I just tried this on 3.2.1 and it worked for me. Are you accessing tomcat
> directly, or through IIS or Apache - If one of the latter, then you may
need
> to specify the mappings for the new extention through the redirector.
>
> -Original Message-
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 8:21 PM
> To: [EMAIL PROTECTED]
> Subject: PLaseee help
>
> Hi:
>
> I want to know in tomcat is it possible to treat any other file
> extension as jsp.
> I saved a .jsp file as .phj and i hace done the servlet mapping in
> web.xml
> like
> 
> jsp
> *.phj
> 
>
> BUt when i try to open that page using browser it shows me text of that
> phj file.
> Do i have to do a mime-mapping, if yes then how
>
> Any help on this would be appreciated.
>
> Thanks
> Shelly




RE: PLeeeeeeeeeeeeeeeeaseeeeeeeeeeeeeeeeeee help

2001-04-27 Thread CPC Livelink Admin


I just tried this on 3.2.1 and it worked for me. Are you accessing tomcat
directly, or through IIS or Apache - If one of the latter, then you may need
to specify the mappings for the new extention through the redirector.


-Original Message-
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 8:21 PM
To: [EMAIL PROTECTED]
Subject: PLaseee help


Hi:

I want to know in tomcat is it possible to treat any other file
extension as jsp.
I saved a .jsp file as .phj and i hace done the servlet mapping in
web.xml
like

jsp
*.phj


BUt when i try to open that page using browser it shows me text of that
phj file.
Do i have to do a mime-mapping, if yes then how

Any help on this would be appreciated.

Thanks
Shelly




RE: setAttribute/getAttribute problem

2001-04-26 Thread CPC Livelink Admin


Well, it works for me - that is I can set request attributes in a servlet
and get them later in a JSP.  Make sure you are using a forward, and not a
response.sendRedirect is the only advice I can give quickly - but I'll think
on it a while.

Paul


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jason Novotny
Sent: Thursday, April 26, 2001 3:05 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: setAttribute/getAttribute problem



I stumbled into the same problem yesterday without any luck. Apparently
using request.set/getAtttribute is pretty much useless in my experience. I
had to stick the data in the session instead using session.set/getAttribute.
Not a very attractive solution, but it works anyway.

Jason

Aaron Lindsey wrote:

> I'm having problems attaching an object to the request object in a servlet
> and pulling that object out again after forwarding to a jsp.  I've created
> a bean called PopBean that I attach to the request.  After forwarding to a
> jsp, I attempt to retrieve it from the request object and cast back to
> PopBean. I get a ClassCastException.  If I run a getClass().getName() the
> result is PopBean.  However, instanceof returns false when compared to
> PopBean.   I can create new instances of PopBean in the jsp with no
> problem.  I also can pass any of the standard java classes like Vector,
> String, etc. and pull them out with no problem.  This problem only happens
> with classes that I have created myself.
>Does anyone have any ideas? I've been wrestling with this for a while
> without success.  BTW, I'm using Tomcat 3.2.1 on Solaris.  Thanks.
>
> Aaron

--
Jason Novotny   [EMAIL PROTECTED]
Home: (510) 610-8360Work: (510) 486-8662
NERSC Distributed Computing http://www-didc.lbl.gov







RE: Problem mapping servlets to /servlets/*

2001-04-23 Thread CPC Livelink Admin


>From the 3.2.1 server.xml



So to add /servlets, you would need something like this in your server.xml :



-Original Message-
From: Diego Castillo [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:42 AM
To: [EMAIL PROTECTED]
Subject: Problem mapping servlets to /servlets/*


Hi,

I am quite new to Tomcat and I have encountered problems in mapping servlets
to specific URLs. Basically, I want my servlets to be activated when invoked
through an URL that contains /servlets/* in addition to default /servlet/*.

I have added the following to my %TOMCAT_HOME%\conf\web.xml:


[...]


invoker


/servlets/*


[...]


This does not work. If I point to http://localhost/servlets/IsItWorking
instead of http://localhost/servlet/IsItWorking, Apache is not able to find
the appropriate page.

Any suggestions?

Regards,


Diego Castillo





RE: sealing violation

2001-04-23 Thread CPC Livelink Admin


>From what I have read on the list, this error is normally (99%) related to
having mixed versions of the servlet jar's in your class path.  Make sure
that you are not sharing the servlet.jar from a previous version of the spec
with the one distributed with tomcat.

-Original Message-
From: Boszormenyi GCS Laszlo [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 23, 2001 5:44 AM
To: [EMAIL PROTECTED]
Subject: sealing violation


Hello,

I am trying to deploy Tomcat 4.0b3 with Java 1.3. When I do startup.sh,
I get:
ERROR reading /usr/local/conf/server.xml
At Line 75 /Server/Service/Engine/ name=Standalone defaultHost=localhost
debug=0

Catalina.start: java.lang.SecurityException: sealing violation
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

Searching the mail archive gave me a point, my jar files are symbolic
links to the real ones. Also, they contains "/../", which seems to be
the problem(?). I have a very good reason to do it, so what I would like
to do, is turn off this security feature. Can you please tell me how to
do this?

Thanks,
Laszlo




RE: AutoRefreshing of apps

2001-04-22 Thread CPC Livelink Admin


I believe the message I see on the stdout is

RELOAD!!

And  my servlets/classes are reloaded most of the time.  Occasionally
I get a humorous message about the possibility never happening - Who put
this code here?  When I see that I smile and restart tomcat.

-Original Message-
From: Warren Crossing [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 11:11 PM
To: 'Jan Labanowski'
Cc: '[EMAIL PROTECTED]'
Subject: RE: AutoRefreshing of apps


yeah, well it feels like 6 years..

=)

thanks..

...( checking more code ) ...

whats the deal with reloadable anyway?? all the docs says its just a flag on
the context.. the code for StandardClassLoader looks reasonable.. can anyone
actually say.. "hey i've got StandardClassLoader log writes saying things
like 'myservlet was modified' "


thanx again for making me feel completely senile.

-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 12:57 PM
To: Warren Crossing
Subject: RE: AutoRefreshing of apps


On Mon, 23 Apr 2001, Warren Crossing wrote:

> hey Jeremy,
>
> I've been using tomcat 4.2 for the last 6 months...

Oh no... You did not... {:-)}

Jan




RE: UnsupportedEncoding in server.xml (UTF8)

2001-04-19 Thread CPC Livelink Admin



 
I 
think I have seen on the list that Kaffe and Tomcat do not play nice 
together.  I suggest you get another JDK to use.

  -Original Message-From: Xiaofeng Chen 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 19, 2001 
  11:56 AMTo: [EMAIL PROTECTED]Subject: 
  UnsupportedEncoding in server.xml (UTF8)
  Since I haven't make my tomcat3.1 working on my 
  RedHat machine, I downloaded tomcat 3.2.1
  to see if it will work. The problem with the 
  tomcat3.1 is that when I try to start it, it always have an
  internal error as shown below:
   
   tomcat.sh startGuessing TOMCAT_HOME 
  from tomcat.sh to ./..Setting TOMCAT_HOME to ./..Using classpath: 
  .:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:./../lib/xml.jar[root@swdev3 
  bin]# Context log: path="/examples" Adding context path="/examples"  
  docBase="webapps/examples"Context log: path="" Adding context 
  path=""  docBase="webapps/ROOT"Context log: path="/test" Adding 
  context path="/test"  docBase="webapps/test"Starting tomcat. Check 
  logs/tomcat.log for error messagesStarting tomcat install="./.." 
  home="/export/jakarta-tomcat/bin/./.." 
  classPath=".:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar:./../lib/xml.jar:/usr/share/kaffe/Klasses.jar:/usr/share/kaffe/comm.jar:/usr/share/kaffe/pjava.jar:/usr/share/kaffe/servlet.jar:/usr/share/kaffe/pizza.jar"Context 
  log: path="/admin" Automatic context load 
  docBase="/export/jakarta-tomcat/bin/./../webapps/admin"Context log: 
  path="/admin" Adding context path="/admin"  
  docBase="/export/jakarta-tomcat/bin/./../webapps/admin"Internal 
  error.Please check your CLASSPATH and your installation.Exception 
  thrown was of type `java/io/IOException'Message was `Bad file 
  descriptor
   
  Then I downloaded the jakarta-tomcat-3.2.1.tar 
  file and unzip on the same machine and ran the
  startup.sh. I got the following error. Any clue 
  to this? Apprecate any help, thanks.
   
   
  Guessing TOMCAT_HOME from tomcat.sh to 
  ./..Setting TOMCAT_HOME to ./..Using classpath: 
  ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar[root@swdev3 
  bin]# java.io.UnsupportedEncodingException: 
  UTF8    at 
  java.lang.Throwable.(Throwable.java:40)    
  at 
  java.lang.Exception.(Exception.java:21)    
  at 
  java.io.IOException.(IOException.java:22)    
  at 
  java.io.UnsupportedEncodingException.(UnsupportedEncodingException.java:24)    
  at 
  kaffe.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:89)    
  at 
  java.io.InputStreamReader.(InputStreamReader.java:37)    
  at 
  com.sun.xml.parser.XmlReader.useEncodingDecl(XmlReader.java:316)    
  at 
  com.sun.xml.parser.XmlReader.(XmlReader.java:248)    
  at 
  com.sun.xml.parser.XmlReader.createReader(XmlReader.java:86)    
  at 
  com.sun.xml.parser.InputEntity.init(InputEntity.java:139)    
  at 
  com.sun.xml.parser.Parser.parseInternal(Parser.java:463)    
  at 
  com.sun.xml.parser.Parser.parse(Parser.java:284)    
  at 
  javax.xml.parsers.SAXParser.parse(SAXParser.java:155)    
  at 
  javax.xml.parsers.SAXParser.parse(SAXParser.java:126)    
  at 
  org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)    
  at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)    
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)FATAL: 
  configuration errorjava.lang.Exception: Can't open config file: 
  ./../conf/server.xml due to: java.io.UnsupportedEncodingException: 
  UTF8    at 
  java.lang.Throwable.(Throwable.java:40)    
  at 
  java.lang.Exception.(Exception.java:21)    
  at 
  org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:223)    
  at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)    
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
   


RE: getting line numbers instead of (compiled code)

2001-04-18 Thread CPC Livelink Admin


set an environment variable to disable to compiler  - I can never remember
which one of these two it is, so I just set both (DOS example) :

SET JAVA_COMP=NONE
SET JAVA_COMPILER=NONE

Then start tomcat from that dos window, and life is good.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:31 PM
To: [EMAIL PROTECTED]
Subject: RE: getting line numbers instead of (compiled code)



You are getting "Compiled Code" because the JIT engine has compiled
your code into machine native format and it can't trace back to a line of
.java code.  I thought there was a command line option like -nojit, but
checking just now I can't seem to remember how to figure it out.

There are two common ways to find out where your problem is:
1.  Add lots of println statements (you error is in the doGet
method, so hopefully that method just calls lots of other methods and its
code isn't to long)
2.  Run Tomcat in a debugger (its Java so it can be done, but its
very slow)

Randy


> -Original Message-
> From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: getting line numbers instead of (compiled code)
>
>
> I dug out an old example I wrote some time ago
> and I'm wondering why I'm suddenly getting a Nullpointer Exception:
>
> /servlets/servlet/Auftr_Baustein
>
> Kuku's RMIJDBC Access Demo
>
> Error: 500
>
> Location: /servlets/servlet/Auftr_Baustein
>
> Internal Servlet Error:
>
> java.lang.NullPointerException
> at Auftr_Baustein.doGet(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.service(Compiled Code)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection(Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
>
> I cannot remember when my example ran last time and whether it
> was before I introduced tomcat as the servlet executor.
>
> Anyone I gotta live with the current
> configuration and have to get my examples running again.
>
> Where should I look for? Could it be a security policy
> problem that I'm trying to open a socket via rmijdbc?
> Could a .jar file be missing? How can I traceback the error
> into my code?
>
> Help!
>
> --
> Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
>




RE: Servlet reloading problems

2001-04-17 Thread CPC Livelink Admin


I have never heard/seen of the TomcatConf.xml file, so you are one up on me
there.

-Original Message-
From: Steve Brainard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 4:26 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet reloading problems


Thanks for the reply. Is this the same as adding the following lines to
TomcatConf.xml?

  



Or, do I have to set up another context in server.xml? (the above works fine
for everthing except reloading servlets without restarting tomcat. It
doesn't make sense to have to duplicate the context definition.)

Thanks,
Steve

-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 12:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlet reloading problems



Actually, it does work - you have to set the reload attribute to true in the
server.xml - my entry looks like this :





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet reloading problems


as far as i know, when you recompile a class, you need to restart
tomcat.  there is nothing that you can do about it and there are no plans
to change that.  (i got that tidbit from an online discussion group from a
sun employee.)  sorry :(


At 11:06 04/17/2001 -0700, you wrote:
>I've read all the archives and still cannot get my servlet to reload. I am
>running TOMCAT Version 3.2.1 on Windows 2000. Does anyone have a formula
>to get this to work?
>
>My servlet is in WEB-INF/classes, and I do not have WEB-INF in my
>classpath, and I have tried setting reloadable to both true and false. Is
>there anything else I can do?
>
>
>Thanks,
>Steve
>
>
>
>
>


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





RE: HTTP Referer Field Not Appearing

2001-04-17 Thread CPC Livelink Admin


On 3.2.1 it works for me.  Make sure you are actually getting to the page
using a method which would generate a referrer. Just typing the link in the
browser address bar will not do it.  You need to make a dummy html file with
a link to your test page and click on the link to see it.

-Original Message-
From: David M. Rosner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subject: HTTP Referer Field Not Appearing


Hi All,

For some reason I can't get the Referer header field from any of my JSP
pages. I'm using the following code:

String strReferringURL = request.getHeader( "referer" ) ;

I also tried looking at all of the headers in the request, but it doesn't
look like this is including all of the headers:

for (Enumeration e = request.getHeaderNames() ; e.hasMoreElements() ;) {
  Log.getInstance().logError( (String) e.nextElement() );
}


Is this because my browser is not sending all of the fields (including
referrer), or could it be the way that I have Tomcat configured?

Thanks!

-dave





RE: Servlet reloading problems

2001-04-17 Thread CPC Livelink Admin


Actually, it does work - you have to set the reload attribute to true in the
server.xml - my entry looks like this :





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet reloading problems


as far as i know, when you recompile a class, you need to restart
tomcat.  there is nothing that you can do about it and there are no plans
to change that.  (i got that tidbit from an online discussion group from a
sun employee.)  sorry :(


At 11:06 04/17/2001 -0700, you wrote:
>I've read all the archives and still cannot get my servlet to reload. I am
>running TOMCAT Version 3.2.1 on Windows 2000. Does anyone have a formula
>to get this to work?
>
>My servlet is in WEB-INF/classes, and I do not have WEB-INF in my
>classpath, and I have tried setting reloadable to both true and false. Is
>there anything else I can do?
>
>
>Thanks,
>Steve
>
>
>
>
>


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





RE: Question

2001-04-13 Thread CPC Livelink Admin


Run bin\startup from the TOMCAT_HOME directory

-Original Message-
From: George "Lifeguard" Flatman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Question




I have followed the intstructions posted at:
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer
/action/SetAll/project_id/2/faq_id/12/topic_id/102/question_id/693

I am totally confused now. I have verified and reverified the enviroment
settings on my NT server but i am still getting the following when i run
startup from the tomcat_root\jakarta-tomcat-3.2.1\bin directory.
"The system cannot find the path specified"

there are no log files created (which is a shame) to tell me what i am
missing can someone please help me.

George G. Flatman
CEO of The Edge Internet Radio
Rock n Roll with an Attitude
www.theedge2k.com





RE: URGENT - Session stickyness lost with cookies disabled

2001-04-13 Thread CPC Livelink Admin


They are exclusive.  Basically, for every link back into the web application
that needs to maintain session, the programmer must call and EncodeURL
function so that tomcat can add the JSESSIONID parameter to the URL at
execution time.

Apache URL rewriting allows the server to 'adjust' the incoming URL so that
it goes somewhere else.

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: RE: URGENT - Session stickyness lost with cookies disabled


At 04:18 PM 4/13/2001 -0400, "CPC Livelink" wrote:
>Tomcat does support url rewriting, but the developer must have written the
>web app to support it - otherwise no dice.

What about the rewrite mod in Apache? Are the two
exclusive or do they work together?





RE: URGENT - Session stickyness lost with cookies disabled

2001-04-13 Thread CPC Livelink Admin


Tomcat does support url rewriting, but the developer must have written the
web app to support it - otherwise no dice.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 4:05 PM
To: [EMAIL PROTECTED]
Subject: RE: URGENT - Session stickyness lost with cookies disabled


there are only two ways of tracking sessions

1. cookies
2. url rewriting

I don't know that tomcat supports (2)

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

> -Original Message-
> From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 13, 2001 1:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: URGENT - Session stickyness lost with cookies disabled
>
>
> At 12:54 PM 4/13/2001 -0700, you wrote:
> >I have configured apache for load balancing between 2 unix servers and it
> >is working fine when cookies are enabled. The requests are load balanced
> >between
> >the 2 servers and session stickyness works fine (once the session is
> >established
> >the request is always routed to the right app server based on the suffix
> >in the jsessionid).
> >
> >But when the cookies are disabled (I am encoding encoding the url) the
> >requests are
> >distributed between server1 and server2 meaning doesn't stick to
> the same
> >app server.
> >When there is a request from the browser (and the URL has the
> >jsessionid.suffix) the
> >mod_jserv doesn't route it to the right app server based on the
> suffix in
> >the jsessionid
> >and the session is lost (a new session id is created).
>
> Wouldn't you necessarily have to have cookies
> enabled to get this to work since http is a
> stateless protocol? I mean, what your asking
> the protocol to do is something it can't do
> without cookies, or something that it can use
> to record session information.
>
>
>
>





RE: I couldn't get SOAP to work with Tomcat via IIS

2001-04-10 Thread CPC Livelink Admin


I have not had to create the virtual mapping in IIS - in fact, it seemed to
confuse IIS more than not in our environment.

-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 7:50 PM
To: '[EMAIL PROTECTED]'
Subject: RE: I couldn't get SOAP to work with Tomcat via IIS


Did you set up an IIS virtual mapping for /soap/ ??  When I use tomcat with
IIS, I have to add mappings to BOTH the URI_worker properties AND to IIS
directly.

-Original Message-
From: Mauricio Peschard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 4:54 PM
To: [EMAIL PROTECTED]
Subject: I couldn't get SOAP to work with Tomcat via IIS
Importance: High


Hi!

I'm trying to call a servlet with SOAP over Tomcat via the IIS redirector
(isapi_redirect.dll) but I always got a SOAP Exception (SOAPException =
SOAP-ENV:Protocol, Unsupported response content type "text/html")

I just followed the steps to configure the IIS redirector to work with
Tomcat (
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm
l ), and I tested calling the /examples directory via IIS with success.

Then I configure the "soap" context (/soap/*=ajp12) in
uriworkermap.propeties, and I modify the java client to access the rpcrouter
via IIS and I always got the SOAPException.

If I access the servlet directly with Tomcat it works just fine. I'm using
the Exchange servlet and java client test examples provided by
http://www-106.ibm.com/developerworks/library/ws-peer2/?dwzone=ws

My configuration consists of:
- Tomcat 3.2.1
- Xerces 1.3.0
- JavaBeans Activation Framework 1.0.1
- JavaMail 1.2
- Soap 2.1

After finishing the installation I deployed the Exchange.java servlet and
test it successfully (Tomcat) with the java client example of the above web
page.

Any advice from or link where I can configure SOAP with Tomcat via IIS will
be greatly appreciated.

Thanks in advance,

Mauricio Peschard




RE: Session timeouts

2001-04-10 Thread CPC Livelink Admin


You could track the ValueBound event, and at binding time, make local
references to the session objects you are interested in. Then when you are
unbound, you do not need to worry about the order, since you have a local
reference and can still get/change information on it.

-Original Message-
From: Chad LaJoie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Session timeouts


Yep, I do implement HttpSessionBindingListener and no I can't call
invalidate because I depend on other objects bound to the session within my
session tracker and invalidate does not define the order at which it will
unbind objects.  Therefore I need to do an explicit removeAttribute call so
that I am assured the rest of the objects I need are still within the
session.

For reference here is my code

import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import edu.vt.ward.lexus.portal.User.*;

public class SessionTracker implements HttpSessionBindingListener{

 private String userPid;
 private ServletContext context;
 private Hashtable currentSessions;

 public SessionTracker (ServletContext ctx){
 context = ctx;
 }

 public void valueBound(HttpSessionBindingEvent event) {
 HttpSession session = event.getSession();
 User user = (User) session.getAttribute("user");
 userPid = user.getPid();
 String totalLogins;

 if(context.getAttribute("currentSessions") == null){
 currentSessions = new Hashtable();

 Date uptime = new Date(System.currentTimeMillis());
 context.setAttribute("uptime", uptime);

 totalLogins = "0";
 }else{
 currentSessions = (Hashtable)
context.getAttribute("currentSessions");
 totalLogins = (String)
context.getAttribute("totalLogins");
 }
 Date creationTime = new Date(session.getCreationTime());

 currentSessions.put(userPid, creationTime);
 context.setAttribute("currentSessions", currentSessions);

 int logins = Integer.parseInt(totalLogins) + 1;
 totalLogins = Integer.toString(logins);
 context.setAttribute("totalLogins", totalLogins);
 }

 public void valueUnbound(HttpSessionBindingEvent event) {
 HttpSession session = event.getSession();
 User user = (User) session.getAttribute("user");
 userPid = user.getPid();

 Hashtable currentSession = (Hashtable)
context.getAttribute("currentSessions");
 currentSessions.remove(userPid);

 context.setAttribute("currentSessions", currentSessions);
 }
}

At 10:37 AM 4/10/2001, you wrote:

>Chad,
>
>I am doing something very similar...
>
>Are you implementing the HttpSessionBindingListener interface in your
>object?  If not, try implementing this interface in your object that is
>placed in the session.  This will throw a 'valueBound' event when the
object
>is placed in the session and a 'valueUnbound' event when removed (either
>explicitly or by timeout).  The valueBound method will increment the count,
>and the valueUnbound method will decrement it.  Works perfectly for me.
>
>Also, you might want to use session.invalidate() rather than explicitly
>removing the session objects-- I found it was easier to manage.
>
>HTH,
>
>Mike
>
>
>
>
>-Original Message-
>From: Chad LaJoie [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 10, 2001 10:25 AM
>To: [EMAIL PROTECTED]
>Subject: Session timeouts
>
>
>  I have been experiencing some problems with sessions timeouts.
It
>seems that they are not unbinding all my sessions attributes.  For
>instance.  I have a session tracker object that gets bound to a user's
>session when they log in.  This  simply adds 1 to an application level
>attribute indicating the number of people who are currently logged
>in.  When the user's logs out I call session.removeAttribute("tracker");
>explicitly and the attribute is unbound.  This decrements the application
>attribute by 1.  This all works fine.  However if the session actually
>time's out the tracker object doesn't seem to be unbound.  I.e. my little
>session tracker program still show the user as loged in.
>  Has anyone else encountered this problem, and if so is there a
>solution for it?
>
>Env:
>  Tomcat 3.2.1
>  Sun JDK 1.3.0_1
>  Apache 1.3.19
>  Solaris 8
>
>Chad La Joie   "Only a man who can not conquer
>IT Specialist his deficiencies feels the need
to
>IS&C - WARD convince the world he has none"
>

Chad La Joie   "Only a man who can no

RE: static reference to a method

2001-04-09 Thread CPC Livelink Admin


The problem is that you have not declared the method as static.  So you need
to either do this :

(new dynamicContent.dynamicContent()).getSelected("A", "B");

or declare the function as static String getSelected(string a, String b) and
call

dynamicContent.dynamicContent.getSelected("A", "B");

If the function is not declared static, then you have to have an object of
the class to call the function.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:21 PM
To: [EMAIL PROTECTED]
Subject: static reference to a method


Hi there
I was wondering if anybody could help me out with
something?

I have a JSP that is trying to access a method in a
java class that I have defined. However, when I try
and run the pgae, it gives the 500 error message and
says

"Can't make static reference to method
java.lang.String getSelected(java.lang.String,
java.lang.String) in class
dynamicContent.dynamicContent."

I have not declared the method as static nor the
class.

The method is part of an error handling page (called
retry.jsp) that is shown to the user when they have
entered data incorrectly in a form. Its function is to
preselect an option (by returing the word SELECTED) in
a HTML select box (the one that the user entered in
the first place) by comparing the value that was
entered by the user in the original input form to the
value of the select box options as they are created
(they are dynamically created, not HTML coded).



_
http://movies.yahoo.com.au - Yahoo! Movies
- Now showing: Dude Where's My Car, The Wedding Planner, Traffic..




RE: Closing ResultSet and Statement?

2001-03-20 Thread CPC Livelink Admin


ResultSets can and should be closed. They are not like normal classes with
an iterator.

ResultSets are created by Statements. Statements can and should be closed.
When a statement is reused, it will close the resultset (if not closed
already) that it previously supplied in order to get the new results. When a
statement is closed it will close the resultset it created. The number of
simultaneous open statements for a given connection can be (and is)
limited - the oracle limit is about 50 by default.

Statements are created by Connections. If you close the connection it closes
the statement which closes the resultset.

Regards,
Paul


-Original Message-
From: Zenon Braga F. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Closing ResultSet and Statement?


I'm not sure, but I think that you don't close a ResultSet, you only close
the connection, in fact, you can even close the connection and still work
with your ResultSet.
Think of ResultSet like a normal class with an interator that allows you to
go forward and backward.

sincerely,

Zenon Farias Braga F.


>From: "Mick Sullivan" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Closing ResultSet and Statement?
>Date: Mon, 19 Mar 2001 20:48:31 -
>
>Hi
>Does anyone know how to close a ResultSet?
>Heres my code:
>public String getName() throws Exception {
>   Statement statement = connection.createStatement();
>   int myInt = 1;
>   ResultSet rs = statement.executeQuery("SELECT Name"+
>   " FROM nameAddress" +
>   " WHERE ID = ("+
>   myInt + ")");
>   rs.next();
>   String myString = rs.getString("Name");
> //change the resultSet to a string
> //so it can be used by the jsp page
>   return myString;
>  }
>Any help at all would be much appreciated
>Thanks in advance,
>Mick
>
>
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>

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





RE: Null pointer exception using Oreilly multipart classes on Sparc

2001-03-08 Thread CPC Livelink Admin


I have just recently seen this too.  In my case, I had two upload fields.
Whichever one was first, would not work, the second one would.  I then
upgraded to the Jan 2001 version of the oreilly stuff, and started getting
your message.  I suspect a client issue - I am using IE 5.5 SP1.  I have not
yet been able to track down the problem though.

Regards,
Paul


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Null pointer exception using Oreilly multipart classes on
Sparc


To be more exact, I get "null pointer exception" with MultiPartRequest, and
"java.IOException: unexpected end of part" with MultiPartParser.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: Null pointer exception using Oreilly multipart classes on Sparc


We are using Jason's MultiPart classes to upload files.  They tested out
fine on our NT development platform using Sun JDK 1.3.  Our production
environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of
text files work fine, but trying to upload a Microsoft Word document results
in a null pointer exception.  I haven't debugged this yet, but I notice a
file of zero size with the correct name in the upload directory, so the file
part is obviously being found.

We have a different app on a different Sparc box using JDK 1.2.2, and it
appears to work okay.  Are there any known issues with the Multipart classes
on JDK 1.3 on Sparc?

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

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



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




RE: what's mean "wrong name." message?

2001-03-08 Thread CPC Livelink Admin


Looks like the file you have in com/filonet/jdf/servlet/UploadedFile.class
is actually compiled from a class whose package is
com/lgeds/jdf/servlet/ - It is not enough to move a class from one directory
to another to change it's package. You must change the source and recompile.

Regards,
Paul

-Original Message-
From: Steve,Park(¹Ú½Â¿ø) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 11:33 AM
To: [EMAIL PROTECTED]; Tomcat-Dev
Subject: what's mean "wrong name." message?


Help me...following error occurs. and i have no
com.lgeds.jdf.servlet.UploadedFile class. but
What does Tomcat talking to me ? Help me..

what's mean wrong name.? i already store a class file "UploadedFile.class"
to
"/usr/local/tomcat/webapps/en/WEB-INF/classes/com/filonet/jdf/servlet/"

i wonder what's mean following line Ctx(/en): Exceptionblah blah...^^
Thanks.

2001-03-09 01:21:47 - Ctx( /en ): Exception in: R( /en +
/jsp/fileop/upload/Uplo
adGo_en.jsp + null) - javax.servlet.ServletException:
com/filonet/jdf/servlet/Up
loadedFile (wrong name: com/lgeds/jdf/servlet/UploadedFile)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: com/filonet/jdf/servlet/UploadedFile (wrong
name
: com/lgeds/jdf/servlet/UploadedFile)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at
com.filonet.jdf.servlet.MultipartRequest.(MultipartRequest.java:139)
at
jsp.fileop.upload._0002fjsp_0002ffileop_0002fupload_0002fUploadGo_000
5fen_0002ejspUploadGo_0005fen_jsp_0._jspService(_0002fjsp_0002ffileop_0002fu
ploa
d_0002fUploadGo_0005fen_0002ejspUploadGo_0005fen_jsp_0.java:97)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



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




RE: Newbie Question, this should be easy

2001-02-16 Thread CPC Livelink Admin


Well, there are two errors.  One, you don't have the java compiler in your
classpath. This is usually in a file called tools.jar.

Second, the XML tag extentions are case sensitive.  You will need to use
jsp:usebean and jsp:setproperty (thought I can't remember if it is useBean
and setProperty instead - rats)

Regards,
Paul


-Original Message-
From: Ashant Chalasani [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 8:25 PM
To: [EMAIL PROTECTED]
Subject: Newbie Question, this should be easy


Hi all,

I have the following error when trying to load a simple JSP page.  Please
find the JSP code as well as the error below.  Could someone see what the
problem is?

Thanks in advance, AC

JSP
---

<% page import = "Input.Splash" %>







 This life ain't good enough



Testing some JSP.

This text was brought back.






Error: 500
-
Location: /Uni-Calendar/many.jsp
Internal Servlet Error:

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

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


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


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



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




RE: Anybody doing doPost successfully ?

2001-02-16 Thread CPC Livelink Admin



I have 
successfully received post data in a JSP both using the getParameter and using 
the com.oreilly.servlet utility classes. 
 
How 
are you sending the post data?  Are you using a web browser and form, or 
are you trying to post it yourself using an applet or something.  The 
process does work, so it must be something unique to the way you are sending the 
info.
 
Regards,
Paul
 

  -Original Message-From: Mandar Joshi 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 16, 2001 
  1:39 PMTo: [EMAIL PROTECTED]Subject: 
  Anybody doing doPost successfully ?
  Hi,
  I am still not successful in getting data in 
  doPost. anybody is doing it successfully ?
   
  Regards,
  Mandar
  
- Original Message - 
From: 
Mandar Joshi 
To: [EMAIL PROTECTED] 

Sent: Thursday, February 15, 2001 6:15 
PM
Subject: No Data available in doPost 
?

Hi,
 
I am doing the following thing in my doPost() 
method.
 
__
 
    public void 
doPost(HttpServletRequest request,HttpServletResponse response) 
throws ServletException, IOException    {
 try    
     {   
    InputStream ins = 
request.getInputStream();        
   logMsg("Bytes available " + ins.available());
     
}    
}
 
I am posting some data to this servlet but 
I am getting the available bytes to be 0 
??
 
Any guess why is this happening ?
 
TIA
Mandar


RE: RequestDispatcher.forward() in Tomcat 3.2.1

2001-02-16 Thread CPC Livelink Admin


What Craig meant (I believe) by "prohibits you from modifying the response"
is that the response has been committed and no more data can be sent. The
html/other-data you are sending to the client is part of the response. When
the forward returns, you are prohibited by the spec, from adding any more
information to the response output stream.

If you need to do as you desire, you must use some kind of include based
scheme instead of forward.

Regards,
Paul


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 9:38 AM
To: [EMAIL PROTECTED]
Subject: Re: RequestDispatcher.forward() in Tomcat 3.2.1


You are right.  Control does return to the calling servlet.  It just
couldn't
write to the response.  It would be nice if an exception was thrown.

After control returns to the calling servlet, I try forwarding to a second
servlet and that doesn't seem to work.  The first servlet that was forwarded
to did not change the response.

Is multiple forward within a servlet not supported/allowed?

Bill

"Craig R. McClanahan" wrote:

> William Au wrote:
>
> > Is there any way in Tomcat 3.2.1 for the control to return to a servlet
> > after its
> > call to RequestDispatcher.forward() is completed?
>
> Control *does* return -- RequestDispatcher.forward() is a normal Java
> method call.
>
> However, the servlet spec prohibits you from modifying the response at
this
> point.  If Weblogic lets you do this (for instance, by allowing you to add
> additional text to the response created by the forwarded-to servlet), then
> it is not obeying the spec.
>
> >  That is the behavior
> > of
> > WebLogic 5.1.0.  I want my code to work on the same way running under
> > both.   I am aware of the RequestDispatcher.include() method.
> >
> > Bill
> >
>
> Craig McClanahan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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



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




RE: Please help

2001-02-15 Thread CPC Livelink Admin


somebody is.  Run 
netstat -a 
and examine the results.

-Original Message-
From: Binu Kamal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 4:02 PM
To: [EMAIL PROTECTED]
Subject: Please help


I installed tomcat on a solaris  machine where Apache Server is running.
When I run startup.sh, I get the following error message.
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.bind(Compiled Code)
at java.net.ServerSocket.(Compiled Code)
at java.net.ServerSocket.(Compiled Code)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Compiled
Code)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(Compiled Code)
at org.apache.tomcat.service.PoolTcpConnector.start(Compiled
Code)
at org.apache.tomcat.core.ContextManager.start(Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(Compiled Code)
at org.apache.tomcat.startup.Tomcat.main(Compiled Code)
Apache is not using ports 8007 and 8080.
Thanks
Binu


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



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




RE: (Off topic) How to know which hyper-link has been clicked?

2001-02-15 Thread CPC Livelink Admin


Look a the docs for the HttpServletRequest object.

The short answer is that request.getRequestURI is probably what you want.

-Original Message-
From: Paul Yoon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: (Off topic) How to know which hyper-link has been clicked?


Hello,

I am sorry to ask off topic
but is there any way to know which hyper-link was clicked?
There is a page which can generate dynamically hyper-link
and linked page should know which one was cliked.
I am using jsp and can I use parameter?
Any idea will be appreciated.
Thank you.

Paul Yoon


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



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




RE: Regarding support for tomcat server....................

2001-02-15 Thread CPC Livelink Admin


I think his point was that neither one was showing any value other than 1,
because the JSP was always recompiled, and then reloaded. Thus the class
variable was being reset to 0 as the class was reladed.

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 10:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Regarding support for tomcat server


I don't know what's going on with your compile question, but your code is
wrong.  It should look like this:

Take a close look at the ! (bang).

    <%!
      int globalCounter = 0;
    %>

     This page has been visited: <%= ++globalCounter %> times.

     
     <%!
       int localCounter = 0;
     %>
     NOW!  This counter increases its value: <%= ++localCounter %>

If you set a local variable to 0 everytime you run the code then it's always
going to be 0.  So it's never going to increment.  Give localCounter class
scope, just like you gave globalCounter class scope and it will increment.

Rick




On Thu, 15 Feb 2001, you wrote:

> > Have you tried to disable browser cache?
>
> Attilio
>   - Original Message -
>   From: Ravindra
>   To: [EMAIL PROTECTED]
>   Cc: [EMAIL PROTECTED]
>   Sent: Thursday, February 15, 1996 10:17 AM
>   Subject: Regarding support for tomcat server
>
>
>   Hello Sir,
>  I am Ravindra using tomcat 3.2.1 server in standalone mode
>   for learning jsp .
>   but problem is every time when i request for jsp page server
>   is creating .java file & compiled it into class file .
>   But this should not happened ,java file& class file should
>   generate first time after change in jsp file .
>   so i am facing problems for follwing counter.jsp example.
>   when same jsp i am running through javawebserver2.0 it
>   is working fine because java & class file is created after
>   change in jsp only.not like previous case.
>
>   Bellow i am giving code so please help me to solve the
>   problem
>
>
> --
-
>--
>
>
>   <%@ page language="java" contentType="text/html" %>
>   
> 
>   A page with a counter
> 
> 
>   <%!
> int globalCounter = 0;
>   %>
>
>   This page has been visited: <%= ++globalCounter %> times.
>
>   
>   <%
> int localCounter = 0;
>   %>
>   This counter never increases its value: <%= ++localCounter %>
>
> 
>   
>
>
> --
-
>--
>
>   Thank you very much
>
>   Regards
>
>  Ravindra


Content-Type: text/html; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description:


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



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




RE: Regarding support for jsp........

2001-02-14 Thread CPC Livelink Admin



This 
is working fine for me (I tested your code on my tomcat 3.2.1). It sounds like 
you have a file timestamp problem. Look at the timestamp on your JSP file and 
then the generated Java code. If they are on different filesystems or were 
created by different computers then they may be out of sync.  That is, if 
the JSP is dated somewhere in the future (due to a timezone conflict for 
instance) then when the java file is generated, it has the current time. Next 
time you hit the page, tomcat looks at the timestamps and sees the future time 
for the jsp again so it recompiles.
 
Hope 
this helps,
Paul
 

  -Original Message-From: Ravindra 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 14, 1996 7:46 
  AMTo: [EMAIL PROTECTED]Subject: Regarding 
  support for jsp
  Hello Sir,
     I am Ravindra using tomcat 3.2.1 
  server in standalone mode
  for learning jsp .
  but problem is every time when i request for jsp 
  page server
  is creating .java file & compiled it into 
  class file .
  But this should not happened ,java file& 
  class file should 
  generate first time after change in jsp file 
  .
  so i am facing problems for follwing counter.jsp 
  example.
  when same jsp i am running through 
  javawebserver2.0 it
  is working fine because java & class file is 
  created after
  change in jsp only.not like previous 
  case.
   
  Bellow i am giving code so please help me to 
  solve the 
  problem
   
  -
   
   
  <%@ page language="java" 
  contentType="text/html" %>  
      A page with a 
  counter        <%! 
    int globalCounter = 0; 
      %>    This page has been 
  visited: <%= ++globalCounter %> times.    
      <%   int 
  localCounter = 0;    %>    This 
  counter never increases its value: <%= ++localCounter %>  
  
   
  -
   
  Thank you very much
   
  Regards
   
     Ravindra
   


RE: HttpUtil

2001-02-13 Thread CPC Livelink Admin


Well, I just changed the form from "get" to "post" in the sample I posted
(which is still below) and I got exactly the same results. I don't know what
your problem is - are you doing anything special beyond what's in the
example below.

Regards,
Paul


-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtil


yes, for get method, it is working, but I have to use post method.

rgds
sun


-----Original Message-
From: CPC Livelink Admin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, February 13, 2001 9:15 AM
Subject: RE: HttpUtil


>
>It works for me as well. The only caveat is that with text boxes (which I
>thought you said you were not using) the browser sends an empty string for
>some of the boxes.
>
>Here is some sample JSP code :
>
> 
> 
> 
><%
> String []vals = request.getParameterValues("foo");
> if (vals != null)
> {
> for (int i = 0; i < vals.length; i++)
> {
> %>
> [<%= vals[i] %>]
> <%
> }
> }
>%>
>
> 
>
> 
> Foo
> Foo
> Foo
> Foo
> Foo
> Foo
>
> 
> 
>
>
>
>
>-Original Message-
>From: Randy Layman [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 7:35 AM
>To: [EMAIL PROTECTED]
>Subject: RE: HttpUtil
>
>
>
> Then your HTML or web browser is not correct.  I use this method for
>exactly what you are trying to do and it works just fine.
>
> Randy
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 1:58 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly
which
>I selected.
>
>-Original Message-
>From: CPC Livelink Admin <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:56 PM
>Subject: RE: HttpUtil
>
>
>
>
>A quick read of the docs for Interface ServletRequest reveal a snippet in
>the description of function getParameter :
>
>You should only use this method when you are sure the parameter has only
one
>value. If the parameter might have more than one value, use
>getParameterValues(java.lang.String).
>
>
>getParameterValues
>public java.lang.String[] getParameterValues(java.lang.String name)
>Returns an array of String objects containing all of the values the given
>request parameter has, or null if the parameter does not exist.
>If the parameter has a single value, the array has a length of 1.
>Parameters:
>name - a String containing the name of the parameter whose value is
>requested
>Returns:
>an array of String objects containing the parameter's values
>See Also:
>getParameter(java.lang.String)
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 12:45 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
>inputstream, I should get a array of value, it should be paraname=1,2,4,5.
>that is why I have to use HttpUtil, but now it is not working, so where is
>wrong? maybe I should use servlet instead of jsp, than inputstream will not
>be corrupted.
>
>
>-Original Message-
>From: Chris Janicki <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:34 PM
>Subject: Re: HttpUtil
>
>
>String paraname = request.getParameter("checkboxName"); // 'request' is a
>built-in JSP object
>
>
>>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
>
>On 2/13/01, 12:21:40 PM, "sun" <[EMAIL PROTECTED]> wrote regarding Re:
>HttpUtil:
>
>
>> but how to get parameter value passed from previous page, 5 checkbox with
>> same name different value, I want to get paraname=1,2,4,5 if I selected 4
>> boxes.
>
>
>> -Original Message-
>> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> Date: Monday, February 12, 2001 9:14 PM
>> Subject: Re: HttpUtil
>
>
>> >sun wrote:
>> >
>> >> no, I didn't call request before using HttpUtil, HttpUtil was put at
>> first
>> >> line in .jsp.
>> >>
>> >
>> >But the JSP page did it for you (that is, the generated servlet did).
>> >
>> >Simply use the standard JSP mechanisms

RE: are 3.2.1 Tomcat-IIS-Howto' docs valid for Tomcat4-IIS5-Win2k?

2001-02-13 Thread CPC Livelink Admin



As I understand it, the connector for 3.x will not work with 4.0 as it is.
They are looking for people to help migrate the connector - so if you are
willing . . .

-Original Message-
From: Grobe, Gary [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 12:02 PM
To: '[EMAIL PROTECTED]'
Subject: are 3.2.1 Tomcat-IIS-Howto' docs valid for Tomcat4-IIS5-Win2k?


Are the 'Tomcat IIS Howto' docs from Tomcat3.2.1 valid for trying to get
Tomcat4-0 running with IIS5 on Win2k?

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



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




RE: HttpUtil

2001-02-13 Thread CPC Livelink Admin


It works for me as well. The only caveat is that with text boxes (which I
thought you said you were not using) the browser sends an empty string for
some of the boxes.

Here is some sample JSP code :




<%
String []vals = request.getParameterValues("foo");
if (vals != null)
{
for (int i = 0; i < vals.length; i++)
{
%>
[<%= vals[i] %>]
<%
}
}
%>




Foo
Foo
Foo
Foo
Foo
Foo







-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 7:35 AM
To: [EMAIL PROTECTED]
Subject: RE: HttpUtil



Then your HTML or web browser is not correct.  I use this method for
exactly what you are trying to do and it works just fine.

Randy

-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtil


I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly which
I selected.

-Original Message-
From: CPC Livelink Admin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, February 12, 2001 9:56 PM
Subject: RE: HttpUtil




A quick read of the docs for Interface ServletRequest reveal a snippet in
the description of function getParameter :

You should only use this method when you are sure the parameter has only one
value. If the parameter might have more than one value, use
getParameterValues(java.lang.String).


getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
Returns an array of String objects containing all of the values the given
request parameter has, or null if the parameter does not exist.
If the parameter has a single value, the array has a length of 1.
Parameters:
name - a String containing the name of the parameter whose value is
requested
Returns:
an array of String objects containing the parameter's values
See Also:
getParameter(java.lang.String)

-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 12:45 PM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtil


I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
inputstream, I should get a array of value, it should be paraname=1,2,4,5.
that is why I have to use HttpUtil, but now it is not working, so where is
wrong? maybe I should use servlet instead of jsp, than inputstream will not
be corrupted.


-Original Message-
From: Chris Janicki <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, February 12, 2001 9:34 PM
Subject: Re: HttpUtil


String paraname = request.getParameter("checkboxName"); // 'request' is a
built-in JSP object


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 2/13/01, 12:21:40 PM, "sun" <[EMAIL PROTECTED]> wrote regarding Re:
HttpUtil:


> but how to get parameter value passed from previous page, 5 checkbox with
> same name different value, I want to get paraname=1,2,4,5 if I selected 4
> boxes.


> -Original Message-
> From: Craig R. McClanahan <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Monday, February 12, 2001 9:14 PM
> Subject: Re: HttpUtil


> >sun wrote:
> >
> >> no, I didn't call request before using HttpUtil, HttpUtil was put at
> first
> >> line in .jsp.
> >>
> >
> >But the JSP page did it for you (that is, the generated servlet did).
> >
> >Simply use the standard JSP mechanisms to retrieve request attributes
and
> you
> >should be fine.  If you *really* want to process the input data
yourself,
> you
> >should be using a servlet instead of a JSP page.
> >
> >Craig McClanahan
> >
> >
> >>
> >> -Original Message-
> >> From: Craig R. McClanahan <[EMAIL PROTECTED]>
> >> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> >> Date: Monday, February 12, 2001 2:48 PM
> >> Subject: Re: HttpUtil
> >>
> >> >sun wrote:
> >> >
> >> >> yes, I tried that, got same error, "short read",
> >> >> in terms of docs, it means posted inputstream is invalid, but I am
not
> >> sure
> >> >> about that.
> >> >>
> >> >
> >> >One reason you could get a "short read" response is if the servlet
> >> container
>

RE: HttpUtil

2001-02-12 Thread CPC Livelink Admin
Title: 



A quick read of the docs for Interface ServletRequest reveal a 
snippet in the description of function getParameter :You should only use 
this method when you are sure the parameter has only one value. If the parameter 
might have more than one value, use 
getParameterValues(java.lang.String).
getParameterValuespublic java.lang.String[] getParameterValues(java.lang.String name)

  Returns an array of String objects containing all of the 
  values the given request parameter has, or null if the parameter 
  does not exist. 
  If the parameter has a single value, the array has a length of 1.
  
  
Parameters: 
name - a String containing the name of the 
parameter whose value is requested 
Returns: 
an array of String objects containing the parameter's 
values 
See Also: 
getParameter(java.lang.String)
-Original Message-From: sun [mailto:[EMAIL PROTECTED]]Sent: 
Tuesday, February 13, 2001 12:45 PMTo: 
[EMAIL PROTECTED]Subject: Re: HttpUtilI only get 
one, paraname=1, actually I checked 4 boxes, in terms of postedinputstream, 
I should get a array of value, it should be paraname=1,2,4,5.that is why I 
have to use HttpUtil, but now it is not working, so where iswrong? maybe I 
should use servlet instead of jsp, than inputstream will notbe 
corrupted.-Original Message-From: Chris Janicki 
<[EMAIL PROTECTED]>To: [EMAIL PROTECTED] 
<[EMAIL PROTECTED]>Date: Monday, February 12, 2001 9:34 
PMSubject: Re: HttpUtilString paraname = 
request.getParameter("checkboxName"); // 'request' is abuilt-in JSP 
object>> 
Original Message 
< wrote regarding 
Re:HttpUtil:> but how to get parameter value passed from 
previous page, 5 checkbox with> same name different value, I want to get 
paraname=1,2,4,5 if I selected 4> boxes.> -Original 
Message-> From: Craig R. McClanahan 
<[EMAIL PROTECTED]>> To: [EMAIL PROTECTED] 
<[EMAIL PROTECTED]>> Date: Monday, February 12, 2001 
9:14 PM> Subject: Re: HttpUtil> >sun wrote:> 
>> >> no, I didn't call request before using HttpUtil, HttpUtil 
was put at> first> >> line in .jsp.> >>> 
>> >But the JSP page did it for you (that is, the generated servlet 
did).> >> >Simply use the standard JSP mechanisms to 
retrieve request attributesand> you> >should be fine.  
If you *really* want to process the input datayourself,> you> 
>should be using a servlet instead of a JSP page.> >> 
>Craig McClanahan> >> >> >>> >> 
-Original Message-> >> From: Craig R. McClanahan 
<[EMAIL PROTECTED]>> >> To: 
[EMAIL PROTECTED] <[EMAIL PROTECTED]>> 
>> Date: Monday, February 12, 2001 2:48 PM> >> Subject: Re: 
HttpUtil> >>> >> >sun wrote:> >> 
>> >> >> yes, I tried that, got same error, "short 
read",> >> >> in terms of docs, it means posted inputstream 
is invalid, but I amnot> >> sure> >> >> 
about that.> >> >>> >> >> >> 
>One reason you could get a "short read" response is if the servlet> 
>> container> >> >has already read the input stream's 
contents.  For example, if you are> >> >processing a POST 
request and you have already called something like> >> 
>request.getParameter(), the contents of the input stream would have> 
already> >> >been processed.> >> >> 
>> >Craig McClanahan> >> >> >> 
>> >> >> >> 
>-> 
>> >To unsubscribe, e-mail: 
[EMAIL PROTECTED]> >> >For additional 
commands, email: [EMAIL PROTECTED]> >> 
>> >>> >> 
-> 
>> To unsubscribe, e-mail: 
[EMAIL PROTECTED]> >> For additional 
commands, email: [EMAIL PROTECTED]> >> 
>> 
>-> 
>To unsubscribe, e-mail: [EMAIL PROTECTED]> 
>For additional commands, email: [EMAIL PROTECTED]> 
>> 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For 
additional commands, email: 
[EMAIL PROTECTED]-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, email: 
[EMAIL PROTECTED]-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, email: 
[EMAIL PROTECTED]


RE: Tomcat 3.2 throwing a VerifyError at me

2001-02-12 Thread CPC Livelink Admin


An easy way to find it is to introduce an error in the JSP and look at
Jaspers error message, which includes the full path to the file.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 9:38 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 3.2 throwing a VerifyError at me



In the work directory will be a .java file that will correspond to
your jsp file.  (The name will be managled, but its fairly straight forward
which file is which).  You won't be able to change how Jasper works, but
knowing which class it wants to create with a no-arg constructor will help
solve the problem.

Randy


-Original Message-
From: Rajnish Bhaskar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 10:01 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 3.2 throwing a VerifyError at me


>   It would appear to me that you are trying to create an instance of a
> class (using Class.newInstance()) that doesn't have a matching contructor

I never call Class.newInstance() at all in my code.

> maybe Jasper is generating this call?

How do I check this, and how do I stop it from happening?

Sorry for all the questions, maybe I should just leave the system
alone.  It sems quite happy with Tomcat 3.1.

Thanks,
Raj.

--
Rajnish Bhaskar
[EMAIL PROTECTED], http://i.am/rajy
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
Arms alone are not enough to keep the peace
it must be kept by men.
 -- John Fitzgerald Kennedy, 1962


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

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



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




RE: Using a servlet superclass

2001-02-11 Thread CPC Livelink Admin


Yes.

Have your WorkerServlets implement a procedure called childInit or
something, which is basically an empty procedure in the SuperServlet.  Then
call this function as the last (or first) call of the SuperServlet init
function. This is much like how GenericServlet makes init() a convenience
call instead of init(ServletConfig config).

Regards,
Paul


-Original Message-
From: Jill Stephenson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 11, 2001 8:52 PM
To: '[EMAIL PROTECTED]'
Subject: Using a servlet superclass


I have a number of servlets in my application that need to
perform common initialisation, etc.  So I was thinking of
creating a superclass that has an init method that does all
of the common work, eg.,

public class SuperServlet extends HttpServlet {
  public void init() {
// do common initialisation stuff in here
  } // init
} // SuperServlet

Then all the workers servlets would extend SuperServlet
rather than HttpServlet, eg.,

public class WorkerServlet extends SuperServlet {
  ...
} // WorkerServlet

This seems to be OK, until I implement init in the
WorkerServlet, as the init method in the SuperServlet
does not then get invoked.  While I can call super.init()
in the WorkServlet, I want this to be handled automatically
as I can bet on someone forgetting this step, eg.,

public class WorkerServlet extends SuperServlet {
  public void init() {
// don't want to have to make this call ==> super.init();
  } // init
  ...
} // WorkerServlet

Is there any way to implement this ?


Jill

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



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




RE: Configuration of Tomcat

2001-02-10 Thread CPC Livelink Admin



 
This 
means that the tools.jar file was not put in your classpath.  Ensure that 
the JAVA_HOME environment variable is set or modify your batch files to specify 
it directly.  Tools.jar contains the javac compiler which Jasper uses to 
compile the code it generates from the JSP file.
 
Regards,
Paul
 

  -Original Message-From: wkc 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 10, 2001 10:54 
  AMTo: [EMAIL PROTECTED]Subject: 
  Configuration of Tomcat
  
  I've followed the instructions regarding updating the 
  tomcat.bat file to accomodate for the jdk home directory. 
  However when trying to access a JSP example whilst having 
  the tomcat server running the following error message appears in the DOS 
  prompt:
   
  unhandled error! You might want to consider having an error 
  page to report such errors more gracefully
  java.lang.NoClassDefFoundError: 
  sun/tools/javac/Main
      at 
  org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
   
  please help, since I cannot proceed with my dissertation is 
  this problem is not overcome.
   
  Thanks
  WKC


RE: tomcat on win2k

2001-02-06 Thread CPC Livelink Admin


IE is pretty stupid that way.  It does it to me and I am online all the
time. The trick is to put the http:// in there explicitly, then it won't
convert to local:8080

-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 5:10 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat on win2k


I have the Tomcat 4.0 Dev nightly build (? - i'd have to check which one)
running on Windows 2000.
I didn't come across any errors.

The only thing I couldn't do was actually view the examples web app using IE
(i
believe 5.5).
IE does not want to let me connect to 'localhost:8080' offline.  It changes
the
address to 'local:8080'.
Running the examples in Netscape 4.01 worked fine though.

Pete

Lakshmi Bhetanabhotla wrote:

> Hi ,
> I wanted to know if this servlet engine..( TOMCAT) is supported on Win2K.
I
> have installed it on Win2k,
> set up all the paths and classpaths, but when I startup the server, the
> process aborts giving a runtime
> exception. Has anyone had a similar problem regarding installation of
tomcat
> on win2k. I greatly appreciate
> any feedback or help on this.
> Thank You,
> Lakshmi.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: Session ids (netscape)

2001-02-06 Thread CPC Livelink Admin


Yep, since it has no JSessionID on the url, it must (by definition) be
without a session, so Tomcat creates one for it.

-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Session ids (netscape)


Thanks for the response.  From the messages below, it appears that problem
is
not client-side.
It sounds like if a 'jsessionid' is not passed with the request, then Tomcat
will create a new session.
Is this correct?

Pete

Jim Crossley wrote:

> Hi Peter,
>
> Unfortunately, there's no foolproof way to do what you're trying to do.
> The limitation is imposed on the client-side.  Your success depends on
> how much control you have over your users, i.e. it becomes a training
> issue.
>
> A good description of the issues involved is on page 134 of Hans
> Bergsten's book, _JavaServer_Pages_.
>
> Your best bet is to force tomcat to always use session rewriting instead
> of cookies (assuming that's possible), but even that's not entirely
> foolproof.
>
> Good luck.
>
> Peter Alfors wrote:
> >
> > Hello all,
> >
> > I originally posted a question about session ids on the struts-user
> > list, but then realized that this is a better question for this list.
> > Thanks for all the info about session ids (craig, gary, steven,
> > etc).  I hate to beat a dead horse, but I have ANOTHER question on
> > session ids.
> >
> > I have changed to the tomcat server.xml to turn off cookies.
> >   >  className="org.apache.tomcat.request.SessionInterceptor"
> >  noCookies="true"/>
> >
> > This is my complete jsp page:
> >
> > 
> > 
> >Session Id: <%= session.getId() %>
> > 
> > 
> >
> > I am using Tomcat 3.2.1 stand-alone.
> >
> > When I run this, the session id's are still the same for two separate
> > instances of netscape 4.7. (both instances started from the desktop).
> > What am I missing to force the session id's to be different?
> >
> > Any help would be immensely appreciated,
> > Pete
> >
> > "Kramer, Gary" wrote:
> >
> > >
> > >
> > >
> > > When I try Netscape4.7, it gives me different sessions IDs.  As I
> > > understand it, the session id is assigned by Tomcat (i.e.
> > > jsessionid=asdkfjl), not by the browsers.   If you disable cookie use
> > > in Tomcat and there is no jsessionid parameter in the URL, then Tomcat
> > > cannot link your request to any session and therefore has no choice
> > > but to create a new session.
> > >
> > > Your explanation of using  and rewriting within a session
> > > is exactly what I'm doing (or trying to do).  I also put in some
> > > defensive code to determine if the user messed with the URL or created
> > > a new browser with the same URL.  I put code in my Form bean's reset
> > > method to double check that the request that is coming in actually
> > > applies to the object the user was last working on.  This also defends
> > > against some of the problems caused by hitting the back and forward
> > > buttons.  Still, very annoying.
> > >
> > > -Original Message-
> > > From: Peter Alfors
> > > To: [EMAIL PROTECTED]
> > > Sent: 2/1/01 5:11 PM
> > > Subject: Re: session ids cont...
> > >
> > > I added the "noCookies" attribute and set it to "true".  However, the
> > > two
> > > instances of Netscape 4.7 still show that they are using the same
> > > session.
> > > I.E. 5.0 does display different session ID still.
> > >
> > > see notes below...
> > >
> > > "Craig R. McClanahan" wrote:
> > >
> > > > Peter Alfors wrote:
> > > >
> > > > > "Kramer, Gary" wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > I had similiar problems.  You need to turn off the use of
> > > Cookies
> > > on
> > > > > > your server (in Tomcat this setting is in server.xml).   When
> > > the
> > > user
> > > > > > opens 2 browsers, they will always have different session ids in
> > >
> > > both
> > > > > > IE and Netscape since the first URL they will use will not have
> > > a
> > > > > > session id included.
> > > > > >
> > > > >
> > > > > How do I turn off the use of cookies in the server.xml?  I only
> > > see
> > > one
> > > > > location where cookies are mentioned.
> > > > > 
> > > > > 
> > > > >  > > > >
> > > className="org.apache.tomcat.request.SessionInterceptor"
> > > />
> > > > >
> > > > > Do I comment out this section?
> > > > >
> > > >
> > > > For Tomcat 3.2.1 there is a noCookies attribute on this entry that
> > > defaults
> > > > to "false".  You need to set it to "true":
> > > >
> > > >  > > > className="org.apache.tomcat.request.SessionInterceptor"
> > > > noCookies="true"/>
> > > >
> > > > NOTE:  Using URL rewriting does *not* catch every case of multiple
> > > windows
> > > > sharing session ids.  Consider that the user can right-click on a
> > > hyperlink
> > > > (containing the session id) and select "Open in New Window".
> > > Because
> > > the
> > > > hyperlink being clicked had a session id in it already

RE: to switch contexts, do you have to change all your JSP URL's?

2001-02-06 Thread CPC Livelink Admin


HttpRequest.getContextPath() returns the  portion of the request URI that
indicates the context of the request.

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: to switch contexts, do you have to change all your JSP
URL's?


<%= request.getRequestURI() %> will return current URL.



>> Original Message <<

On 2/6/01, 11:18:04 AM, "Chris Ward" <[EMAIL PROTECTED]> wrote
regarding to switch contexts, do you have to change all your JSP URL's?:


> Is there a way to code the URL's in the JSP pages so that they don't care
> what the context is? If I have contexts for webapps/foo1 and
webapps/foo2,
> how do I write the URL's so that I don't have to change the URL from
> "foo1/myservlet" to "foo2/servlet" if I change the context that it is run
> from, or want to have both running?

> Chris

> --
> Chris Ward - Developer
> @ integral business solutions
> tel: 651.631.3144
> fax: 651.631.2544
> email: [EMAIL PROTECTED]
> web: www.go-integral.com


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

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



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



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




RE: Speeding up database accesses

2001-02-05 Thread CPC Livelink Admin


Why is it a bad idea to use a session variable?

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: RE: Speeding up database accesses



One possibility (altough a bad idea) is to stick it into your
session.

Another possibility is to create an object that has a static
variable for the Connection.  Then provide methods to access it.  Remember
that you need to make sure only one thing at a time is using the connection.

There are some pooling connection managers out there already.  One
that I know of off the top of my head is PoolMan.  You can go over to
sourceforge.net and search for it.

Randy


-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Speeding up database accesses


I would like to leave my oracle database connection open from one page to
another within a session - is that possible? Is it possible to pool one
connection for the entire webserver? If so, how? Thanks.


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

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



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




RE: Speeding up database accesses

2001-02-05 Thread CPC Livelink Admin


While there are connection pools (I have not used them but others on the
list can point you to them), I find the easiest solution is a session
variable. Then make a function you can call with the session and db
connection info. The function checks the session for the DB varaible. If
it's not there it creates the connection and adds it to the session. Then
returns the DB. That way the call to get the connection looks nice and clean
(no nasty if statements to cloud up your HTML on the JSP).

Regards,
Paul


-Original Message-
From: John Coonrod [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 4:19 PM
To: [EMAIL PROTECTED]
Subject: Speeding up database accesses


I would like to leave my oracle database connection open from one page to
another within a session - is that possible? Is it possible to pool one
connection for the entire webserver? If so, how? Thanks.


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



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




RE: date

2001-02-02 Thread CPC Livelink Admin


What is the error message? It could be that if you did not import
java.util.* and java.text.*, then it can't find the classes listed after the
'new'.  Try it like this :
<%
java.util.GregorianCalendar cal= new java.util.GregorianCalendar();
java.text.SimpleDateFormat  format = java.text.new
SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());
%>


<%
out.println(s);

%>

-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:11 AM
To: [EMAIL PROTECTED]
Subject: Re: date


in a jsp page i have put the next but doesn't run: Why?
<%
java.util.GregorianCalendar cal= new GregorianCalendar();
java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());
%>


<%
out.println(s);

%>



thanks
Carlos

- Original Message -
From: "Michael Wentzel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 2:54 PM
Subject: RE: date


> > in jsp how i get the date for print in web in the format XX-XX-XX?
>
> Works just like any other java class:
>
> java.util.GregorianCalendar cal= new GregorianCalendar();
> java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
> String s = format(cal.getTime());
>
> ---
> Michael Wentzel
> Software Developer
> http://www.aswethink.com">Software As We Think
> mailto:[EMAIL PROTECTED]">Michael Wentzel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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



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




RE: log files in tomcat

2001-01-31 Thread CPC Livelink Admin


Actually, these are files that are generated by the jk_nt_service helper
application, not entries in tomcat.

If you want to capture the output of tomcat, you need to either a) redirect
the output to a file (on Unix you also need to redirect stderr, on Windows
stdout and stderr are much the same (I think)) or b) programatically change
the stream pointed to by System.out and .err to something else which you
have opened.


-Original Message-
From: Jason Pell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 8:09 PM
To: [EMAIL PROTECTED]
Subject: Re: log files in tomcat


I have also had problems with this.

As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:

- server.xml fragment
---



- server.xml fragment
---

But no joy I am afraid.  Is this the correct config info.

I am running Tomcat 3.2.1 on Redhat 6.2

Thanks
Jason

"Garmaev, Vladimir A" wrote:

> There should be two more logs:
>
> jvm.stderr
> jvm.stdout
>
> The latter is logging System.out.println
>
> -Original Message-
> From: Ross Manges [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: log files in tomcat
>
> Hello folks,
>
> I apologize in advance for this dumb question, but I'm
> having an exteremly difficult time getting tomcat to
> create a log file containing the event traces (and
> possibly System.out.println()'s?) from my servlets.
> I've read up on the available faq's and other
> documentation, which directs me to the server.xml
> file.  I've set that file to maximum debugging mode,
> but still no luck.  I get two files in my /log
> directory: jasper.log and servlet.log.  The latter
> contains nearly nothing, and jasper.log simply reports
> on my jsp files.
>
> Can somebody PLEASE point me in the right direction?
> If I've missed some important set of documentation
> please let me know.
>
> Thanks!
>
> --Ross
>
> p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
> PIII-700, 128mb ram.
>
> __
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---



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



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




RE: Context Help

2001-01-30 Thread CPC Livelink Admin


Be careful with case. The directory name shoul dbe WEB-INF not Web-inf. Even
though Windows ignores case, it still preserves case, and tomcat enforces
the rules on case sensitivity despite windows.

Also, the WEB-INF directory is protected, so no files will be served from
there.

Regards,
Paul


-Original Message-
From: Zelestrial Signs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 2:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Context Help


1) Setting up a Context
server.xml




C:/SomePath/to/tcpFolderRoot then has the following directory structure
C:/SomePath/to/tcpRoot/Web-inf - web.xml goes here if you need one
C:/SomePath/to/tcpRoot/Web-inf/classes - java classes including servlets go
here in their proper package directory structure
C:/SomePath/to/tcpRoot/Web-inf/lib - jar files
C:/SomePath/to/tcpRoot/Meta-inf - Manifest.mf goes here if you need one
C:/SomePath/to/tcpRoot/

JSP's can be stored in the tcpRoot directory or in 's and would
just be referenced as http://localhost:8080/tcp/SomeJSP.jsp or
http://localhost:8080/tcp//SomeJSP.jsp
Servlets would be http://localhost:8080/tcp/servlet/package.SomeServlet

2) /admin password
>From what I've seen, by default there isn't a password set. I would imagine
this is because they want *you* to come up with your own unique username and
password instead of having some generic username/password that people might
forget to change causing security problems.
What you need to do is add a user and password for the "admin" role to
tomcat-users.xml

>From: "Java Softech Pvt Ltd" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Context Help
>Date: Tue, 30 Jan 2001 16:08:45 +0530
>
>Can anyone help me on how to create a context like /tcp or /exams in the
>server.xml file. And also please let me know the password and username to
>enter into the /admin pages.
>
>
>Rajshekhar.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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



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




RE: TOMCAT3.2 BUG

2001-01-27 Thread CPC Livelink Admin


Not having tried this since I don't use JBoss, here is my thought. The only
difference between putting it in the main tomcat classpath and putting it in
WEB-INF/lib is the class loader that is used (javas versus tomcats).  Since
I have quite successfully used tomcats in WEB-INF/lib, I am guessing that
maybe there is something a little but different about the jar file. Maybe
you should try to unjar the package, and then rejar it yourself using no
compression and no fancy options (or just leave it unjarred in the
WEB-INF/classes).

Hope this helps,
Paul

-Original Message-
From: Rick Horowitz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 1:00 PM
To: [EMAIL PROTECTED]
Subject: Re: TOMCAT3.2 BUG


You're not alone with this problem.  I was just involved in a couple of
threads on this subject in the JBoss Users mailing list, but everyone who
participated seems to have the same problem.  Here's a link to one thread:
http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg09704.html

I finally worked around the problem by putting everything that would
normally be in WEB-INF/lib and WEB-INF/classes into the main Tomcat
classpath.  This works, but I'd still like to find out what the problem
is...Tomcat? JBoss?, or something else.

Possibly confounding factors in my setup include using JBuilder 4.0 to run
both Tomcat and JBoss, and am using Struts.  Don't know if these could be
affecting the outcome at all because I haven't tried a different setup
without them.

Thanks for any help anyone can provide.

Rick

At 05:11 PM 1/27/01 +, you wrote:
>I am integrating Apache Web server, Tomcat and Jboss (EJB container).
>Tomcat is running out of Apache process using mod_jk adapter. Tomcat is
>working fine for serving normal servlets and jsp. I deployed EJB on jBoss
>and accessed that by creating one java client application, it worked all
>right. Now when i want to access that EJB through Servlet, it is giving
>problems. I copied all the libraries required for client (ejb.jar,
>jnp-client.jar, jboss-client.jar and jta-spec.jar) to WEB-INF/lib, servlet
>and other helping classes to WEB-INF/classes. Now when i access the
>Servlet it gives " Cannot instantiate class: org.jnp.interf
>aces.NamingContextFactory. Root exception is
>java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory"
>Though this class is available in jnp-client.jar library which is in
>WEB-INF/lib directory. As per Tomcat documentation, Tomcat will include
>all jar files from WEB-INF/lib/ to classpath, but it is not working here.
>When i copied that the suppored client library files, jnp-client.jar etc
>... to TOMCAT_HOME/lib, it started working. This shows that
>WEB-INF/lib/*.jar are not included in classpath.
>HELP??
>
>
>
>
>
>
>_
>Chat with your friends as soon as they come online. Get Rediff Bol at
>http://bol.rediff.com
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]


Rick Horowitz


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


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



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




RE: java.sql.SQLException: Io exception: Broken pipe

2001-01-26 Thread CPC Livelink Admin


He's talking about a database connection pool.  What looks like what is
happening is that you open a connection to the DB once at the beginning,
then save it for later. When you come back in several hours, the DB has
dropped the connection, so when you try to use it, you get that message. If
this is the case, than you need to recreate your connection or better
monitor your connection to see if it has been dropped.

Regards,
Paul


-Original Message-
From: Yin Tse [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 9:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: java.sql.SQLException: Io exception: Broken pipe


Thanks, but
how do you turn off the pool connections ?? It seems to me that all the
default connectors in tomcat 3.2 server.xml comes with a pool component as
shown below. Thanks for your feedback.


  


















   


  
  








-Original Message-
From: Shahed Ali [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 5:04 PM
To: [EMAIL PROTECTED]
Subject: Re: java.sql.SQLException: Io exception: Broken pipe


Yes I have got this error on Solaris 8 TC 3.2.1 JDK 1.3.
I was using a connection pool and when I replaced it,
things were fine.

Regards
Shahed.


- Original Message -
From: "Yin Tse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 5:24 PM
Subject: java.sql.SQLException: Io exception: Broken pipe


>
> Has anyone ever come across the above problem ? I'm using apache/tomcat
> combination in a solaris environment to serve html/servlets. When I start
it
> up, everything works fine. If I let it sit and and come back a few hours
> later, my login servlet stalls and give me the following message :
>
>
>
> java.sql.SQLException: Io exception: Broken pipe
> at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
> at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
> at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
> at
> oracle.jdbc.driver.OracleStatement.(OracleStatement.java:292)
> at
> oracle.jdbc.driver.OracleStatement.(OracleStatement.java:307)
> at
>
oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.ja
> va:189)
> at
>
oracle.jdbc.driver.OraclePreparedStatement.(OraclePreparedStatement.ja
> va:172)
> at
>
oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:3
> 39)
> at DBPartnerManager.authenticate(DBPartnerManager.java:1298)
> at LoginServlet.doGet(LoginServlet.java:86)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
> (Ajp13ConnectionHandler.java:160)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
> Anyone has got any thoughts on this ? Thanks.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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

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



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




RE: Problems with context-relative path include directive

2001-01-25 Thread CPC Livelink Admin


The way it nehaves is that "/" is the root of your webapp. So, when doing
things with the servlet container alone, you would reference the file as
"/JSPHeader.jsp". If, however, you are sending something to the browser for
it to get, then do "<%= request.getContextPath() %>/JSPHeader.gif"

Somewhat weird, but it does make navigation from the root of your webapp
easier since the name (context path) of the webapp can be changed.

Regards,
Paul


-Original Message-
From: Cor Ruiten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 11:03 PM
To: [EMAIL PROTECTED]
Subject: Problems with context-relative path include directive


I just installed Tomcat 3.2.1 on my Windows 2000 workstation.

I am able to start Tomcat and view the examples provided in the
distribution.

I made the following entry in the server.xml file so that I can reach my
application:




If I attempt to serve up any JSP page that has the following include
directive:

<%@ include file="/hcs/JSPHeader.jsp" %>

I receive the following error:

 Error: 500
 Location: /hcs/sccp.jsp
 Internal Servlet Error:
 org.apache.jasper.compiler.CompileException:
D:\Development\hcs\jsp\sccp.jsp(0,0) Bad file
argument to include
 at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java,
Compiled Code)
 at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
 at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java,
Compiled Code)
 at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
 at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:2
10)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

The same JSP pages work fine using JRun 3.0. But it appears that Tomcat is
not liking my
context-relative path include
statement because if I change the include to be:

<%@ include file="JSPHeader.jsp" %>

and the JSP page that make this include is at the "root" level for my
context, then Tomcat is
happy...

I was under the impression that my definition of the "/hcs" context should
have taken care of this.

Any thoughts on what I am doing wrong here?

Thank you,

Cor Ruiten
Pipeline Software, Inc.
[EMAIL PROTECTED]


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



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




RE: Tomcat 3.2.1 login and password of Admin context

2001-01-25 Thread CPC Livelink Admin
Title: RE: Tomcat 3.2.1 login and password of Admin context



I 
meant server.xml, sorry. Fingers were in gear, but mind in 
neutral.

  -Original Message-From: Andy Scasso 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 25, 2001 
  2:50 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Tomcat 3.2.1 login and password of Admin context
  That worked, thanks. I couldn't find context.xml in the 3.2.1 
  binary distribution. 
  Thanks, Andy 
  -Original Message- From: CPC 
  Livelink Admin [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 25, 2001 11:18 To: [EMAIL PROTECTED] Subject: RE: 
  Tomcat 3.2.1 login and password of Admin context 
  Add the role 'admin' to one of the accounts you listed. Then 
  that account will work. (There is a blurb about this in the 
  context.xml)
  -Original Message- From: Andy 
  Scasso [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 25, 2001 1:50 PM To: '[EMAIL PROTECTED]' Subject: 
  RE: Tomcat 3.2.1 login and password of Admin context 
  Same problem. In tomcat-users.xml I see users "tomcat", 
  "role1", "both" all with password "tomcat". I tried all the combinations and 
  still can't log in the Admin.
  -Original Message- From: 
  Stefano Martinella [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 25, 2001 10:05 
  To: [EMAIL PROTECTED] Subject: Re: Tomcat 3.2.1 login and password of Admin context 
  
  Hi Philippe, For username and password 
  try to look in the conf/tomcat-users.xml file bye 
  Stefano - Original Message 
  - From: "LEBRETON Philippe" 
  <[EMAIL PROTECTED]> To: 
  "Tomcat" <[EMAIL PROTECTED]> Sent: 
  Thursday, January 25, 2001 4:18 PM Subject: Tomcat 
  3.2.1 login and password of Admin context 
  > I have dowload TOMCAT 3.2.1 and i can't add a new context 
  whit the Admin > because the Admin tell me a login 
  and password. > I don't know this login/password. 
  


RE: Tomcat 3.2.1 login and password of Admin context

2001-01-25 Thread CPC Livelink Admin
Title: RE: Tomcat 3.2.1 login and password of Admin context



Add 
the role 'admin' to one of the accounts you listed. Then that account will work. 
(There is a blurb about this in the context.xml)

  -Original Message-From: Andy Scasso 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 25, 2001 
  1:50 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Tomcat 3.2.1 login and password of Admin context
  Same problem. In tomcat-users.xml I see users "tomcat", 
  "role1", "both" all with password "tomcat". I tried all the combinations and 
  still can't log in the Admin.
  -Original Message- From: 
  Stefano Martinella [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 25, 2001 10:05 To: [EMAIL PROTECTED] Subject: Re: 
  Tomcat 3.2.1 login and password of Admin context 
  Hi Philippe, 
  For username and password try to look in the 
  conf/tomcat-users.xml file 
  bye Stefano 
  - Original Message - From: 
  "LEBRETON Philippe" <[EMAIL PROTECTED]> 
  To: "Tomcat" <[EMAIL PROTECTED]> 
  Sent: Thursday, January 25, 2001 4:18 PM Subject: Tomcat 3.2.1 login and password of Admin context 
  
  > I have dowload TOMCAT 3.2.1 and i can't add a new context 
  whit the Admin > because the Admin tell me a login 
  and password. > I don't know this 
  login/password. 


RE: Heartbeat/watchdog signal

2001-01-24 Thread CPC Livelink Admin


In the servlet container, you can start a thread and sleep there and do your
check. You could build a servlet whose whole job is this, using the
LoadOnStartup mechanism to get it to start automatically.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Aron Kramlik
Sent: Wednesday, January 24, 2001 11:33 PM
To: [EMAIL PROTECTED]
Subject: Heartbeat/watchdog signal


Hi,

This is more concerned with servlet engines in general rather
than Tomcat itself but I had hoped I could get some good ideas
from you.

What I would like to do is have something call a method, or a
servlet in this case, at regular intervals.  The reason for this
is to be able to update this software components' health status.
I guess it is sort of like an SNMP check to see when the last
time some software component has said it is OK.

I am not sure how to implement this inside a servlet container,
or if it can be.  UNIX cron could be setup to do a HTTP / GET
on a servlet at regular intervals, or so could a separate JVM
that slept for a period of time and then called a servlet but
I am wondering if there are any other solutions out there that
people are using to report status on certain components.

Thanks as always,

Aron.


Aron Kramlik
Software Engineer
Tenzing Communications Inc
[EMAIL PROTECTED]

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



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




RE: Actually RE: Tomcat processes... (to Christoph Rooms)

2001-01-24 Thread CPC Livelink Admin


I don't suppose your setup is using the parameters which set initial heap
size on the java command line are they. My installs run 10% of the size you
are quoting when run out of the box.

Regards,
Paul


-Original Message-
From: Christoph Rooms [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: RE: Actually RE: Tomcat processes... (to Christoph Rooms)


But is it normal that it takes  140 MB of RAM ? (I know that I only have to
count 1 process)

I have a provider that wanted to support servlets using tomcat. But it seems
I managed to bring down his machine that was online for more then 200 days.

What's the best way to avoid this ?

greetz, Christoph

-Original Message-
From: tlittle [mailto:tlittle]On Behalf Of Trevor Little
Sent: woensdag 24 januari 2001 22:37
To: [EMAIL PROTECTED]
Subject: Re: Actually RE: Tomcat processes... (to Christoph Rooms)


If you're talking about java processes it's really just one process and
what you're seeing are actually threads.  It's normal.


Michael Wentzel wrote:
>
> > I'm running Tomcat on linux. From the moment I start up
> > Tomcat, I see 51
> > processes and these processes takes up 142 MB of memory. Is
> > this normal ?
>
> Doesn't sound right to me.  Can you send a copy or the long output
> of ps?  As well as a description of your configuration(OS, tomcat
> standalone vs tomcat/apache, webapp configuration, etc...).
>
> PS - Changed subject of thread to more appropriate subject.
>
> ---
> Michael Wentzel
> Software Developer
> http://www.aswethink.com">Software As We Think
> mailto:[EMAIL PROTECTED]">Michael Wentzel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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



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



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




RE: database question

2001-01-23 Thread CPC Livelink Admin


If you can get an ODBC Driver to the target database, then you can use
access to export (File Menu then Export) the entire DB using an ODBC
connection. I have dones this for Oracle once.


-Original Message-
From: Richard Diaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 4:22 PM
To: [EMAIL PROTECTED]
Subject: database question


I have an access database created with relationships and some data.

Are there tools to read an access database and create SQL scripts to create
the equivalent in an SQL database (like MySql) ?

thanks,
Rich


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


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



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




RE: properties files and tomcat

2001-01-23 Thread CPC Livelink Admin


Actually, there are good reasons to NOT do it that way. You may not have
access to the file system for one, or the property file may be embedded ina
JAR file. Whereas if you use the getResourceAsStream you don't have thise
problems.  However, if you need to access an arbitrary file, using
FileInputStream is the way to go. For general purpose properties file usage,
I reccommend you stay with getResourceAsStream. It makes it easy to switch
the properties files you use by just changing the classpath a little bit.
And it allows you to have defaults buried deep in the class path which are
overridden by the same named resource which occurs earlier in the classpath.

Just my 2 cents.

Regards,
Paul


-Original Message-
From: Greg Schueler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: RE: properties files and tomcat


You should do this:

Properties myprops = new Properties();
myprops.load(new FileInputStream(new File("my.properties")));

if this doesn't seem to work, make sure that my.properites is in the right
place, and/or qualify the new File() call.

e.g.
new File("d:\tomcat\webapps\myapp\my.properties");

The CLASSPATH is only for loading class files, and will not help you find
the properties file.

-Original Message-
From: Christoph Rooms [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 11:24 AM
To: [EMAIL PROTECTED]
Subject: properties files and tomcat


Hi,

I want to read a properties file like this :

Properties.class.getResourceAsStream("my.properties");

This function should find the properties files when it's in the CLASSPATH.

I have putted the properties file in the WEB-APPS dir ...

anyone ?

thanks ...Christoph

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


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



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




RE: problem with classpath and .jar files

2001-01-23 Thread CPC Livelink Admin


Did you create the jar with directories?

-Original Message-
From: André Alves [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 11:46 AM
To: [EMAIL PROTECTED]
Subject: RE: problem with classpath and .jar files


I'm putting the .jar file into WEF-INF/classes/my.jar... I too try
put the .jar into lib directory, but it's no work too...
--- "Morahg, Yoav" <[EMAIL PROTECTED]> escreveu: > ARe you  putting
the .jar in the lib directory as opposed to the
> classes
> directory? That's where it should go.
>
> -Yoav
>
> -Original Message-
> From: André Alves [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 11:36 AM
> To: [EMAIL PROTECTED]
> Subject: problem with classpath and .jar files
>
>
> I have the following problem: I created a structure of directories
> to
> place mine .class and later generating one .jar. Below of
> WEB-INF/classes I have the structure: /com/mycompany/class and in
> this last directory I have mine .class... Wen I run tomcat, without
> grouping the class in a .jar, the program functions perfectly, but
> when I group the classes in a .jar, tomcat does not can to locate
> the
> .class. I tried to configure worker.properties and
> wrapper.properties, but this did not advance in nothing. It would
> like to know if somebody already had some problem similar to this
> and
> as I make to configure tomcat to use wrapper.properties or
> worker.properties correctly. I am using Redhat 6.1 with apache
> 1.3.12
> and tomcat 3.2.1.
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

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



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




RE: mod_jk - undefined symbol

2001-01-19 Thread CPC Livelink Admin


I finally got it working on a sparc which did not have gcc on it, using the
ucb c compiler/libs/includes instead of the other one they have on there. It
was still painful, but it worked.

-Original Message-
From: Mike Braden [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:00 AM
To: '[EMAIL PROTECTED]'
Subject: RE: mod_jk - undefined symbol


I gave up on getting mod_jk working on Solaris.

I've had a similar problem with different builds.  I'd make sure that before
you build it that all of the object files are removed.  My problem was that
there was an object file in a different directory that wasn't removed.
After checking all of the Makefiles and removing it and building again
everything worked.  I ran /usr/bin/file on the object file and it reported
that it was an i386 object file - obviously not useful on a sparc.

Thanks,

Mike.
--
Mike Braden
CNE, MCP+I, MCSE, CCNA, Sun Comp 2k Enterprise & E10k

Utenzi
808 Aviation Parkway
Suite 1100
PO Box 13479
Research Triangle Park, NC 27709

[EMAIL PROTECTED]


-Original Message-
From: Eric Paul [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 10:44 AM
To: [EMAIL PROTECTED]
Subject: mod_jk - undefined symbol


Hi there.  I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a
Red Hat 6.2 Linux Box running 2.2.18 Kernel.  Both Apache and Tomcat were
working on this box before I started messing with mod_jk.  I downloaded the
latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per
the FAQ.  I had the error message talked about in the FAQ, but the gcc line
generated the mod_jk.so with no problems.  I copied this file into my
libexec dir, and included the mod_jk.conf-auto in my httpd.conf file.  I
stopped apache and tomcat, restarted tomcat, and then tried to start apache
and got this error message:

Starting httpd: Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so:
undefined symbol: jk_b_set_buffer_size

Line 8 of the config file is:

LoadModule jk_module libexec/mod_jk.so

I'm guessing that there must have been a problem with the compile of
mod_jk, but not knowing enough about the source I'm not in a good position
to go poking around and trying to fix it.  I did a search on the archive
for jk_b_set_buffer_size but that turned up nothing.  Any ideas?

Eric


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

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



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




RE: Tomcat trouble, can any good soul help ...

2001-01-18 Thread CPC Livelink Admin


Try netstat -a. This works on NT/2000/UNIX, I don't know if Win9X has it.

-Original Message-
From: Edson Carlos Ericksson Richter
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 4:00 PM
To: [EMAIL PROTECTED]
Subject: RES: Tomcat trouble, can any good soul help ...


Hummm I have no idea... Can you try to do "telnet localhost 8081"... But
maybe nothing appear...
Anyone know any app that list used ports into Win9x?


Edson Richter


> - Mensagem original -
> De:   Dejan Corovic [SMTP:[EMAIL PROTECTED]]
> Enviada em:   quinta-feira, 18 de janeiro de 2001 16:42
> Para: [EMAIL PROTECTED]
> Assunto:  RE: Tomcat trouble, can any good soul help ...
>
> How do I check that in Win98?
>
> regards,
> Dejan
>
> -Original Message-
> From: Edson Carlos Ericksson Richter
> [mailto:[EMAIL PROTECTED]]
> Sent: 18 January 2001 20:22
> To: [EMAIL PROTECTED]
> Subject: RES: Tomcat trouble, can any good soul help ...
>
>
> have you any other service running on the 8081 port???
>
> > - Mensagem original -
> > De: G.Nagarajan [SMTP:[EMAIL PROTECTED]]
> > Enviada em: quinta-feira, 18 de janeiro de 2001 9:35
> > Para:   [EMAIL PROTECTED]
> > Assunto:RE: Tomcat trouble, can any good soul help ...
> >
> > it appears to be a problem with the path of the log files.
> > just check the paths to the log file, and whether the path is in
> > the same machine as tomcat and writeable.
> >
> > I have attached a copy of my server.xml file
> >
> >
> > -Original Message-
> > From: Dejan Corovic [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 18, 2001 12:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat trouble, can any good soul help ...
> >
> >
> >  Hi,
> >
> >  As I start Tomcat 3.x, I get repetitive exception, like this:
> >
> >   Fri Jan 12 22:31:09 GMT+00:00 2001 IMPORTANT: Do not
> modify
> > the generated servlets
> >  Context log path="" :default: init
> >  Context log: path="" File not found
> >  C:\Work\Temp\Software\Phonebid.net\Application\conf\tomcat-users.xml
> >  Starting endpoint port="8080"
> >  handler="org.apache.tomcat.service.http.HttpConnectionHandler"
> >  Starting endpoint port="8081"
> >  handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  Context log: path="" Socket Exception/
> >  
> >
> >  ... and so till end of the world. Does anybody knows what is causing
> > Tomcat to endlessly print this Socket Exception?
> >
> >  Regards,
> >  Dejan
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED] <<
> > Arquivo: server.xml >>  << Arquivo: ATT04426.txt >>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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



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




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread CPC Livelink Admin

This has been discussed many times on this mailing list.  I did a quick
search through my archive and found these two snippets, neither of which I
know anything about, but thought I would give them to you for your
amusement. These were from messages on December 8, 2000.

-- Snippet 1 
The dev lists suggest the following (that is being
considered for 3.3 dev)
http://w4.metronet.com/~wjm/tomcat/2000/Jul/msg00910.html

Commenting out the following lines -
sout.write( buffer, 0, bufferCount );
sout.flush();

in the method endHeaders() of HttpResponseAdapter.java

The above fix did eliminate errors of the type -
2000-12-08 11:39:27 - Ctx( /estore ): IOException in:
R( /estore + /template.js + null) Connection reset by
peer: socket write error

but the stack trace reported continued.

--

-- Snippet 2 -
I checked the code... it says ignore this message.
--


-Original Message-
From: Jose Ferrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 8:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: So can no one help with my Socket Write Error Question ?


Damian,

This error drove us nuts. We were runnign tomcat 3.2.1 on a win98 machine.
It was finally fixed when we installed the latest win98 service pack. Hope
this helps.

Jose

On Wednesday, January 17, 2001 7:32 PM, Damian Penney
[SMTP:[EMAIL PROTECTED]] wrote:
> Just in case you missed it the first time :)
>
> Can anyone tell me why I'm getting this error in the command prompt
window ?
> The page seems to load ok though. I'm running W2K Advanced Server, and
> tomcat 3.2.1
>
> 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
> + null) Connection aborted by peer: socket write error
>
> Thanks for your help,
> Damian
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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



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




RE: Transform get to post

2001-01-17 Thread CPC Livelink Admin


Well, this seems kinda silly, but you could build a response page with an
HTML FORM which uses POST, and has all the values set the way you want, then
use JavaScript to execute the Submit event on the form. Like This











-Original Message-
From: Charles Talleyrand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 6:14 PM
To: [EMAIL PROTECTED]
Subject: Transform get to post


Pardon my ignorance, but is there a way to transform a get request
into a post?  If so, how would I go about doing it?

Basically, I have a servlet that redirects users based on session
criteria and I'd like to POST the data to a form processor rather
than URL encode it.

Anyone's thoughts would be much appreciated.

Tell all your friends about wowwowmail.zzn.com

ZapZone Network brought to you by FortuneCity. http://www.fortunecity.com
Get 100 megabytes of free

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



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




RE: session between tomcat and IIS

2001-01-17 Thread CPC Livelink Admin


Could this be that the JSESSIONID cookie is scoped to the webapp.  IE if
your webapp is called FOO, then only pages below /FOO can get that cookie.
Also, I am assuming you are on the same server, since cookies don't travel
across servers.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 2:58 PM
To: [EMAIL PROTECTED]
Subject: session between tomcat and IIS




Hello,
I'm in a bit of a peckerwood situation here.  Tomcat 3.2.1 & Apache is the
preferred apps but I have been told to integrate with an IIS machine.  Ok,
so my
problem is that we create a session w/Tomcat and pass along some credentials
in
the session object.  Everything is well and good except when the page needs
to
go to the ASP stuff.  IIS is happy to create a session/cookie
ASPSESSIONIDGGQQGGED however, if the asp page asks about the cookie
JSESSIONID
(from tomcat), it finds nothing.  Anyone have any thoughts on how to pass
the
data around?  Currently, my non-elegant solution is to use a form with
hidden
fields to post to the asp page and from there, it can decode the form
variables.
What are some other options?

/bill



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



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




RE: unable to use ajp13 ...

2001-01-17 Thread CPC Livelink Admin


You need to make a copy of mod_jk-auto because it will alwys be generated
with ajp12 connections. So make a copy, mod it to use ajp13, and refer
apache to your copy instead of the auto file.

-Original Message-
From: Barclay, Tom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 10:45 AM
To: '[EMAIL PROTECTED]'
Subject: RE: unable to use ajp13 ...


Did you set the AJP13 protocol in the JkMount directives?

> -Original Message-
> From: mike niemaz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 10:43 AM
> To: tomcat-user
> Subject: unable to use ajp13 ...
>
>
> I can't figure out how to make tomcat use ajp13.
> The mod_jk-auto file keeps assigning ajp12 to each
> of my contexts ;-(
> Any ideas?
>
> --mike
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>

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



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




RE: getParameter() help

2001-01-16 Thread CPC Livelink Admin


I modded your code and made it a JSP so it was easy for me.
The following URLs work as expected.  You will need to change /livelink/ms
to whatever webapp you use, I just put it in there cuz it was easy

http://localhost:8080/livelink/ms/foo.jsp
http://localhost:8080/livelink/ms/foo.jsp?cmd=load
http://localhost:8080/livelink/ms/foo.jsp?cmd=load&pg=foo

JSP Below
-




<%
 String cmd = request.getParameter("cmd");

 if (cmd == null || cmd.equals(""))
 {
%>
Nothing in cmd
<%

 }
 else if (cmd.equals("load"))
 {
 String pgName = request.getParameter("pg");

 if (pgName == null || pgName.equals(""))
 {
%>
  page is missing or empty!!!
<%
 }
 else
 {
%>
Outputing 
page: <%= pgName %>
<%
 }
 }
 else if (cmd.equals("search"))
 {
 }
%>





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




RE: Running tomcat

2001-01-16 Thread CPC Livelink Admin


Try removing the ending semi-colon on JAVA_HOME and TOMCAT_HOME

-Original Message-
From: Ezhil M [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 2:38 PM
To: [EMAIL PROTECTED]
Subject: Running tomcat


Hi,
Can anyone help me out.I tried running tomcat using
tomcat run.
I'm getting an error message '"Unable to locate
servlet.jar.Check TOMCAT_HOME".
In Autoexec.bat,I've
set JAVA_HOME=C:\jdk1.3;
set TOMCAT_HOME=C:\jakarta;
set
CLASSPATH=.;C:\Xerces\xerces.jar;C:\jdk1.3\lib\tools.jar;C:\Soap\lib\soap.ja
r;C:\jakarata\lib;
C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper.jar
;C:\jakarta\lib\ant.jar;
C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servle
t.jar;
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin;

Do I miss something?.Any ideas/suggetsions will be
greatly helpful for me.
Thanks in advance.


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

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



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




RE: Apache

2001-01-16 Thread CPC Livelink Admin
Title: RE: Apache



The 
WEB-INF directory is part of the war file. All a war file comprises is a jar of 
the entire webapp directory structure, making it easier to distribute than the 
entire directory. Tomcat unjars the war file for its ease.

  -Original Message-From: Christoph Rooms 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 
  1:14 PMTo: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: RE: Apache
  How 
  ? What is the best approach to keep on working with the WEB-INF directory ? 
  
  
-Original Message-From: micky mimo 
[mailto:[EMAIL PROTECTED]]Sent: dinsdag 16 januari 2001 
17:59To: [EMAIL PROTECTED]Subject: RE: 
Apache
yes 
/===\ | 
Micky 
Mimo    
| | Systems 
Specialist    
| | (781) 457 - 
1317  
| | 
[EMAIL PROTECTED] 
| \===/ 
-Original Message- From: 
Rooms Christoph [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 16, 2001 12:55 AM To: [EMAIL PROTECTED] Subject: 
Apache 
Hi, 
If I use Apache for http & Tomcat for jsp/servlet 
together. Can I still use wars ? 
greetz, Christoph 
- 
To unsubscribe, e-mail: 
[EMAIL PROTECTED] For 
additional commands, email: [EMAIL PROTECTED] 
  


RE: Running Tomcat as non-root user

2001-01-16 Thread CPC Livelink Admin


You may be able to write yourself some native code to do the switcheroo for
you. Then use the java calls to the native call. The code to do the user
switch is readily available (though I have not searched for it now, I have
seen it before, and it is also available from apache subject to the ASL)
This, of course, makes you relatively platform specific.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Geoff Lane
Sent: Tuesday, January 16, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Running Tomcat as non-root user


Kitching - Thanks for the response. I was afraid of that.
'ifconfig' is the utility that lets you see information about the
network interfaces, not a firewall. :) Do you run multiple machines with
a firewall in front of them to do the redirection (w/ load balancing for
example) or do you run the firewall on each machine individually?

I asked our operations people about the same thing being done in our
load balancer (F5/BigIP) - but apparently it can't be done there.
Setting up a redirect on each machine could be a pain - not that I'd
have to do it. :)
Thanks again.

Kitching Simon wrote:
>
> Hi Geoff,
>
> As far as I know (and I did a fair bit of research on this
> topic), there is no way for any java app to start as one
> user, then switch to running as another user.
>
> What I do is run tomcat on port 8080 as non-root, and
> use a firewall product to redirect port 80 -> 8080. This
> works fine.
>
> I can't give you great details, as the firewall stuff was
> set up by a sysadmin (which I am not), but we use
> Solaris and I think the firewall is "ifconfig". I guess
> that linux' ipchains or ipfilter or whatever can do the
> same job.
>
> Regards,
>
> Simon
> > -Original Message-
> > From: Geoff Lane [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, January 15, 2001 11:46 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  Running Tomcat as non-root user
> >
> > In the Tomcat UG under the heading 'Modify and Customize the Batch
> > Files' it says one of the reasons to do so (modify start up scripts)
> > would be: "To switch user from root to some other user using the "su"
> > UNIX command."
> >
> > This is an excellent idea from a security standpoint. But to bind to
> > port 80 (instead of the default high port 8080) root is needed. How many
> > applications do this (Apache for example) is to initially run as root,
> > bind to port 80, and then drop root privileges. Is something like this
> > possible with Tomcat running standalone? Running concurrently with
> > Apache would accomplish this because the AJP connection could be run as
> > any user since it's on a high port.
> >
> > Thanks.
> >

--

Geoff Lane <[EMAIL PROTECTED]>
(650) 969-5000 x104

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



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




RE: Redirector Failure

2001-01-15 Thread CPC Livelink Admin



Just 
so that you know, I have had it working fin with NT 4.0 SP6 and tomcat 
3.1

  -Original Message-From: Craig O'Brien 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, January 15, 
  2001 12:50 PMTo: [EMAIL PROTECTED]; 
  michael.paul3Subject: RE: Redirector Failure
  Have 
  you created a virtual directory named "jakarta" in the same folder that the 
  isapi_redirect.dll is located?  Have you assigned this directory 
  "execute" access?  Have you added the iapid_redirect.dll as a filter in 
  IIS?
   
  Your 
  "Access Violation" seems to be an issue with NT.  Go over the document 
  "Tomcat IIS Howto" very thoroughly.
   
  I am using Win 2000 Server with Tomcat 3.2 and 
  isapi_redirect.dll with no problems.  Don't know about NT4 or Tomcat 
  3.1.
  Good 
  luck,
  Craig
  
-Original Message-From: michael.paul3 
[mailto:[EMAIL PROTECTED]]Sent: Monday, January 15, 2001 
9:27 AMTo: [EMAIL PROTECTED]Subject: 
Redirector Failure
I have a problem with using the isapi_redirector.dll with 
Windows NT4.0.  I am trying to use Tomcat 3.1 with JDK1.3 and the NT 
service pack4.0.  Every time I try to access any Servlets or JSPs using 
the redirector the web server crashes and I get a message: Dr Watson for 
Windows NT.Exception access violation(0x005) Address 
0x10002110.  I have searched the archive of FAQ's without 
success.  I have checked the installation several times and rechecked 
that all the registry entries are correct.  I have checked the 
isWorkDirPersistent="false", all without success.  Does anybody have 
any suggestions?  Would upgrading to Tomcat 3.2 or 4.0 improve the 
situation?  Any help at all would be appreciated.
 
Mike Paul


RE: Changing root directory

2001-01-14 Thread CPC Livelink Admin


If you just want to change where the root of your webapps will be, then just
change/add the conf/server.xml file for the COntext Path whose docbase="/"

-Original Message-
From: Jose Ferrer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Changing root directory


Should not be a problem. just make sure that any path settings and
classpath settings reflect your change. In particular Startup.bat and
tomcat.bat



-Original Message-
From:   kt [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, January 14, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject:Changing root directory

Hi, I'm using Tomcat by itself, and I need to change the server root
directory to maybe "D:\abc" instead of the default
"C:\jakarta-tomcat\".
This sounds simple but I just couldn't find info how this is done
anywhere.
Could anyone be kind enuf to enlighten me?
Thanx.


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


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



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




RE: Has extension mapping changed in 3.2?

2001-01-14 Thread CPC Livelink Admin


Tomcat 3.2 does not read the conf/web.xml file.  You must put your changes
in your webapps WEB-INF/web.xml file.

-Original Message-
From: Barry Fritchman [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 3:56 AM
To: [EMAIL PROTECTED]
Subject: Has extension mapping changed in 3.2?


I had been using an extension mapping to serve XML
files in Tomcat 3.1 via my own servlet.  I just
downloaded 3.2, and it no longer seems to work (Tomcat
returns the file, but it doesn't go through my
servlet).  I have the following stuff in Tomcat's
conf\web.xml file at the appropriate places, the same
as I had it in the 3.1 web.xml:



XMLFileServlet


com.mycompany.XMLFileServlet





XMLFileServlet


*.xml





xml


text/xml



This did the trick in 3.1, but I seem to be out of
luck now.  Has anything changed in 3.2 that requires
something different or additional to get an extension
mapping to work?

Thanks,
Barry


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

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



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




RE: webapps are useless toys?!

2000-12-13 Thread CPC Livelink Admin


I think the idea is that Webapps are distinct self-contained applications
and therefore should not depend on _anything_ outside of the webapp. If you
have components which need to share session info, they _should_ be in the
same webapp. You would then build your webapp as you would any application
that has multiple components and possibly multiple developers (very
carefully ;)

Regards,
Paul


-Original Message-
From: Andy Nuss [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 09:19 PM
To: '[EMAIL PROTECTED]'
Subject: webapps are useless toys?!


Hi,

Does anyone with a need for one session for all areas of the site
(single sign-on for users) find the current JSP specification
for Web-apps useful?

It seems like each webapp is a separate servlet context, which means
that there is no way to share session info among different components
of the site, if they are segmented as Webapps.

Thanks,
Andy






RE: 2 Configuration Issues

2000-12-12 Thread CPC Livelink Admin


The kill signal is 9, so 'kill -9 ' will kill tomcat.

TO find out what ports are being used and by whom, use 'netstat -a'. grep
can also be useful for that command.

-Original Message-
From: Jason Heddings [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 04:58 PM
To: [EMAIL PROTECTED]
Subject: 2 Configuration Issues


Hello Folks-

I hope that I'm not asking a question that's been asked a bunch of times
before, but here goes:

Small background:
I'm trying to run tomcat along with apache.  I have apache v1.3.14 and
tomcat v3.2.  I'm using the jk module for the layer, not jserv.

On startup:
I get a BindException which says that the address is already in use.  I
assume that this is referring to port 8007 (my ajpv12 port).  I have
rebooted the machine to make sure that this does not happen.  I have a
shell script which first starts tomcat then apache.

On shutdown:
It appears that the port is never released.  When running the shutdown.sh
script, I get a NullPointerException and it ignores signal 15 (the kill
signal?).

Sorry for the lengthy email, but I wanted to give as much detail as
possible.  I'm not on this alias, so please reply to me directly...

Many thanks,
--Jason



Jason Heddings
[EMAIL PROTECTED]
http://jason.heddings.com








RE: Reroute the output of a processed jsp page into a String

2000-12-12 Thread CPC Livelink Admin


One option is to use Java's URL capabilities and open a connection to
tomcat, make the request, and capture the output of that in a
ByteArrayOutputStream.  Something like this, though I did not even try to
compile it :

URL url = new URL(yourURL);
InputStream is = url.openStream();
ByteArrayOutputStream baos = new ByteArrayOutputStream();

/* then loop over the input stream into the output stream */

String html = baos.toString(); // voila

-Original Message-
From: NINA.de Internet Service Agentur [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 03:44 AM
To: [EMAIL PROTECTED]
Subject: Reroute the output of a processed jsp page into a String


Hello,

is it possible to reroute the output of a processed jsp page into a String
or
StringBuffer object in order to send it as an email message with the Java
Mail API?

We use Tomcat 3.2 final with beans and jsp pages and want to use the parse
mechanism
of jsp pages of Tomcat to generate user defined email messages. The contents
of the
messages are provided by beans with sessionwide scope.

Any ideas ?

Regards,
Ralf.D. Zimmerer







RE: security-constraint url-pattern not working

2000-12-10 Thread CPC Livelink Admin


This was discussed earlier.  Here is a snippet from the post by Craig
McClanahan :

In your , you are specifying  entries that
are
not legal according to the servlet specification (such as "*/WCFAdmin.jsp"
and
"*/wcfsystem").  The legal syntax only allows "*" wildcards at the *end* of
the
URL, not the beginning.  If JRun supports these values, it is doing so
outside
of the servlet spec, and is therefore not portable.

For more information on the legal syntax for URL patterns, and pretty much
everything else that is mandated about servlets, see the Servlet API
Specification, version 2.2, which you can download from
.


Regards,
Paul


-Original Message-
From: Christian Sell [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 10, 2000 04:07 PM
To: [EMAIL PROTECTED]
Subject: security-constraint url-pattern not working


Hello,

The following url-pattern in a security-constraint in my WEB.XML causes the
page WCPAdmin.jsp (which resides in a subdirectory below the context root)
to be protceted  under Orion and JRun, whereas Tomcat lets me access it
without any constraints:

*/WCFAdmin.jsp

If I change the pattern to:

/jsp/admin/*

all servers behave equal, protecting all pages in the given subdirectory.
Now, I wonder why Tomcat ignored the first specification. I suppose this is
a bug, but on whose side (JRun & Orion, Tomcat or mine)

regards,
Christian






RE: Error Messages

2000-12-08 Thread CPC Livelink Admin
Title: Error Messages



At the 
risk of a 'me too' barrage, I have encountered the same message on many static 
items like images.  I was ignoring it since that pages worked, but it would 
be nice to know what it is. I did not see it in 3.1, only 3.2 on NT 
2000

  -Original Message-From: Parayali, Jayesh 1065 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 
  02:40 PMTo: '[EMAIL PROTECTED]'Subject: 
  Error Messages
  I am running tomcat 3.2 on windows NT 
  workstation 
  I am getting the below 
  messages 
  2000-12-08 11:08:38 - Ctx( ): 
  IOException in: R(  + /00.jpg + null) Connection aborted by peer: socket 
  write error 
  Anybody encountered this 
  problem? 
  Thanks, Jayesh 


RE: multipart requests and file uploads problems on the Apache connection

2000-12-08 Thread CPC Livelink Admin

That's interesting, since I've been doing that for some time now with no
issues.

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 03:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
connection


-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-




RE: who added this?

2000-12-08 Thread CPC Livelink Admin


I saw that the other day. It happened to me when I was trying to use the
/servlet/ and I mistyped it as /servlets/.  I was in a development cycle
though, so there may have been other problems, but changing from /servlets/
to /servlet/ mad it stop. Maybe it is something similar?

-Original Message-
From: jun xu sun [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 06:01 PM
To: [EMAIL PROTECTED]
Subject: who added this?


hi, there,
after I compile class and reload jsp again, I always get this error:

java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
 at java.lang.Throwable.fillInStackTrace(Native Method)
 at java.lang.Throwable.fillInStackTrace(Compiled Code)
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at java.lang.RuntimeException.(Compiled Code)
 at java.lang.IllegalStateException.(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.loadServlet(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.init(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

how come to this?
I run tomcat 3.2 final on Solaris 2.7.

rgds
brent






RE: Tomcat under UNIX Newbie Question

2000-12-07 Thread CPC Livelink Admin


Actually, it should be the same as the contents of the ZIP file.  The
binaries are the same everywhere since java is 'portable.'

Alos, there are both source and binary distributions, but neither is
platform specific.

-Original Message-
From: Stuart Morse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 11:19 AM
To: [EMAIL PROTECTED]
Subject: Tomcat under UNIX Newbie Question


Hi All,

I've used Tomcat on Win32 a little, and I'm about to enter the world
of Unix. I noticed that there is one .tar file for Unix, but I may
be using Solaris, UnixWare 7 or FreeBSD for Intel, or AIX for Risc
System 6000. Does the .tar file contain the Tomcat source only? If
so, is the source completely portable across these systems.

Regards,

Stuart

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com





RE: posting to servlets from a url

2000-12-06 Thread CPC Livelink Admin


Well, then I think your next best bet is in the Tomcat 4.0 release which has
the new Filter and Valve features. My only knowledge of these is from one of
Craig McLanahan's posts, but if you check the spec, it will probably
describe them in detail.  My understanding, is that these would allow you to
do exactly what you want - however, I don't know if you can wait that long
or if you are able to use the 4.0 milestone builds in your environment.

I think your next best bet is to disable the /servlet/ auto-mapping (I
believe this is a tomcat extention) which should prohibit access to the
stuff in WEB-INF/classes and lib (but sill allows access to all JSPs). Then
have all access to your servlets be through inclusion or direct execution.
I am not sure of the rules for direct executition so you may want to refer
to the spec to see if that is allowed.

Regards,
Paul


-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 08:20 PM
To: [EMAIL PROTECTED]
Subject: RE: posting to servlets from a url


Yea, that is what I am currently doing...can't the server container handle
that for me?

Like only let the server posted or get from the servlets?

I wanted to avoid putting security code in every servlet, one by one.

-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 5:16 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: posting to servlets from a url



You could implement a simple locking mechanism.  When you are about to
access one of your classes, set a session or request scoped bean or session
variable, and then in your servlets, check for that object, and then remove
it.

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 05:04 PM
To: Tomcat-Users (E-mail)
Subject: posting to servlets from a url


Is there some way I can make my server not allow users to type in URL's
directly to servlets in the WEB-INF/classes directory?

I only want these servlets to be accessed by my own jsp pages on my server.







RE: posting to servlets from a url

2000-12-06 Thread CPC Livelink Admin


You could implement a simple locking mechanism.  When you are about to
access one of your classes, set a session or request scoped bean or session
variable, and then in your servlets, check for that object, and then remove
it.

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 05:04 PM
To: Tomcat-Users (E-mail)
Subject: posting to servlets from a url


Is there some way I can make my server not allow users to type in URL's
directly to servlets in the WEB-INF/classes directory?

I only want these servlets to be accessed by my own jsp pages on my server.





RE: Can't find apxs command

2000-12-06 Thread CPC Livelink Admin



 
My apxs was in apache/bin and 
it is indeed in perl.  If the perl interpreter is not found, than a likely 
error message will be that apxs is not found.

  -Original 
  Message-From: Yong Boone 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 06, 2000 01:54 
  PMTo: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Re: Can't find apxs 
  command
  I think you need perl to run the apxs command. There is a 
  howto on apache website that tells you what you need. I don't remember the url 
  but if you go to www.apache.org and then 
  to tomcat's online documentation you'll be able to find it
   
  Yong
   
  Yong BooneSoftware Engineer Ix14942(801) 
  861-4942Novell, Inc., the leading provider of Net Services Softwarewww.novell.com


RE: scope of a bean

2000-12-06 Thread CPC Livelink Admin


If you use response.sendRedirect then you are telling the browser (ie
client) to open the supplied URL.  The browser then makes a new request for
that URL.  So, if your bean is scoped to a request, then it will be out of
scope for the redirect.  If it is scoped for the session or application,
then it will still be there.

On the other hand, if you do a forward operation (pageContext.forward) or an
include, then tomcat handles it all internally, and so it is all one
'request', so a bean scoped as request will be seen by all the pages
included or forwarded to.

Does this clear it up?

Regards,
Paul


-Original Message-
From: Peter Choe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 01:51 PM
To: [EMAIL PROTECTED]
Subject: Re: scope of a bean


so...

if i use a redirect like an action in a form, it creates a new bean?

CPC Livelink Admin wrote:
>
> Also, are you using a forward or redirect?  A redirect makes a new request
> from the browser, a forward does it all internally (ie same request).
>
> -Original Message-
> From: Edson Carlos Ericksson Richter
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 06, 2000 12:48 PM
> To: [EMAIL PROTECTED]
> Subject: RES: scope of a bean
>
> Hi!
>
> Is not your bean in different contexts? I`ve this problem in the past,
when
> I used two contexts (and, of course, one JSP page in each context).
>
> Edson Richter
>
> > - Mensagem original -
> > De:   Peter Choe [SMTP:[EMAIL PROTECTED]]
> > Enviada em:   quarta-feira, 6 de dezembro de 2000 12:53
> > Para: [EMAIL PROTECTED]
> > Assunto:  scope of a bean
> >
> > i am trying to write an jsp where a bean is instaniated and has it data
> > initialized on one jsp page.  and then another page should be able to
> > read the data from the bean.  i have set the scope of the bean to
> > request, but when it goes to the other page, i noticed that it is
> > creating a new bean rather using the bean that was instaniated from the
> > previous page.
> >
> > am i misunderstanding the scope of the bean?  how can i get bean to be
> > recognized by two jsp files without using session scope?
> >
> > peter choe




RE: Your thoughts on organizing multiple web apps

2000-12-06 Thread CPC Livelink Admin


I believe that what you have stated is the generally accepted practice,
though some may argue that there is NO good time to put a jar in the
TOMCAT_HOME/lib directory. If you are on a system that permits it, the use
of links (hard or symbolic) is also suggested to reduce storage space
requirements.

Something else to look for is the system classpath, which tomcat will
inherit on startup, unless you modify tomcat.bat/tomcat.sh or use another
mechanism like the jk service on NT. Having like jars in the system
classpath has bitten me a couple of times when I migrate from development
into production. I have therefore wrapped my tomcat startups with a minimal
classpath which I know I will set on all machines.

Finally, and I invite more enlightened comments on this topic, tomcat has a
'feature' which allows the use of a global web.xml file to supplement the
applications web.xml.  Since I believe that this is not a portable feature,
you may want to ensure that you have everything in the applications web.xml
file that you think you will need, and not count on any system defaults.

Regards,
Paul


-Original Message-
From: George McKInney [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 11:53 AM
To: 'tomcat user list'
Subject: Your thoughts on organizing multiple web apps


We've got a heterogeneous collection of internal applications running under
the same Tomcat installation, and have recently had some problems.

This collection has "evolved" and changed as we learn more about using
Tomcat, and the problem seems to be that some webapps (particularly the
earlier ones)  were installed with the .jar files they needed being put into
/lib and when another app (which required, for example, a
different version of some class) was installed with the .jars IT needed
going into WEB-INF/lib the .jars in /lib "shadowed" the classes
the new app needed.

General consensus here seems (in hindsight) to be that /lib is
***NOT*** the place to put .jar files UNLESS the Tomcat administrator can
ensure that every app that will be installed will be happy with them.
Otherwise, the webapp should keep the .jars it needs in its own WEB-INF/lib
even if that means some duplication of .jar files across the collection of
webapps.

Has anyone else had similar experiences, and what were your solutions?

Thanks,

George McKinney, Developer
tantalus communications inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
[EMAIL PROTECTED]

Direct  604.726.6753
Main604.609.0700
Fax 604.609.0705
www.tantalus.com
"When eBusiness experience counts."





RE: scope of a bean

2000-12-06 Thread CPC Livelink Admin


Also, are you using a forward or redirect?  A redirect makes a new request
from the browser, a forward does it all internally (ie same request).

-Original Message-
From: Edson Carlos Ericksson Richter
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 12:48 PM
To: [EMAIL PROTECTED]
Subject: RES: scope of a bean


Hi!

Is not your bean in different contexts? I`ve this problem in the past, when
I used two contexts (and, of course, one JSP page in each context).


Edson Richter

> - Mensagem original -
> De:   Peter Choe [SMTP:[EMAIL PROTECTED]]
> Enviada em:   quarta-feira, 6 de dezembro de 2000 12:53
> Para: [EMAIL PROTECTED]
> Assunto:  scope of a bean
>
> i am trying to write an jsp where a bean is instaniated and has it data
> initialized on one jsp page.  and then another page should be able to
> read the data from the bean.  i have set the scope of the bean to
> request, but when it goes to the other page, i noticed that it is
> creating a new bean rather using the bean that was instaniated from the
> previous page.
>
> am i misunderstanding the scope of the bean?  how can i get bean to be
> recognized by two jsp files without using session scope?
>
> peter choe




RE: SSL for SOAP on TOMCAT

2000-12-05 Thread CPC Livelink Admin


Not being a user of SOAP, my answer is that usage of SSH (openssh.org) to
form a secure tunnel using port redirection would be effective. Then it
matters not what versions you are using.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 02:12 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: SSL for SOAP on TOMCAT


Please kindly send a direct reply to me, as I am not  a member of this
mailing list.

The system:
I have two tomcat-with-ssl-enabled servers running : one as frontend and
another as backend. The mode of communication between these to servers is
SOAP-based RPC-call with HTTP protocol binding. The SOAP version, on which
the SOAPserver is implemented, is IBM-SOAP-1.2.

I need your help here please :
Can I have SSL communication between these two servers (frontend and
backend) without any change to the SOAP-communications ? If no, then what
more whould I do -- do I have to upgrade SOAP version to APACHE SOAP2.0 ?

Thanks in Advance.
- Ashish






RE: Fwd:Re[2]: mod_jk and JDBC?

2000-12-05 Thread CPC Livelink Admin


Is this the thin driver or the one that requires OCI/client install.

I have been successfully running the thin drivers against 8.1.6 for some
time now (jdk 1.1.8)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Travis Low
Sent: Tuesday, December 05, 2000 03:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Fwd:Re[2]: mod_jk and JDBC?


It's hard to tell from that stack trace.  It's clearly barfing inside
the oracle driver, not in tomcat.  But I think if you set the system
property "JdbcTrace=true", then you will see more detailed
information.  You might need to call "OracleLog.initialize()" first --
I'm not sure if it's done automatically or not.  Sorry I can't be of
more help.

T

Robert Dana wrote:
>
> Forward Header_
> Subject:Re[2]: mod_jk and JDBC?
> Author: Robert Dana
> Date:   12/5/00 12:46 PM
>
> Travis,
>
> Thanks for your interest.  Here it is:
>
> oracle.jdbc.dbaccess.DBError.check_error(DBError.java, Compiled Code) at
> oracle.jdbc.driver.OracleConnection.(OracleConnection.java, Compiled Code)
at
> oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled Code)
at
> java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code) at
> java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code) at
> ReadFromCarmen.doGet(ReadFromCarmen.java, Compiled Code) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled
> Code) at
> org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
> Code) at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code) at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled
> Code) at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp
> 12ConnectionHandler.java, Compiled
> Code) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code) at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled
> Code) at
> java.lang.Thread.run(Thread.java, Compiled Code)
>
> Reply Separator
> Subject:Re: mod_jk and JDBC?
> Author: Travis Low <[EMAIL PROTECTED]>
> Date:   12/5/00 11:23 AM
>
> Would you please post the stack trace for the exception?
>
> T
>
> Robert Dana wrote:
> >
> > I am trying to upgrade from Tomcat 3.1 and mod_jserv to Tomcat 3.2 and
mod_jk.
> > Everything seemed to go just fine with the installation, and I am able
to run
> > JSPs and servlets without any problems.  With one BIG exception: the
upgrade
> has
> > left me without the capacity to establish JDBC connections.  The details
of my
> > environment are as follows:
> >
> > RedHat Linux 6.2
> > Apache 1.3.9
> > mod_jk built from the Jakarta-tomcat-3.2-src distribution
> > Oracle 8.0.5
> >
> > To illustrate the problem, I wrote a simple servlet to test if JDBC
works.  I
> > also wrote this as a Java program, which runs from the command line
without a
> > problem.  I know, therefore, that my database is responding normally to
JDBC
> > calls.  As a servlet, however, the program reports that the driver is
loaded
> and
> > then throws an SQLException indicating that it cannot connect to the
database
> > server.  When Tomcat starts up, it does report that the JDBC drivers are
in
> its
> > CLASSPATH and, as I said, the driver does get loaded OK, it just can't
> connect.
> >
> > By the way, just to keep things as simple as possible, Apache, Tomcat
and
> Oracle
> > are all running on the same machine in this example.  The servlet also
runs
> fine
> > under Tomcat 3.1 and mod_jserv.
> >
> > Has anyone else experienced this problem?  Can anybody suggest a
solution?
> >
> > Robert Dana
> > ORC Macro International
> >
> > import java.sql.*;
> > import java.io.*;
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> >
> > public class ReadFromCarmen extends HttpServlet
> > {
> >public void doGet(HttpServletRequest req, HttpServletResponse res)
> >   throws ServletException, IOException
> >   {
> >res.setContentType("text/html");
> >PrintWriter out = res.getWriter();
> >
> >// The driver to load
> >String driver_class = "oracle.jdbc.driver.OracleDriver";
> >
> >// The query we will execute
> >String query = "select sysdate from dual";
> >
> >try
> >{
> > // Load the JDBC driver
> > Class.forName(driver_class);
> >
> > out.println("loaded..."); // servlet works up to
this
> > point
> >
> > // Connect to the database
> > // !! actual server name has been removed just for this
email !!
> > Conn

RE: cgi-bin

2000-12-05 Thread CPC Livelink Admin


As has been mentioned earlier on this list, Tomcat does not have any CGI
capabilities.  This could, however, be implemented in a servlet.  A general
call went out to see if anyone was interested in writing one, but I did not
see any takers.

To implement what you want to work, you will need to place tomcat behind
another web server like apache or iis.  Then you can use them to do your
cgi, and tomcat to handle your servlets.

Regards,
Paul


-Original Message-
From: Pierre Roy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 09:24 AM
To: [EMAIL PROTECTED]
Subject: Re: cgi-bin


I have installed a Web search engine (namely Subject Search Server v1.1).
This software directs search requests to
http://localhost:8080/cgi-bin/SSServer.exe
Therefore there is no .class nor .jsp file to be accessed !

- Original Message -
From: "Peter Choe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 3:11 PM
Subject: Re: cgi-bin


> you don't put the .exe files anywhere.  you would put the .class files
> or the .jsp files in tomcat/webapps/your_application_directory
>
> > Pierre Roy wrote:
> >
> > Hi there,
> >
> > I'm running Tomcat on Windows 2000.  When I try to load
> > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > browser.  Could someone tell me where I should put my .exe files, and
> > how I should configure Tomcat to find them?
> >
> > Thanks in advance,
> > Pierre





RE: is it possible to dynamically create and interpret JSP?

2000-12-04 Thread CPC Livelink Admin


Sure it's possible - depending on your JVM's security manager.  If you have
access to write to your document root directory, then you can write a file
to that directory and then redirect/forward to it.  It will then be compiled
and executed. You will probably want to create a directory in the webapp for
the session to keep from stomping on other sessions files. You would also
want to listen for the session ending event(s) to clean up the files after
the session is over.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Joakim Verona
Sent: Monday, December 04, 2000 07:34 PM
To: [EMAIL PROTECTED]
Subject: is it possible to dynamically create and interpret JSP?


hello,

is it possible to dynamically generate and interpret jsp?
the purpose is to reuse custom tag libraries.

the jsp code would mainly be retreived from a database.

is it at all possible, or should i rather look at some other template
mechanism?


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




RE: tomcat.log file not found

2000-12-04 Thread CPC Livelink Admin
Title: tomcat.log file not found



 
The 
message 'Starting tomcat. Check 
logs/tomcat.log for error messages' is purely informational.  If 
there were any errors, they would be logged in a file of this 
name.
 
But to 
find the file, on windows, right click on my computer, select Find (Search on 
Win2000), and enter tomcat.log in the filename box and let it go. On Unix, try 
'find / -name tomcat.log -print | tee tmpy' (the tee command sends the output to 
both stdout and tmpy. This is useful, because if you are not root, then you will 
get lots of messages to stderr about can't read directory, so you can just 'cat 
tmpy' to find all the stuff that went to stdout.
Regards,
Paul
 

  -Original Message-From: Panagiotis Konstantinidis 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 04, 2000 08:42 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: 
  tomcat.log file not found
   No it is not, I have already looked there 
  (several times) but it is not in there. It is not in the tomcat/logs, 
  actually it is not on my hard disk!! I can't seem to find 
  it anywhere.
   
  
-Original Message-From: G.Nagarajan 
[mailto:[EMAIL PROTECTED]]Sent: 04 December 2000 
13:06To: [EMAIL PROTECTED]Subject: RE: 
tomcat.log file not found
tomcat.log is usually in
c:\tomcat\logs\, if you have installed tomcat in 
c:\.
 

  -Original Message-From: Panagiotis 
  Konstantinidis [mailto:[EMAIL PROTECTED]]Sent: Monday, December 
  04, 2000 1:49 PMTo: 
  '[EMAIL PROTECTED]'Subject: tomcat.log file not 
  found
    And something else Sometimes when I am starting 
  Tomcat I get an error message: "Starting tomcat. Check logs/tomcat.log for 
  error messages" but I cannot find such file. I have looked everywhere 
  (even in other drives) but I cannot find the file tomcat.log. I have to 
  say here that Tomcat does not crash after this error message but keeps on 
  working normally.
    Any ides about what is going on? 
    Thank you. 
     Panos 



RE: Remove me please.

2000-12-01 Thread CPC Livelink Admin


Unsubscribe both using the alternate method - From the list instructions you
got when you first signed up  :

 To unsubscribe from this list


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

Encode all of your email addresses in the email address of the unsubscriber
like the example above, and send it off.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 09:24 AM
To: [EMAIL PROTECTED]
Subject: Remove me please.


I know you all are going to tell me to follow the directions, but I have!
I've
sent the unsubscribe several times to no avail.  I think it's Lotus Notes
and
the way it translates email addresses from it's internal naming system to
standard email names.  Anyway, would the moderator please remove me from
this
list.  Thanks.

John Brown






RE: temporary page

2000-11-29 Thread CPC Livelink Admin



 
Put 
your processing in a background thread.  Put a META Refresh tag in your 
HTML to refresh a monitoring servlet priodically. If the processing is not done, 
the monitoring servlet returns the same refresh tag, else it forwards/redirects 
to the real data you want to show.
 
Or you 
could load an applet and use it to maintain contact with the servlet (I know it 
can be done, but I don't have the details.)
 
Regards,
Paul
 

  -Original Message-From: Gianluca 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 29, 2000 
  11:14 AMTo: tomcat-userSubject: temporary 
  page
  how can i send to the browser a temporary html 
  page from servlet invoked with post method while it is woking ?
  i want that only after my servlet has finished it 
  will response with a sendRedirect method to the client.
   
  Is it possible that ?
   
  Thanks. 
   


RE: Multipart stuff - inside JSP?

2000-11-27 Thread CPC Livelink Admin


I use it all the time in my JSPs.  I don't understand why you are trying to
embed the source in the JSP instead of just using it though - Here is how I
use it :



<%@
page language="java"
import="java.io.*, java.util.*"
errorPage="load-action-docs-error.jsp"
%>
8< snip >8
<%
  String FileDestination = strMSUploadDir + java.io.File.separator +
session.getId();
  File fUploadDir = new File(FileDestination);
  fUploadDir.mkdirs();

  com.oreilly.servlet.MultipartRequest multi = new
com.oreilly.servlet.MultipartRequest(request, FileDestination,
iMSMaxFileSize);

  Enumeration files = multi.getFileNames();
  while (files.hasMoreElements()) {

... etc (like HTML) below ...

-Original Message-
From: Mike Kobe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 28, 2000 01:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Multipart stuff - inside JSP?


Hi,

I was looking at the multipart request handler from oreilly,
(www.servlets.com), is it possible to use the same class INSIDE jsp? I mean
in the declaration tags

<%!

class MultipartRequest...

%>


and then call it from there? This is giving me a hell lot of problems.
First, all the IMPORT tags in the class were giving me a problem, so I
removed all those, but now it gives me a problem with the "Hashtable" from
java.util.*, so I removed all of that, and the reference to all "Vectors"..

Now it doesnt work! ALways gives me the "premature ending" IOException..

Please help! Is there something that I cannot do inside the JSP declaration
tags? How to go around this?

Thanks!!!
Mike





RE: Getting servletinputStream from a specific field of the posted form?

2000-11-26 Thread CPC Livelink Admin


You need to get a multi-part post data handler.  There is one at
www.servlets.com (the O'Reilly servlets site) which is not wuite free (must
buy the book to use it commercially), but does work well.  If you browse the
archive, (http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2 is one
archive), then you can search for other messages on this topic which show up
periodically.

Regards,
Paul


-Original Message-
From: Kirasawa, Mike [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 26, 2000 03:57 PM
To: [EMAIL PROTECTED]
Subject: Getting servletinputStream from a specific field of the posted
form?


Hello

A small question, hopefully this is completely JSP-related (I think it is).
I have a form where a couple of the fields are of type ,
which are used to upload images etc.

I would like to get the files posted through these two fields, and save them
to a pre-determined folder on the server. I came across something called:

 request.getInputStream();

but how would I specify exactly which file I wish to save?

I am a bit clueless here, and would appreciate a few pointers. I know that I
can write to a file by using a FileOutputStream, but before I can "put" a
file like this, I need to "get" the bytes from the posted form. Is there
anyway to get this? Request.getparameter just returns me a string, right?

Thanks a lot in advance,
Shanx







RE: Shutdown problem

2000-11-26 Thread CPC Livelink Admin



 
It is 
still the environment problem. The 2816 setting is just an estimate, since it 
will be affected by other environment variable you have set, what paths you 
choose to put things in etc.  Increase that number by a lot (be absurd in 
your first test) and try to shutdown.  You should not see the problem 
- assuming you don't just bing down the amount of environment memory until the 
problem reappears and set it (finally) to be above that 
level.

  -Original Message-From: Tomas Marek 
  [mailto:[EMAIL PROTECTED]]Sent: Sunday, November 26, 2000 07:13 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  Shutdown problemIt might seem 
  unbelievable but I fixed it up myself by just setting JAVA_HOME in 
  autoexec.bat with full path incl. drive name (C:\jdk1.3). What u 
  reckon? 
  Saurabh Shukla wrote: 
   Even i get problems with 
shutting down tomcat both on Linux and in Windows NT machine, you can just 
kill the damn window. :-)  

  -Original Message- From: Tomas Marek [mailto:[EMAIL PROTECTED]] 
  Sent: Sunday, November 26, 2000 
  12:28 PM To: 
  Tomcat Subject: 
  Shutdown problem  Guys, I start Tomcat 
  3.1 perfectly and when I run Shutdown.bat script, the Java window is still 
  on with the following content: 
  Out of environment space Out of environment space Out 
  of environment space Out of environment 
  space Out of environment space 
  Using classpath: 
  C:\Tomcat\classes;C:\Tomcat\lib\webserver.jar Stop tomcat Exception in 
  thread "main" java.lang.NoClassDefFoundError: org/xml/sax/DocumentH 
  andler     at 
  java.lang.ClassLoader.defineClass0(Native Method)     at 
  java.lang.ClassLoader.defineClass(Unknown Source)     at 
  java.security.SecureClassLoader.defineClass(Unknown Source) 
      at 
  java.net.URLClassLoader.defineClass(Unknown Source)     at 
  java.net.URLClassLoader.access$100(Unknown Source)     at 
  java.net.URLClassLoader$1.run(Unknown Source)     at 
  java.security.AccessController.doPrivileged(Native Method) 
      at 
  java.net.URLClassLoader.findClass(Unknown Source)     at 
  java.lang.ClassLoader.loadClass(Unknown Source)     at 
  sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 
      at 
  java.lang.ClassLoader.loadClass(Unknown Source)     at 
  java.lang.ClassLoader.loadClassInternal(Unknown Source)     at 
  org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:180) 
      at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130)     at 
  org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) 
  Looks like something wrong with configuration of JVM? Why still "Out of 
  environment space if I've set the Initial environment memory property to 
  recommended 2816? Second question is why I can't run .jsp file in 
  browser when offline? (W98, T/C 3.1 as standalone) 
  I've searched the mailinglist archive and several FAQs on the topic but 
  found nothing helpful. Did anybody encounter with same problem? Any 
  suggestions will be appreciated. 
  Tom.    



RE: how do I?

2000-11-21 Thread CPC Livelink Admin


Unsibscribe both using the alternate method - From the list instructions :

 To unsubscribe from this list


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

so, therfore, email to :
[EMAIL PROTECTED]
and
[EMAIL PROTECTED]

and any other possibilities you can think of.


-Original Message-
From: Jeff Copeland [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 06:03 PM
To: [EMAIL PROTECTED]
Subject: Re: how do I?


[EMAIL PROTECTED] is at the top, but maybe I will take your suggestion
and change my From to mail.telocity.com but I don't know if telocity
manipulates that or not.

Thanks.

At 11:01 PM 11/21/00 +0100, you wrote:
>Jeff Copeland wrote:
> > I have tried 3 times to unsubscribe from this list. Does anyone know why
> > the link to unsubscribe doesn't seem to get me off the list? If anyone
is
> > moderating this list, please take me off of it.
>
>Let's have a look at your mail's headers...
>
>X-Sender: [EMAIL PROTECTED]
>   ^^^
>...
>From: Jeff Copeland <[EMAIL PROTECTED]>
>  ^^
>Maybe you should use [EMAIL PROTECTED] as your email address when
>unsubscribing? Also, what email address is used in the topmost received
header
>in the mails you get?
>
>--
>Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
>Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
>...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
>np: Bola - Aguilla (Soup)





RE: can't get tomcat to compile...servlets.

2000-11-17 Thread CPC Livelink Admin


Not positive, but this may be that you did not specify tools.jar on your
command line.  I beleive I saw sometime a long time ago on this list that
this was required to compile anything in-process. You probably will need to
update the startup script to get it correctly (since it didn't get it
itself).

If this doesn't work, I have no more clues.

Regards,
Paul

-Original Message-
From: Parvez Rishi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 12:35 AM
To: [EMAIL PROTECTED]
Subject: can't get tomcat to compile...servlets.


hi,
i'm new to servlets and tomcat. i've installed tomcat with apache
1.3.12. it serves servlets and jsp's but it does not compile them.
i have to precompile them everytime i make changes. i'm using jdk1.2.2
for linux (redhat 6.2). where do i have to specify the compiler path.
i have set the environment vars. TOMCAT_HOME and JAVA_HOME.

thanks.

parvez




RE: getParameter is NOT a string?

2000-11-17 Thread CPC Livelink Admin


It is acting correclt. Both user and "admin" are java objects, and they are
not the same one, even though they have equivalent string values.  Object
equivalence is what == tests.  The test you want is :

if (user.equals("admin"))
{
}

Regards,
Paul


-Original Message-
From: Winnie Cheung [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 12:55 AM
To: [EMAIL PROTECTED]
Subject: getParameter is NOT a string?


Hi I am getting a form field (POSTed form) as

String user = (String) request.getParameter("user");

When I out.print this, it writes the correct value, but when i COMPARE this
in an IF condition, it doesnt work. Any reason why? For example, lets say
the "user" textfield in my form is "admin".

Now when I grab it using getParameter, the value printed out is admin!! But
when I do this condition:

if (user == "admin")
{
}

then it doesnt go into this condition, but goes into the ELSE instead!!!

Why is this?

Would appreciate any help..thanks!!





RE: [Basic] JSP help!

2000-11-17 Thread CPC Livelink Admin


1.  In a jsp you can use response.sendRedirect("") to send the browser
an instruction to open another page.  Forward does like you say - totally a
server thing.

2.  I believe it is request.getContextPath

3.  Go to the Java site (www.javasoft.com) and go to their tutorial or search
on google for Java Tutorial and you will find a wealth of tutorial info.

-Original Message-
From: Winnie Cheung [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 12:18 AM
To: [EMAIL PROTECTED]
Subject: [Basic] JSP help!


1. How do you "redirect" a page? I have code that

if string == a then
 forward to page 1
else
forward to page 2

Unlike ASP, the forward tag just sort of INCLUDES the file! The file name in
the browser is the same..not that of the file that I am forwarding to! What
is the command to really REDIRECT the page by changing the URL of the
current browser window?

2. How can I get the current path of the script? I mean something like
 REQUEST.SERVERVARIABLES("SCRIPT_NAME")
or  REQUEST.SERVERVARIABLES("PATH_INFO")

3. I need to know some string manipulation functions like substr etc...most
JSP books assume you know Java, where can I find a good beginner's reference
to all these functions?

I would really appreciate if someone can help! Thanks!

Winniw





RE: Number of Instances

2000-11-16 Thread CPC Livelink Admin


Here's my humble attempt to explain.  The single thread model says to the
servlet container that your servlet should only be run on one thread only.
Multithreading in the server is then implemented by creating multiple of
your single thread model servlets, one for each thread that is required to
respond to requests.

When are your inits being called?  Is it possible that your servlet is being
garbage collected and then respawned?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 02:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Number of Instances


Hi,
I see the only possibility  with servlet programming
i.e implementing the single thread model.Can U please
elobarate on the ptoblem with single thread model.
Ravi
--- Lauber Christof <[EMAIL PROTECTED]> wrote:
> How must I configure the jakarta-tomcat 3.1 that
> just one Instance per
> servlet is allowed? Which config file do I have to
> edit(server.xml,
> web.xml, ? ) ?
>   The servlet does not implement the Single Thread
> Model,regardless it
> happens that the Servlet's init Methode is called
> twice!
>


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/




  1   2   >