mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work

2005-07-07 Thread Java Developer
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 
4.0.2 on solaris 2.8.


The number of apache child processes grows gradaully and upon reaching 
around 150 the system response degrades forcing us to restart the apache 
server.


On investigation it is found from the mod_jk.log that a apache child process 
serving a user request does not get reponse from tomcat[jboss] and so it 
waits for 2 hours and retries 3 times. No clue as why it waits for 2 hours 
and where is this configured.


[Tue Jun 28 13:38:15 2005] [7130:1] Attempting to map URI 
'//'processing with 3 retries
[Tue Jun 28 15:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Receiving from tomcat failed, recoverable 
operation attempt=0
[Tue Jun 28 17:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Receiving from tomcat failed, 
recoverable operation attempt=1
[Tue Jun 28 19:38:17 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Service error=0 for 
worker=nfusion



To resolve this thought of using the socket_timeout property setting it to 
worker.abc.socket_timeout=600 i.e., 10 mintues. It works fine for apache 
running on windows but does not work for apache running on Linux/ Solaris.


Any clue as why this property is not working on Linux/ Solaris.

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



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



mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work

2005-07-07 Thread Java Developer
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 
4.0.2 on solaris 2.8 setup.


The number of apache child processes grows gradaully and upon reaching 
around 150 the system response degrades forcing us to restart the apache 
server.


On investigation it is found from the mod_jk.log that a apache child process 
serving a user request does not get reponse from tomcat[jboss] and so it 
waits for 2 hours and retries 3 times. No clue as why it waits for 2 hours 
and where is this configured.


[Tue Jun 28 13:38:15 2005] [7130:1] Attempting to map URI 
'//'processing with 3 retries
[Tue Jun 28 15:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Receiving from tomcat failed, recoverable 
operation attempt=0
[Tue Jun 28 17:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Receiving from tomcat failed, 
recoverable operation attempt=1
[Tue Jun 28 19:38:17 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Service error=0 for 
worker=nfusion



To resolve this thought of using the socket_timeout property setting it to 
worker.abc.socket_timeout=600 i.e., 10 mintues. It works fine for apache 
running on windows but does not work for apache running on Linux/ Solaris.


Any clue as why is this property not working on Linux/ Solaris.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



RE: startup script not working

2005-03-02 Thread java
I don't know about Tomcat 5.5 specifically, but in Tomcat 5.0, startup.bat calls
catalina.bat which calls setclasspath.bat.  You'll see it runs the following,
and if it can't find any of the files (probably because your JAVA_HOME is a JRE
and not a JDK), it'll call "exit" and close your window:

if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\javaw.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\jdb.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\javac.exe" goto noJavaHome

It's kinda hard to see the meaningful error message from this batch file when
the window closes.  I've always wondered if this is a bug?

Jay [www.vtgroup.com]
 

-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 02, 2004 10:02 AM
To: tomcat-user@jakarta.apache.org
Subject: startup script not working

Hi,

I am downloading distribution Tomcat 5.5.7.zip and unzip it. When I try to
run the startup script the CMD prompt window show up, throw an error and
closes automatically. So Anyone know what the error could be?? There is no
errorlog sterr or something else available. Please help!!

Maarten



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






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



Re: Custom Tag error

2004-08-19 Thread Java Techie
k. thx for the reply.
.jsp is in the app. root folder.
.tld is in same folder.
.class is also in same folder/tried in classes folder.
..not aware of .tld mappings...in web.xml
ref:
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
Thanks.

tld file.


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

1.0
1.1
oreillySamples
OReilly Sample Tag library
  
  
hello
Hello
  
empty

This is a simple hello tag.

  
  
  
  name
  false
  



--- QM <[EMAIL PROTECTED]> wrote:

> On Thu, Aug 19, 2004 at 03:17:50PM -0700, Java
> Techie wrote:
> : Deploying my first Custom Tag Example; 
> : .tld, .jsp, .class are in place..any other
> : configuration reqd?
> 
> Details work wonders.
> Instead of saying "in place," why not show:
> - where's the class file(s)
> - where's the tld(s)
> - the TLD mapping(s) in web.xml
> 
> -QM
> 
> -- 
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Custom Tag error

2004-08-19 Thread Java Techie
Hi,
Deploying my first Custom Tag Example; 
.tld, .jsp, .class are in place..any other
configuration reqd?
Thanks.

org.apache.jasper.JasperException: /hello.jsp(9,16)
Unable to load tag handler class "Hello" for tag
"sample:hello"

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



RE: ClassNotFoundException: OracleDriver

2004-08-12 Thread Java Techie
David,
Thanks. Actually i had classes102.zip and
nls_charset10.zip.
i renamed them to classes12.jar and nls_charset12.zip
and the error was gone.[is this ok..]
but the values are still not inserted in the DB.[no
error].. how is this possible.. do i need to have the
actual classes12 and the charset.. plz advice..
--- David Short <[EMAIL PROTECTED]> wrote:

> Do you have the Oracle classes .jar (classes12.jar)
> loaded in your
> Tomcat\common\lib directory.  Actually the file, as
> it comes from Oracle, is
> a .zip file (classes12.zip).  Just rename it.  It
> should reside in your
> C:\OraHome\jdbc\lib directory.  Move the
> nls_charset12.zip file over as
> well.
> 
> -Original Message-
> From: Java Techie [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 12, 2004 2:13 PM
> To: [EMAIL PROTECTED]
> Subject: ClassNotFoundException: OracleDriver
> 
> 
> Hi,
> in my struts-config:
> im using
> 
> 
>  type="org.apache.commons.dbcp.BasicDataSource"
> key="UserDB">
> 
>  value="oracle.jdbc.driver.OracleDriver"/>
>  value="jdbc:oracle:thin:@myPC:1521:newDB"/>
> 
> 
> 
> 
> 
> 
> --
> 
> The following error occurs:
>  27:57[ERROR]
> 27:57org.apache.commons.dbcp.SQLNestedException:
> Cannot load JDBC
> driver class 'oracle.jdbc.driver.OracleDriver',
> cause:
> java.lang.ClassNotFoundException:
> oracle.jdbc.driver.OracleDriver
>   at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1340)
>   at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1189)
>   at
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:140)
> --
> 
> I have added the zip
> file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
> classpath; what else do i need to give.
> 
> Thanks.
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



ClassNotFoundException: OracleDriver

2004-08-12 Thread Java Techie
Hi,
in my struts-config:
im using












--

The following error occurs:
 27:57[ERROR]
27:57org.apache.commons.dbcp.SQLNestedException:
Cannot load JDBC
driver class 'oracle.jdbc.driver.OracleDriver', cause:
java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1340)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1189)
  at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:140)
--

I have added the zip
file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
classpath; what else do i need to give.

Thanks.



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: Tomcat as Win2k service

2004-08-04 Thread Java Techie

Thanks for replies.
Now I can see it as a service, but when i try to start
it it says "Windows cant start the service... If its a
non microsoft service... and refer the service
specific error code 0"

Thanks.

--- Java Techie <[EMAIL PROTECTED]> wrote:

> Hi,
> I am using Tomcat5 on win2k Professional.
> I want to use it as a windows service.
> 
> Please help.
> 
> Thanks.
> Yogesh
> 
> 
>   
> __
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Tomcat as Win2k service

2004-08-04 Thread Java Techie
Hi,
I am using Tomcat5 on win2k Professional.
I want to use it as a windows service.

Please help.

Thanks.
Yogesh



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: precompiling jsp files gives error

2004-07-22 Thread java only
Yes it is there in the classpath...Moreover,when I try to run the build.xml file as 
given in the tomcat docs , it runs fine until it encounters the compile error problem 
because of the included jsp files within jsp files.This was the reason I tried running 
the changed build.xml file (tomcat-precompile-jsp.xml file)  as suggested by one of 
the developers here, but it is giving me build failed as mentioned earlier...
 
Can anybody please help ?
 
Regards,
 
javaonlyjava

Surendra Kumar <[EMAIL PROTECTED]> wrote:
Probably the jasper-compiler.jar not in the classpath.

-Surendra

- Original Message -
From: "java only" 
To: "Tomcat Users List" 
Sent: Friday, July 23, 2004 10:46 AM
Subject: Re: precompiling jsp files gives error


> Hi ,
>
> I have checked the archives and I have found that someone else has
suggested to use their build.xml file (it was named
tomcat-precompile-jsp.xml) ,and when I try to run it, it gives the following
error.
>
>
$ANT_HOME/bin/ant -Dtomcat.home=/usr/ezipin/jakarta-tomcat-5.0.25 -Dwebapp.n
ame=mywebappname -Dwebapp.path=mywebapppath -buildfile
tomcat-precompile-jsp.xml
> Buildfile: tomcat-precompile-jsp.xml
> jspc:
> BUILD FAILED
> /usr/local/apache-ant-1.6.2/tomcat-precompile-jsp.xml:7: taskdef A class
needed by class org.apache.jasper.JspC cannot be found:
org/apache/commons/logging/LogFactory
> Total time: 1 second
>
>
> can anybody please help?
>
> Regards,
>
> javaonlyjava
>
> java only wrote:
> Hi All,
>
> When I am precompiling my JSP files using the ant script provided in the
documentation using jasper (ant script),I couldn't compile my whole
_jsp.java files as those files have and the error says the dependent object
in the included file couldn't be found.
>
> Is there a way to work around ,as I am keen to get rid of these errors?
>
> Thanks in advance,
>
> JavaOnlyJava
>
>
> -
> Do you Yahoo!?
> Vote for the stars of Yahoo!'s next ad campaign!
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


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



-
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!

Re: precompiling jsp files gives error

2004-07-22 Thread java only
Hi ,
 
I have checked the archives and I have found that someone else has suggested to use 
their build.xml file (it was named tomcat-precompile-jsp.xml) ,and when I try to run 
it, it gives the following error.
 
$ANT_HOME/bin/ant -Dtomcat.home=/usr/ezipin/jakarta-tomcat-5.0.25 
-Dwebapp.name=mywebappname -Dwebapp.path=mywebapppath -buildfile 
tomcat-precompile-jsp.xml
Buildfile: tomcat-precompile-jsp.xml
jspc:
BUILD FAILED
/usr/local/apache-ant-1.6.2/tomcat-precompile-jsp.xml:7: taskdef A class needed by 
class org.apache.jasper.JspC cannot be found: org/apache/commons/logging/LogFactory
Total time: 1 second
 
 
can anybody please help?
 
Regards,
 
javaonlyjava

java only <[EMAIL PROTECTED]> wrote:
Hi All,

When I am precompiling my JSP files using the ant script provided in the documentation 
using jasper (ant script),I couldn't compile my whole _jsp.java files as those files 
have and the error says the dependent object in the included file couldn't be found.

Is there a way to work around ,as I am keen to get rid of these errors?

Thanks in advance,

JavaOnlyJava


-
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

precompiling jsp files gives error

2004-07-22 Thread java only
Hi All,
 
When I am precompiling my JSP files using the ant script provided in the documentation 
using jasper (ant script),I couldn't compile my whole _jsp.java files as those files 
have <%@ include other jsp files %>  and the error says the dependent object in the 
included file couldn't be found.
 
Is there a way to work around ,as I am keen to get rid of these errors?
 
Thanks in advance,
 
JavaOnlyJava


-
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!

Unable to compile class for JSP

2004-06-09 Thread java only
Hi all,
 
I am unable to compile JSP files,it gives me the following exception
 

org.apache.jasper.JasperException: Unable to compile class for JSPNo Java compiler was 
found to compile the generated source for the JSP. This can usually be solved by 
copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of 
the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, 
please check its installation and access path.  at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) 
  at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)  
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)   at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)   at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)  
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) 
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

 

 

I have even copied the tools.jar from my $JAVA_HOME/lib to $CATALINA_HOME/common/lib , 
but still it gives me the same error.Earlier default javac compiler was used,and 
everything was running fine.since changing my compiler to jspc in /conf/web.xml (so as 
to precompile my jsp files and save the memory leak),I am encountering this problem.

Any input would be sincerely appreciated.

Thanks,

javaonlyjava

 

 



-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

Re: JAVAC Leaking Memory

2004-06-07 Thread java only
Is it that JSP pages compile only once(not just for each session) but for the entire 
tomcat server scope (application scope) ? 
 
And also can anybody throw some more light on leaking memory problem
 
Regards,
 
javaonlyjava

Reynir_Þór_Hübner <[EMAIL PROTECTED]> wrote:



java only wrote:

> Does It mean setting the fork option to true in the conf/web.xml file ? I have also 
> set development and reloadable option to false...

no. It does not mean that. you can set fork option to false, and 
reloadable/developement to true or vice versa, anyway you like. But I 
still recomend that in production environment you set developement to 
false and reloadable to false.

setting fork option to true will throw avay the javac process when it's 
done it's work, leaving no memory leaks, but I think it's a little bit 
slower than fork=false. I'm not sure, maybe someone else can answer that.

> And also I have noticed for each session,for the first time it takes lot of time to 
> load the 
JSP page and hence forth the loading of those pages is quick. Does it 
mean JSP pages compile
first time and not afterwards for that session?

Page compilation is only done once for each jsp document. I think your 
session lagging has to do with something else, some session related 
code/rendering etc.

hope it helps
-reynir



> 


> Thanks,
> 
> JavaOnlyJava
> 
> "Shapira, Yoav" wrote:
> 
> Hi,
> Good advice. The fork option for jasper exists in tomcat 5, it's key to helping with 
> these sorts of problems.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> 
>>-Original Message-
>>From: Reynir Þór Hübner [mailto:[EMAIL PROTECTED]
>>Sent: Friday, June 04, 2004 7:34 AM
>>To: Tomcat Users List
>>Subject: Re: JAVAC Leaking Memory
>>
>>hi,
>>
>>I think I am correct when I say javac is only used by tomcat compile
>>jsp. You should be able to eliminate javac calls by pre-compiling your
>>jsp pages.
>>
>>Now, as I have not yet started using tc v.5.x I am not sure if this will
>>help, but in 4.1.x there is a switch in /tomcat/conf/web.xml to set the
>>jsp compiler engine to forc the process. I recomend that you check that
>>one out.
>>
>>In my opinion, if you are using tomcat in production environment you
>>should turn of any "reloading-options" as they will always collect
>>memory. that means context reloading, auto-deployment, jsp reloading and
>>developement switches.
>>
>>By doing that you will minimize the overhead (both process and memory)
>>of tomcat, leaving only the basic footprint of tomcat with the current
>>configuration.
>>
>>Hope it helps
>>-reynir
>>
>>
>>
>>java only wrote:
>>
>>
>>>Hi All,
>>>
>>>I have seen in Tomcat 5.0.25 Release notes the JAVAC Leaking memory
>>
>>problem is mentioned. Earlier I was using Tomcat 3.3.1 and was getting
>>java.lang.OutOfMemory Exceptions after every 2-3 days and had to restart my
>>Tomcat Server.I am planning to migrate to Tomcat 5.0.25 version , but here
>>too seems is the same problem .I am using jdk 1.3.1 version. If I use jdk
>>1.4 version,would this problem be resolved? Or is there any way to get
>>around this problem ..?
>>
>>>Any feedback is welcome...
>>>
>>>Thanks in Advance,
>>>
>>>javaonlyjava.
>>>
>>>
>>>
>>>
>>>-
>>>Do you Yahoo!?
>>>Friends. Fun. Try the all-new Yahoo! Messenger
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged. 
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else. If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender. Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger

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


-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

RE: JAVAC Leaking Memory

2004-06-06 Thread java only
Does It mean setting the fork option to true in the conf/web.xml file ? I have also 
set development and reloadable option to false...
And also I have noticed for each session,for the first time it takes lot of time to 
load the JSP page and hence forth the loading of those pages is quick.Does it mean JSP 
pages compile first time and not afterwards for that session? 
 
Thanks,
 
JavaOnlyJava

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:

Hi,
Good advice. The fork option for jasper exists in tomcat 5, it's key to helping with 
these sorts of problems.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Reynir Þór Hübner [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 04, 2004 7:34 AM
>To: Tomcat Users List
>Subject: Re: JAVAC Leaking Memory
>
>hi,
>
>I think I am correct when I say javac is only used by tomcat compile
>jsp. You should be able to eliminate javac calls by pre-compiling your
>jsp pages.
>
>Now, as I have not yet started using tc v.5.x I am not sure if this will
>help, but in 4.1.x there is a switch in /tomcat/conf/web.xml to set the
>jsp compiler engine to forc the process. I recomend that you check that
>one out.
>
>In my opinion, if you are using tomcat in production environment you
>should turn of any "reloading-options" as they will always collect
>memory. that means context reloading, auto-deployment, jsp reloading and
>developement switches.
>
>By doing that you will minimize the overhead (both process and memory)
>of tomcat, leaving only the basic footprint of tomcat with the current
>configuration.
>
>Hope it helps
>-reynir
>
>
>
>java only wrote:
>
>> Hi All,
>>
>> I have seen in Tomcat 5.0.25 Release notes the JAVAC Leaking memory
>problem is mentioned. Earlier I was using Tomcat 3.3.1 and was getting
>java.lang.OutOfMemory Exceptions after every 2-3 days and had to restart my
>Tomcat Server.I am planning to migrate to Tomcat 5.0.25 version , but here
>too seems is the same problem .I am using jdk 1.3.1 version. If I use jdk
>1.4 version,would this problem be resolved? Or is there any way to get
>around this problem ..?
>> Any feedback is welcome...
>>
>> Thanks in Advance,
>>
>> javaonlyjava.
>>
>>
>>
>>
>> -
>> Do you Yahoo!?
>> Friends. Fun. Try the all-new Yahoo! Messenger
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged. This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else. If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender. Thank you.


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


-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

JAVAC Leaking Memory

2004-06-03 Thread java only
Hi All,
 
I have seen in Tomcat 5.0.25 Release notes the JAVAC Leaking memory problem is 
mentioned. Earlier I was using Tomcat 3.3.1 and was getting java.lang.OutOfMemory 
Exceptions after every 2-3 days and had to restart my Tomcat Server.I am planning to 
migrate to Tomcat 5.0.25 version , but here too seems is the same problem .I am using 
jdk 1.3.1 version. If I use jdk 1.4 version,would this problem be resolved? Or is 
there any way to get around this problem ..?
Any feedback is welcome...
 
Thanks in Advance,
 
javaonlyjava.
 
 


-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

Error stating Tomcat5

2004-05-25 Thread Java Techie
Hi,
 I got a problem while starting tomcat5 on Win2k,
jre1.3.
 
 Unsuported JNI version 65537
 [2004-05-23 19:09:58] [770  prunsrv.c] [error]
 Failed initializing 
 java c:\tomcat\tomcat5\bin\bootstrap.jar
 [2004-05-23 19:09:58] 
 
 and therefore it will also not run as a service.
 
 can anyone help?
 
 Thanks.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Starting tomcat

2003-12-26 Thread Java User
Hi,
 
I am newbie for tomcat 5.0.16. I installed tomcat 5.0.16. When I am starting the 
server, the window appears but it closes by itself. I looked at the error and the very 
first error states that:
 
"[ERROR] Digester - -Begin event threw error 
java.lang.ExceptionInInitializerError: 
sun.misc.InvalidJarIndexException: Invalid index!"
 
FYI, I have java version "1.3.0_02" and my JAVA_HOME variable is as follows:
"set JAVA_HOME=D:\jdk1.3.0_02". I did not define CATALINA_HOME variable. It is, I 
guess, defined by the tomcat startup script.

Can somebody help???
 
Nishit


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Re: does the getRequestDispatcher().forward() method return control?

2003-04-04 Thread Velmurugan \(Java Team\)
Hi,

I think this is a bug as per the servlet specification.Just check with some
other servlet engine. I will forward this error to tomcat developer list. I
was tested with Tomcat3.2.2.

Velmurugan P.
Java Team.

- Original Message -
From: "Hans Schippers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 1:44 AM
Subject: does the getRequestDispatcher().forward() method return control?


> Hi,
>
> if in a servlet, I have some code like:
>
> getServletConfig().getRequestDispatcher("/my/page.jsp").forward(request,
> response)
>
> Is it supposed to return control to the servlet afterwards?
>
> >From what I find on the net, it isn't, but when I try to print something
> to System.out after the forward call, that works...
>
> So did I misread on the www, or is this some bug in my webserver?
>
> I'm using JBoss/Tomcat btw...
>
> Thanks,
>
> Hans
>
>
===
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>



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



BUG: Tomcat does not reload webapps properly

2002-12-26 Thread Jiger Java
Hi,
  Am using Tomcat 4.1.12 on Windows 98/Linux. I found that tomcat when 
realoding a webapps becoz a class changed, does not call the Servlets 
registered as LoadOnStartup. Becoz of this the application starts correctly 
but if reloaded without a restart, the application comes unusabled since the 
other servlets/jsp's depend on a lot of stuff initialized in the 
LoadOnStartup Servlet's init() method.

does anyone have any idea if this is fixed in latter versions or work 
around?

Thanks,
Jiger





_
MSN 8 with e-mail virus protection service: 3 months FREE*. 
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf


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



RE: access to servlets

2002-11-19 Thread Java Group
If I disable the invoker, I can't access to any of my servlets from the main servlet.

The method is that the user use the name in the mapping to enter the application and 
from there I fw the request to the relevant servlet (kind of dispatcher) and from the 
main servlet I use the original class names and classpath.



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Tue, November 19, 2002 16:53
To: Tomcat Users List
Subject: RE: access to servlets


Hi,
Disable the invoker servlet mapping in the main web.xml (conf/web.xml).


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Oded Hasidi [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, November 19, 2002 8:49 AM
>To: [EMAIL PROTECTED]
>Subject: access to servlets
>
>How can I prevent access to servlets through the:
> 
//servlet/com.package1.package2.ServletName">http://address>//servlet/com.package1.package2.ServletName .
>
>I want to grant access only to the mapped servlets in the web.xml file.
>
>Thanks
>
>Oded Hasidi

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


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




Re: Problem setting up Tomcat's SSL (again!)

2002-11-14 Thread Java Lamer
Mark,

Try https:// instead of http://.


DP




From: Mark Liu <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Problem setting up Tomcat's SSL (again!)
Date: Thu, 14 Nov 2002 10:28:57 -0800 (PST)

Hi,

I am attempting to setup tomcat's SSL, but failed.

I am using tomcat 4.1.12, j2sdk1.4.1_01 and Win2K
professional.

Running tomcat without SSL is successful.

Then I followed the instruction of tomcat-ssl-howto
and generated the .keystore file, modified server.xml.

Then when I start tomcat, I get the following severe
handshake error and if do http://localhost:8443 in my
browser, I see nothing except a completely blank page.

Would you gurus please kindly tell me how to fix this?
 Thanks a lot!

Created catalinaLoader in: C:\Tomcat4_1_12\server\lib
Nov 13, 2002 4:20:15 PM
org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Nov 13, 2002 4:20:17 PM
org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Nov 13, 2002 4:20:24 PM
org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Nov 13, 2002 4:20:34 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Nov 13, 2002 4:20:52 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 443
Nov 13, 2002 4:21:59 PM
org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
Nov 13, 2002 4:21:59 PM
org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 443
Nov 13, 2002 4:21:59 PM
org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8009
Nov 13, 2002 4:21:59 PM org.apache.jk.server.JkMain
start
INFO: Jk running ID=0 time=580/571
config=C:\Tomcat4_1_12\conf\jk2.properties
Nov 13, 2002 4:23:22 PM
org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Handshake failed
javax.net.ssl.SSLException: Unrecognized SSL message,
plaintext connection?
	at
com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275)
	at
com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
	at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
	at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
	at
org.apache.tomcat.util.net.JSSESocketFactory.handshake(JSSESocketFactory.java:290)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:493)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)
Nov 13, 2002 4:23:22 PM
org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception executing
org.apache.tomcat.util.net.TcpWorkerThread@18488ef,
terminating thread
java.lang.NullPointerException
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:512)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)



__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



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

2002-10-09 Thread Java Lamer

Has any got the DBCP to work with tomcat 4.1.12 and MySQL?  If so, what do 
you have to do to be able to get a connection?


Thanks
JL

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: How to create a connection pool

2002-10-03 Thread java guru

Hi -
  I am not sure on what type of application you are
building, but doing connection related stuff
(including running sql over already established
connection in jsp) isnt very good idea. Read about mvc
model if you are in design stage.
   In anycase, if you still need access to pooled
connection, tomcat offers connection pooling (in the
default server.xml ) and refer to apache jsp taglib on
how to access one.


FYI
srini
 --- phani <[EMAIL PROTECTED]> wrote: > Hi,
> 
> I am using a bean to get connection for a db from my
> jsp page. But the problem is for each and every
> request the page fetches a connection from  the
> bean. This becomes a over head to the system.
> What i want to do is i want to open n no (say 50 )
> of connection when the server is started and any
> request must be routed through these connection
> only.
> 
> How to do this?
> 
> Thanks in advance.
> 
> phani
>  

=
Thanks and have great day
srini


Missed your favourite TV serial last night? Try the new, Yahoo! TV.
   visit http://in.tv.yahoo.com

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




RE: Running tomcat as service

2002-09-26 Thread Java Group

The Tomcat version I'm running is 4.0.3.
I installed the tomcat as service from the installation options.

The service "log on" is as "local system account".

About the APACHE_HOME\modules there is none like this name in the 
directory. The dll is my dll and it is loaded perfectly if I run the tomcat through 
the start menu and not as service.

Oded Hasidi

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 11:05
To: Tomcat Users List
Subject: Re: Running tomcat as service


During installation did you select to install Tomcat as service, or, are 
you trying to add it after the fact?

Make sure the service "log on" is as "local system account".  Can be found 
on the "log on" tab for the service.  Make sure the .dll is in the 
APACHE_HOME\modules dir, not a link, and the load modules line for apache 
is setup correctly.

Who owns the .dll, and who has rights to it?

rls





"Java Group" <[EMAIL PROTECTED]>
09/26/2002 01:42 AM
Please respond to "Tomcat Users List"

 
To: <[EMAIL PROTECTED]>
cc: 
Subject:Running tomcat as service

Hi.

My problem is as follows:
When running tomcat normaly there is no issue, but when running as service 
I get an unsatisfiedLinkError Exception when trying to load dll. Even 
though the dll is in the Environment path.

What am I missing?

Thanks.

Oded Hasidi.

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





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


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




Running tomcat as service

2002-09-26 Thread Java Group

Hi.

My problem is as follows:
When running tomcat normaly there is no issue, but when running as service I get an 
unsatisfiedLinkError Exception when trying to load dll. Even though the dll is in the 
Environment path.

What am I missing?

Thanks.

Oded Hasidi.

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




serious issues with tomcat and rmi

2002-06-07 Thread java guru

I am encountering serious issues with tomcat and rmi..
I am getting all sorts of problems ranging from 

1. version 4.0.3 cannot load classes from rmi
codebase.. reading the codebase but returning
classnotfound exceptions..

2. version 4.0.4 webappclass loader dying with 'Life
cycle error' and access control exceptions on
web-inf/lib even when used with all.policy with most
liberal security settings..

3. And all these different class loaders and
exceptions look very confusing and impossible to make
it work.

Hope someone would throw some light..

Thanks
srini



=
Thanks and have great day
srini


Everything you always wanted to know about cars and bikes,now
 at: http://in.autos.yahoo.com

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




tomcat 4 having trouble with loading rmi classes from codebase

2002-06-07 Thread java guru

Hi.,
   i am trying to use servlet with tomcat 4.0.3 that
tries to load classes from rmi codebase defined by
http protocol.

   catalina.out log is reporting classnot found
exception while other stand alone clients are working
fine.

   Read somewhere about Jar handler problems in tomcat
but that was as of tomcat 3.0 version.

Any help is appreciated..

Thanks
srini

=
Thanks and have great day
srini


Everything you always wanted to know about cars and bikes,now
 at: http://in.autos.yahoo.com

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




tomcat 4.0.3 servlet having problem loading class via rmi ?

2002-06-06 Thread java guru

Hi.,
  I am trying to access a JINI service thru my
servlet.. inspite of following Security Manager,
Policy file and setting codebase etc, tomcat 4.0.3
repeatedly give following excption.

The JINI service itself is working fine and other
standalone clients can access it.

Read somewhere that the protocol handler of tomcat had
problem but that was two years back.. 

Any insight to this would be of great help.

Thanks
srini


***
java.lang.ClassNotFoundException:
com.sun.jini.reggie.RegistrarProxy
at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:427)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629)
at
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at
java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at
net.jini.discovery.IncomingUnicastResponse.(IncomingUnicastResponse.java:78)
at 
net.jini.discovery.LookupDiscovery$UnicastDiscoverer.run(LookupDiscovery.java:322)

=
Thanks and have great day
srini


Everything you always wanted to know about cars and bikes,now
 at: http://in.autos.yahoo.com

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




Re: AW: Tomcat refusing jsessionid's

2002-05-27 Thread Jiger Java

I tried doing that already but invain. Anyways I have used a work around to 
overcome this problem but if anyone can provide some hints then well.

Jiger


>From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: AW: Tomcat refusing jsessionid's
>Date: Mon, 27 May 2002 08:42:13 +0200
>MIME-Version: 1.0
>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>MHotMailBEBB206000B3400431E0C01231838FD30; Sun, 26 May 2002 23:42:44 -0700
>Received: (qmail 27329 invoked by uid 97); 27 May 2002 06:42:20 -
>Received: (qmail 27298 invoked by uid 98); 27 May 2002 06:42:19 -
>From tomcat-user-return-20678-jigerjava Sun, 26 May 2002 23:44:33 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Id: "Tomcat Users List" 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>content-class: urn:content-classes:message
>Message-ID: <[EMAIL PROTECTED]>
>X-MS-Has-Attach:
>X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
>X-MS-TNEF-Correlator:
>Thread-Topic: Tomcat refusing jsessionid's
>Thread-Index: AcID2TwY3NLya5rjR5SneQzOgoKxaQBb8j5A
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>The syntax for the session id is wrong.
>
>Since Servlet Spec 2.2 the session id is not a part of the query
>string but part of the url.
>http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet;jses
>sionid=A4A0314540585318A4F5E327F1457375
>
>You should better disable cookies and use response.encodeUrl().
>
> > -Ursprüngliche Nachricht-
> > Von: Jiger Java [mailto:[EMAIL PROTECTED]]
> > Gesendet: Samstag, 25. Mai 2002 12:44
> > An: [EMAIL PROTECTED]
> > Betreff: Tomcat refusing jsessionid's
> >
> > I attach the jsessionid something like this
> > http://www.reseller.com:10001/anacreon/servlet/CustomerIndexSe
> > rvlet?jsessionid=A4A0314540585318A4F5E327F1457375
> >
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: Tomcat refusing jsessionid's

2002-05-26 Thread Jiger Java

I am appending jsessionid to the url. Abt PoST OR GET I am doing a  so It is a get I believe.

Jiger


>From: tek1 <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Tomcat refusing jsessionid's
>Date: Sat, 25 May 2002 23:45:12 +0900
>MIME-Version: 1.0
>Received: from nagoya.betaversion.org ([192.18.49.131]) by hotmail.com with 
>Microsoft SMTPSVC(5.0.2195.4905); Sat, 25 May 2002 20:47:45 -0700
>Received: (qmail 25827 invoked by uid 97); 26 May 2002 03:47:20 -
>Received: (qmail 25782 invoked by uid 98); 26 May 2002 03:47:20 -
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Id: "Tomcat Users List" 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>In-reply-to: <[EMAIL PROTECTED]>
>X-Sender: (Unverified)
>Message-id: <[EMAIL PROTECTED]>
>X-Mailer: QUALCOMM Windows Eudora Version 4.3.2-J
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>Return-Path: 
>[EMAIL PROTECTED]
>X-OriginalArrivalTime: 26 May 2002 03:47:45.0745 (UTC) 
>FILETIME=[18B57410:01C20468]
>
>is it possible for a client to append JSESSIONID= to the url 
>(i.e. 
>http://theurl.com/theservlet?JSESSIONID=A4A0314540585318A4F5E327F1457375) 
>and still use the POST method, or is the usage of GET mandatory?
>
>thanks.
>
>
>
>At 08:54 02/05/26 +0530, you wrote:
>>Philip,
>>  I did try using url re-writing using jsessionid'd & that is why I 
>>wrote this mail. TOmcat seems to use jsessionid in cookies first & if not 
>>there only then take jsessionid from url. This is my guess coz that is 
>>what is happening.
>>
>>Does anyone have any idea how to force using jsessionid in such situations 
>>to make user jump between two domains(though they are in reality same 
>>machine & same tomcat) without his knowlege.
>>
>>-Jiger
>>
>>
>>>From: Phillip Morelock <[EMAIL PROTECTED]>
>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>>Subject: Re: Tomcat refusing jsessionid's
>>>Date: Sat, 25 May 2002 09:14:27 -0700
>>>MIME-Version: 1.0
>>>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>>>MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 
>>>-0700
>>>Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 -
>>>Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 -
>>From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700
>>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>>Precedence: bulk
>>>List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>>>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>>>List-Help: <mailto:[EMAIL PROTECTED]>
>>>List-Post: <mailto:[EMAIL PROTECTED]>
>>>List-Id: "Tomcat Users List" 
>>>Delivered-To: mailing list [EMAIL PROTECTED]
>>>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>>>User-Agent: Microsoft-Entourage/10.0.0.1309
>>>Message-ID: <[EMAIL PROTECTED]>
>>>In-Reply-To: <[EMAIL PROTECTED]>
>>>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>>>
>>>HTTP sessionsbrowsers are configured to associate cookies with domain
>>>names.  They will not transmit a cookie to a domain other than the
>>>originating domain (at least they shouldn't).  It has nothing to do with 
>>>IP
>>>address, only domain name.  I am not sure I understand your question, but 
>>>if
>>>I am reading it correctly, the only thing you can do is some manual
>>>persistence scheme, such as using a database and url rewriting or some
>>>similar scheme.
>>>
>>>does this help?
>>>
>>>fillup
>>>
>>>
>>>On 5/25/02 3:43 AM, "Jiger Java" <[EMAIL PROTECTED]> wrote:
>>>
>>> > Hi,
>>> >   I have checked the archives already but did not come across similar
>>> > problems so I would like to ask it.
>>> >
>>> > My Platform:
>>> > Tomcat 4.0.
>>> > JDK 1.4
>>> > RHT Linux
>>> >
>>> >   We have this application hosted on an generic server say
>>> &

Re: Tomcat refusing jsessionid's

2002-05-25 Thread Jiger Java

Philip,
  I did try using url re-writing using jsessionid'd & that is why I 
wrote this mail. TOmcat seems to use jsessionid in cookies first & if not 
there only then take jsessionid from url. This is my guess coz that is what 
is happening.

Does anyone have any idea how to force using jsessionid in such situations 
to make user jump between two domains(though they are in reality same 
machine & same tomcat) without his knowlege.

-Jiger


>From: Phillip Morelock <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Tomcat refusing jsessionid's
>Date: Sat, 25 May 2002 09:14:27 -0700
>MIME-Version: 1.0
>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 -0700
>Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 -
>Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 -
>From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Id: "Tomcat Users List" 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>User-Agent: Microsoft-Entourage/10.0.0.1309
>Message-ID: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>HTTP sessionsbrowsers are configured to associate cookies with domain
>names.  They will not transmit a cookie to a domain other than the
>originating domain (at least they shouldn't).  It has nothing to do with IP
>address, only domain name.  I am not sure I understand your question, but 
>if
>I am reading it correctly, the only thing you can do is some manual
>persistence scheme, such as using a database and url rewriting or some
>similar scheme.
>
>does this help?
>
>fillup
>
>
>On 5/25/02 3:43 AM, "Jiger Java" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >   I have checked the archives already but did not come across similar
> > problems so I would like to ask it.
> >
> > My Platform:
> > Tomcat 4.0.
> > JDK 1.4
> > RHT Linux
> >
> >   We have this application hosted on an generic server say
> > http://www.server.com now our reseller's can map their DNS such that
> > www.reseller.com points to www.server.com this will be dynamic( since
> > reseller's will be doing it themselves) so I can't use "virtual host"
> > feature of tomcat. The idea is that customer of that reseller should not
> > come to know that they are actually buying stuff from us & so the 
>customer
> > *always* sees the reseller's website url in his browser. All pages post 
>to
> > http://www.reseller.com/customer/xyz , which would post to us due to DNS
> > mapping. So far so good. But in many critical places like Login, 
>customer
> > signup, we have hardcoded url's to our https:// server (same machine 
>same
> > tomcat) becoz reseller need not buy Secure Certificates.
> >  This is the problem. Inspite of my adding jsessionid to all such
> > pages right from posting to https:// to  refreshes, I still can't 
>seem
> > to get back the session. Logically, if I pass in the right sessionid, 
>tomcat
> > should pick up the correct session but it is still picking up pre-login
> > session & refusing the new sessionid got in the Authenticationservlet.
> >
> > I attach the jsessionid something like this
> > 
>http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessionid
> > =A4A0314540585318A4F5E327F1457375
> >
> >  Does anyone have any idea how to solve it. Please ask me if you 
>need
> > more clarifications. I need to get this thing out.
> >
> >  Thanks & Awaiting your replies,
> >  Jiger
> >
> >
> >
> > _
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > --
> > To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
> >
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Tomcat refusing jsessionid's

2002-05-25 Thread Jiger Java

Hi,
I have checked the archives already but did not come across similar 
problems so I would like to ask it.

My Platform:
Tomcat 4.0.
JDK 1.4
RHT Linux

We have this application hosted on an generic server say 
http://www.server.com now our reseller's can map their DNS such that 
www.reseller.com points to www.server.com this will be dynamic( since 
reseller's will be doing it themselves) so I can't use "virtual host" 
feature of tomcat. The idea is that customer of that reseller should not 
come to know that they are actually buying stuff from us & so the customer 
*always* sees the reseller's website url in his browser. All pages post to 
http://www.reseller.com/customer/xyz , which would post to us due to DNS 
mapping. So far so good. But in many critical places like Login, customer 
signup, we have hardcoded url's to our https:// server (same machine same 
tomcat) becoz reseller need not buy Secure Certificates.
   This is the problem. Inspite of my adding jsessionid to all such 
pages right from posting to https:// to  refreshes, I still can't seem 
to get back the session. Logically, if I pass in the right sessionid, tomcat 
should pick up the correct session but it is still picking up pre-login 
session & refusing the new sessionid got in the Authenticationservlet.

I attach the jsessionid something like this 
http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessionid=A4A0314540585318A4F5E327F1457375

   Does anyone have any idea how to solve it. Please ask me if you need 
more clarifications. I need to get this thing out.

   Thanks & Awaiting your replies,
   Jiger



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


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




Re: automatic login

2002-05-14 Thread Java Team

Hi

Use the following Webster.www.ambysoft.com

Regards
Velmurgan P.


- Original Message -
From: Collins, Jim <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 2:03 PM
Subject: RE: automatic login


> Hi Craig,
>
> Could you please send the URL for the UML diagrams, I could not find them.
>
> Thanks.
>
> Jim.
>
> > -Original Message-
> > From: Mats Nyberg [mailto:[EMAIL PROTECTED]]
> > Sent: 10 May 2002 20:42
> > To: Tomcat Users List
> > Subject: Re: automatic login
> >
> >
> >
> >
> > Craig R. McClanahan wrote:
> >
> > >
> > >On Fri, 10 May 2002, Mats Nyberg wrote:
> > >
> > >>Date: Fri, 10 May 2002 20:00:51 +0200
> > >>From: Mats Nyberg <[EMAIL PROTECTED]>
> > >>Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > >>To: Tomcat Users List <[EMAIL PROTECTED]>
> > >>Subject: Re: automatic login
> > >>
> > >>locking myself in is no problem; this is an app running on
> > a collegue's
> > >>(peter antman @ jboss) heavily patched version of a JBoss
> > 2.something
> > >>loaded with tomcat and jboss dependencies.
> > >>
> > >>do you know the internals of the
> > accessinterceptor/authentification process
> > >>in tomcat?
> > >>
> > >
> > >I'd *better* know it, because I wrote it ... :-)
> > >
> > straight to the source, huh
> > ;)
> >
> > >
> > >
> > >Look in package org.apache.catalina.authenticator in the
> > Tomcat source
> > >code for the implementation classes that implement the various login
> > >methods.
> > >
> > using 3.2, dude
> > :(
> >
> > >You'll need to understand quite a bit about Tomcat's internal
> > >architecture for this to work
> > >
> > I do
> >
> > >-- there are some UML diagrams and such
> > >stuff in the "Catalina Documentation" part of the tomcat-docs webapp.
> > >
> > >However, I'm afraid that I'm not going to be able to assist
> > you any, due
> > >to time constraints.
> > >
> > hey, i know i'm on a seller's market here ;)
> >
> > got an idea, though.
> > I'll be back
> >
> > by the way, vincenzo: your idea worked - will write HOWTO for the list
> >
> > >
> > >
> > >Craig
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > 
> > >For additional commands, e-mail:
> > 
> > >
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> PLEASE READ: The information contained in this email is confidential
> and intended for the named recipient(s) only. If you are not an intended
> recipient of this email you must not copy, distribute or take any
> further action in reliance on it and you should delete it and notify the
> sender immediately. Email is not a secure method of communication and
> Nomura International plc cannot accept responsibility for the accuracy
> or completeness of this message or any attachment(s). Please examine this
> email for virus infection, for which Nomura International plc accepts
> no responsibility. If verification of this email is sought then please
> request a hard copy. Unless otherwise stated any views or opinions
> presented are solely those of the author and do not represent those of
> Nomura International plc. This email is intended for informational
> purposes only and is not a solicitation or offer to buy or sell
> securities or related financial instruments. Nomura International plc is
> regulated by the Financial Services Authority and is a member of the
> London Stock Exchange.
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: VM size increases.

2002-05-14 Thread Java Team

Hi

Have you used any pooling software?How can you achieved connection
pooling?.
Actually we had same problem and we got the solution.
Give more details on that will help to identify the problem.

Regards
VelmurganP
([EMAIL PROTECTED])
SoftSolutions
Chennai.



- Original Message -
From: Rajesh Mishra <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 10:19 AM
Subject: VM size increases.


>
> I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
> below..
>
> 1.The VM size of Tomcat's java.exe process increases gradually and it
> doesn't come down. As a result machine hangs.I've closed database
> connections and Resultset's everywhere I accessed database.
>
> 2. On running Web Application Stress testing tool for 2 days (with 10
> threads and 4 socket multiplier), Tomcat crashes.
>
> Rajesh
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




tomcat connector looking for OLD DEV worker ?

2002-05-03 Thread java guru

Hi.,
   I am trying tomcat connector (4.0.3) with iplanet
server. After changing workers.properties file, the
connector is still looking for DEV worker. Connector
initialization shows new workers but while serving the
request, the connector returning error as its looking
for old worker.
  
   Is there some kinda 'cache' mechanism here ?


thanks
srini

=
Thanks and have great day
srini


For live cricket scores download  Yahoo! Score Tracker
 at: http://in.sports.yahoo.com/cricket/tracker.html

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




iplanet tomcat connector caches worker names

2002-05-03 Thread java guru

Hi.,
   I am trying to setup tomcat connector (4.0.3) for
iplanet (6.0 sp2).

   In the intial testing, connector is caching the
worker name previously used (even after
worker.properties changed and iplanet restarted). In
the jk_log, I see the new worker properties taking
effect, but once i try to access url, i see that the
connector is looking for worker that was previously in
effect. This happens even after i clear all cookies
from my browser(thought the sticky session was causing
problems)..

i appreciate response.

Thanks
srini

=
Thanks and have great day
srini


For live cricket scores download  Yahoo! Score Tracker
 at: http://in.sports.yahoo.com/cricket/tracker.html

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




Url Rewriting in Tomcat4.0

2002-02-11 Thread Jiger Java

Hi,
Is is possible to do url rewriting  in Tomcat. Something such that when 
a request like

http://www.server.com/reseller comes in then the server will
execute/get/map/etc etc & the final url will become as
http://server.com/servlet/LoginServlet?role=reseller
which is then the named servlet be executed. The  allows 
only Servlet Class file name & alias but not alias with params. Can we do so 
in Tomcat 4.0.

Thanks & Awaiting your replies,
Jiger




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


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




Servlet Mappings Problem

2002-02-08 Thread Jiger Java

Hi,
   I am having some problem fitting my requirements in web.xml. I want to
do something like this.
Whenever a user says http://server.com/contracts . It is supposed to show
him the login page. But with some extra parameters to be added.
So basically the url will become
http://server.com/anacreon/servlet/AuthenticationServlet?role=reseller

Can I do this using simple Tomcat.(We dont use apache so dont tell me to use
url rewriting stuff).
I am also not in favour of writing servlets that do this & then mapping
the url to this servlet. That is a bad solution. Cant we specify in web.xml
something like this.


   internalauth
   InternalAuthenticationServlet
   

   
   internalauth?role=marketing
   /contracts
   

   
   internalauth?role=finance
   /finance
   


Specifying params in  also gives error.


Any idea would help.

Thanks,
Jiger





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


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




RE: having to restart tomcat for new classes -More

2002-01-11 Thread Jiger Java

Hi Craig,
>
>* Creating objects based on classes loaded from /WEB-INF/classes or
>   /WEB-INF/lib, but passing references to them to classes that are
>   loaded from the shared class loader (and are thus NOT reloaded by
>   the reloading mechanism).  The old objects survive the reload (because
>   there are still live references to them, so they cannot be
>   garbage collected).  But they are GUARANTEED to cause a
>   ClassCastException when you try to reference them after the reload
>   completes.
>
   I my case I am NOT loading anything from shared classpath. nor am I 
giving references to them of classes in /WEB-INF/classes or /WEB-INF/lib 
classes. So this is very funny & annoying error.
  If u had read my previous mails, I had described that I was using a 
Utility that I created on the samelines as Struts BeanUtil.populateBean() 
method. Which auto-populates FormBean's from request or Hastables.
It works perfectly well normally, but as soon as I recompile any class 
in my webapp triggering webapp reload, The formbean population fails for 
some methods, so my validate will return false & the app goes into loop 
showing errors highlighted although user has filled in all the required 
details.
   If I still continue, tomcat starts giving me annoying errors like 
ClassCastException, NoClassDefFound, LinkageError and what not.
   I could send u my stacktraces once more if u want.This seems to be a bug 
of how all classes loaded from the same place, then destroyed & Re-created 
start giving problems.

Any idea.

Thanks & Awaiting your reply,
Jiger
>
> > Can u just explain how can we prevent classloading errors & points to 
>keep
> > in mind so that even if entire Context is being restarted does not 
>affect
> > our app.
> >
>
>The simplest rule is to put 100% -- that's every single one -- of your
>application classes, plus any library classes that your application uses,
>under /WEB-INF/classes or /WEB-INF/lib, instead of in a shared library
>directory.  That way, they will always get reloaded when your webapp does.
>
>If you use shared JAR files (for example, from Tomcat's "lib" directory),
>you need to absolutely ensure that there are no references to the old
>objects (loaded from /WEB-INF) kept by objects that are loaded by a shared
>class loader.  As you can imagine, this is a much harder thing to do.  The
>suggestion in the previous paragraph is much simpler to implement, and
>avoids pretty much all potential problems.
>
> > Thanks & Awaiting your reply,
> > Jiger
> >
>
>Craig
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




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


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




RE: having to restart tomcat for new classes -More

2002-01-09 Thread Jiger Java

Hi Craig,
  I just wanted to ask why do u have to restart the entire app when 
even one class changes.
   You must have seen my past 3-4 days mails & am to facing a similar 
problem, I am not sure if this is a JDK 1.4 beta3 related problem but 
whenever I recompile any of my class which triggers context restart because 
of which then entire tomcat becomes unstable & I start getting funny error 
like
java.lang.NoClassDefFound : java/lang/ClassCastException

or linkage error & what not. I am FORCED to restart my tomcat server as u 
will agree this is not possible on a production server.

Can u just explain how can we prevent classloading errors & points to keep 
in mind so that even if entire Context is being restarted does not affect 
our app.

Thanks & Awaiting your reply,
Jiger



>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: RE: having to restart tomcat for new classes
>Date: Wed, 9 Jan 2002 12:22:01 -0800 (PST)
>MIME-Version: 1.0
>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE05F18D0055400438E0C01231839CB10; Wed, 09 Jan 2002 12:22:38 -0800
>Received: (qmail 3170 invoked by uid 97); 9 Jan 2002 20:22:06 -
>Received: (qmail 3159 invoked from network); 9 Jan 2002 20:22:06 -
>From tomcat-user-return-6986-jigerjava Wed, 09 Jan 2002 12:23:48 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
>List-Subscribe: <mailto:[EMAIL PROTECTED]>
>List-Help: <mailto:[EMAIL PROTECTED]>
>List-Post: <mailto:[EMAIL PROTECTED]>
>List-Id: "Tomcat Users List" 
>Delivered-To: mailing list [EMAIL PROTECTED]
>In-Reply-To: <[EMAIL PROTECTED]>
>Message-ID: <[EMAIL PROTECTED]>
>X-Spam-Rating: localhost 1.6.2 0/1000/N
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>
>
>On Wed, 9 Jan 2002, Jolet, John wrote:
>
> > Date: Wed, 9 Jan 2002 15:04:31 -0500
> > From: "Jolet, John" <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > Subject: RE: having to restart tomcat for new classes
> >
> > cool, but that still begs the questiondo YOU have to do "something" 
>to
> > make new classes in an existing context "go"?
> >
>
>Yes ... you have to reload the application (either automatically or
>manually via the Manager app).  Restarting the entire Tomcat server also
>works, because it implicitly restarts all the apps.
>
>Craig
>
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 09, 2002 1:55 PM
> > To: Tomcat Users List
> > Subject: RE: having to restart tomcat for new classes
> >
> >
> >
> >
> > On Wed, 9 Jan 2002, Jolet, John wrote:
> >
> > > Date: Wed, 9 Jan 2002 13:20:28 -0500
> > > From: "Jolet, John" <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > > Subject: RE: having to restart tomcat for new classes
> > >
> > > what manager?
> > >
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
> >
> > Craig
> >
> >
> >
> > > -Original Message-
> > > From: Simon [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 09, 2002 11:57 AM
> > > To: Tomcat Users List
> > > Subject: Re: having to restart tomcat for new classes
> > >
> > >
> > > Dear,
> > >
> > > Not sure if this help?
> > > 1) Set reloadable=true in your context?
> > > 2) Use the manager to reload ?
> > >
> > > Best regrads,
> > > Simon
> > > 
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>




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


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




Possible bug in Tomcat 4.0 final

2002-01-07 Thread Jiger Java

Hi all,
   I am using Tomcat 4.0 final, Win98, JDK 1.4 beta 3.

Problem description :I feel that Tomcat is loosing some values from the 
session.

Problem explanation : In the application we are building,I have tomcat 4.0 
final running on win98. In my app the user logs in, & his username,password, 
userid, and Language obj(for multilingual stuff in my app), etc etc are 
stored in this session.
  As he roams the application many different objects arestored in his 
session. Now if I recompile some of my servlets/classes, Tomcat reloads my  
application due to change in class. Since I have one  servlet 
I can see it load. But then a very funny thing happens. The user logged in 
looses some data from his session!! where as some others are left intact.
  I have noticed that all Strings kepts in session are left intact but all 
objects I had kept are removed.
  Can uall tell me if I am missing something or is this a possible bug in 
tomcat.

Awaiting your replies,

Thanking you,
Jiger

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


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




Problems with Tomcat4, Reflection & Classloading

2002-01-03 Thread Jiger Java

Hi all,
  I am using Tomcat 4.0 final, JDK 1.4 beta 3, Win98 for dev.
I am using a automatic bean population class to automatically populate bean 
based on request object just like in Struts.
   Ok, now the problem comes during population when I receive the following 
exception.

java.lang.IllegalArgumentException: object is not an instance of declaring 
class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at com.co.util.FormUtil.populateBean(FormUtil.java:66)
at com.co.util.FormUtil.populateBean(FormUtil.java:18)
at DomcnoEtppServlet.doGet(Unknown Source)
at DomcnoEtppServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at MVCServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:539)

I notice this problem when Tomcat is left unused for sometime & also when a 
class when compiled is re-loaded by tomcat. since some property is not set 
its validation fails & is sent back to form page with the errors 
highlighted.
  If I continue sending request or try to refresh the page it then gives the 
the following error

Root Cause:
java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:49)
at 
sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:384)
at java.security.AccessController.doPrivileged(Native Method)
at 
sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:380)
at 
sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:62)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:31)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at com.co.util.FormUtil.populateBean(FormUtil.java:66)
at com.co.util.FormUtil.populateBean(FormUtil.java:18)
at AuthenticationServlet.doGet(Unknown Source)
at AuthenticationServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at MVCServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(Unknown Source)
at org.apache.catalina.servlets.InvokerServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.ca

Double check idiom broken - Tomcat uses it ?

2001-12-05 Thread java programmer

Hi all:

We all know that the lazy-double-check idiom doesn't
apply to Java because of the Java Memory Model (JMM).

That is to say, look at code such as:

Example a)  
// Set by any other thread other than #1
volatile boolean stop = false;

// Thread #1 runs this as long as
// stop is false. Only T1 will call this
// method, so not synchronized. hence 
// broken due to staleness of 'stop'.
// synch for _visbility_ ALSO.
void foo() {
 while (!stop ) {  //... }
}


Example b): The lazy double check idiom
public static Foo haha = null;
public static getFoo() {
if (foo == null ) {
  sychronized (Foo.class) {
 if (foo == null )
foo = new Foo();
  }
}
return foo;
}

Both examples are *guaranteed* to be incorrect. 
Note, this is the case, *even* though I am using
'volatile' for the stop variable. For more on the 
JMM, consult Item #48 in Effective Java (Josh Bloch),
look at Bill Pughs' page at:
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
or check out Doug Lea's stuff.
Well, here is the thing:

Quite idly, and randomly, I was looking at:

org.apache.jasper.servlet.JspServlet

and I found:


outDated = compiler.isOutDated();
   if(!jsw.isInstantiated() || outDated ) {
  synchronized(jsw){
outDated = compiler.compile();
if(!jsw.isInstantiated() || outDated) {
if( null ==ctxt.getServletClassName() ) {


This is a complex use of double check type
code and is really hard to analyse because references
themselves and what they point to can have 
different levels of staleness (according to the JMM).
So it's a turbo double idiom type usage, possibly
incorrect.

I just wanted to bring this to the attention of the
development team and make sure that *someone* has
really analysed this according to the JMM. (and
any other code, similar to this).

Best regards,

[EMAIL PROTECTED]




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

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




server.xml - Part II

2001-12-05 Thread java programmer

First off, I'd like to reply to an earlier post
and the I'll talk about a weird finding 
regarding server.xml with Tomcat 3.3 on Linux 2.4.x
with Java 1.3.x.

> We're the main european hub for bioinformatics
> research and resources,
> the fact that webapps exist and can be packaged is
> incredibly useful to
> us. 

Hmm. I stand somewhat corrected. I still believe
that the "webapp" complexity is not applicable to
many people, who simply want Apache + an engine
to run servlets/JSP, probably talking to mySQL
in the backend. For that kind of use, you don't
need more than one context, i.e., the default "/"
context hanging off the docroot (htdocs) of 
the *web* *server*.

> > And the kicker is the gratuitous, idiotic
> > use of XML for _configuration_. For you to say:
> 
> [..]
> if you're configuring a system that is intrinsically
> hierarchical,
> doesn't it make sense to use a configuration
> mechanism that shared this
> property?

Again, agreed. However, consider the fact that this
heirarchy is relatively flat, 2-3 levels deep in
most places. Isn't it simpler to use a file of 
the format:

level1.level2.prop1=value
context.foocontext.simplemapper=foo.class
context.foocontext.simplemapper.listings=false
... and so on ...

This approach has a lot of precedent and works
very well (for shallow depths). Also, it's
simpler to have a default case of one config 
file only, with a *special case* option of
more files if needed. Apache does this too for a 
reason. Also why expose the module map at all ?
(modules.xml). Most end-users are not going to
write and swap in their own modules and most
hackers are just going to hack the tomcat source
directly. 

Now for a bit on my environment. I have several
SMP boxes that I am planning to run Tomcat+mySQL
+Apache on. Apache and mySQL are now running quite
smoothly but Tomcat is still not up yet. I keep
getting a funny exception when I say:

shell> tomcat.sh start debug -10

The relevant part of this exception looks like:

---
EmbededTomcat: exception initializing ContextManager
java.lang.NullPointerException
at
org.apache.tomcat.facade.JspInterceptor.addContext(Unknown
Source)
---
After tearing my hair out for several (many) hours, 
I have made a startling finding. 

My ending of my server.xml looks like:

[..stuff ...]
 
 




If the ONLY change I make is moving the JSPInterceptor
tag _below_ the WorkDirSetup Tag, the exception
disappears and tomcat starts up fine ! No other
file is touched, this is the only change I make.
And it works. Now if that is not insane, my 
definition of insanity needs some serious rework.

Try this in reverse in your server.xml, folks, and 
see what happens !

Oh yeah, I only have 1 apps file (apps.xml) and
it says:








Do note that this problem with server.xml is
independent
of the apps.xml file and this file has not been
changed at all. The problem is also independent
of the fact that I am using mod_jk (apache). Seems
like
there is a coding bug in JSPInterceptor.

If anyone here concurs, I suggest forwarding this 
email to an Apache developer.

Best regards,

[EMAIL PROTECTED]















__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-03 Thread java programmer

Micael Padraig Og mac Grene wrote:
[...]


"Padraig og mac" ?

What kind of a name is that ? It sounds similar to
the sound I make when I fart. Smells about the
same too. Since you are so apt in making suggestions,
allow me to make two of my own: a) look up the 
word 'rant' in an English dictionary. b) change 
your moniker to the altogether more appropriate 
name: "cuntface".

Best regards,

[EMAIL PROTECTED]


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-03 Thread java programmer

--- Jan Labanowski <[EMAIL PROTECTED]> wrote:
> You must be working for Microsoft, I assume...
> BTW... servlet.xml cannot have DTD, since people can
> add their own stuff
> (classes), instantiate it in server.xml, and name it
> the way they want,
> and DTD would not allow it... 
> 
> Jan

Please don't top post. Replies go under the
original post. Only MS weenies with MS outlook
top post.

Ok. I am going to rant here. 


Tomcat 3.3.x's internals really suck. I have looked
at probably all of the JDK source over the past
5 years and tomcat is at the very bottom in terms
of quality, readability, even trivialities like
source code formatting/comments.  

JSP/Servlets are *important*. They are probably the
most important java api, now that java has proven
to be a total failure on the client side. (java, in
general, is *great* though).

Now, it wouldn't be so bad that tomcat is a internal
mess, if the exposed API/interface was pleasant.
By this I mean, installing, configuring, extending,
and documentation. Tomcat falls down in all areas.

I mean, I really am very frustrated. There should be
no reason to be. 

Let's take a simple, yet real world example of 2 
virtual hosts, each served by Tomcat.

Well, do I use:

a) 1 tomcat instance with 1 server.xml file with 
different AutoWebApps ? (have you seen how
terse the autowebapp doc is ? They don't even
say if the host name param should be a FQDN) ?

b) 2 separate instances of tomcat with 2 separate
server.xml files ?

c) Some other random, trial by fire combo ?

I mean, in places, the docs say that version 3.3
and earler require separate instances of Tomcat.
Other places, they say things like: "You can add 
apps to multiple virtual hosts." (implying 1 
tomcat server ?).

I don't know. The JSPException that I described in
the original post, is not really documented 
anywhere.  Tomcat should have printed a meaningful
message when that happened. Just barfing up the
Exception itself, doesn't help me, i.e., the end 
user at all. 

There isn't any real documentation, and whatever 
there is, is mutually incompatible in many places. 

Is this the best Sun/Apache can do ? 

And on a personal note: I think the whole "webapp" 
idea is silly. It sounds promising of course, but 
it complicates things for most people. If I am 
running a web site, run with jsp's, then I want:

apache (httpd)
  |
  |_some doc root
|
|__ all .html, .jsp files, images here.

And only one context ("/").

In addition, path or extension based mappings 
_are_ useful but should be the _sole_ domain of
the web server. That would be Apache in my case.

That's how ASP works, that's how LiveWire used
to work. I don't want my images, files etc., all
over the place. I want them all under the htdocs 
directory. (yeah, I know I can do it, but I want
that to be the default out of box tomcat behavior).

"webapps" should never have made it
into the spec. Name three well known
web sites running in a mass virtual hosted 
environment and deployed as "webapps" with 
a web.xml file to boot ! Hell, name *any*.

And the kicker is the gratuitous, idiotic 
use of XML for _configuration_. For you to say:

> servlet.xml cannot have DTD, since people can
> add their own stuff
> (classes), instantiate it in server.xml, and name it
> the way they want,

shows that you have no conceptual idea what xml is
intended for. 

Java:
class foo {
//variables (structure)
}

C:
struct {
 //variables (structure)
 }

Database:
create table [ .. columns/structure ..]

BNF:
syntax ::=  { rule }
rule   ::=  identifier  "::="  expression
expression ::=  term { "|" term }
term   ::=  factor { factor }
[..]

XML is similar to the above 4. XML is a way to
*define*/*create* new and arbitrary data 
formats (although somewhat limited  compared 
to BNF type grammars). This way, I know and
you know what we are saying when we exhange data.

If there is _no_ format (dtd), there _is_ no 
structure. That's a shoddy development time 
hack only. Tomcat has been deployed for years
now. There is no excuse not to have a server.dtd.

Here's a factoid for the sun team: If I 
had the money, I would buy ServletExec or maybe
JRun. I have been hacking java since '94 and
I am frustrated with how inelegant 3.3 "feels".

The Sun/Apache team can learn a great
deal either of those 2 distros. (I am not talking
about fancy installers or GUI's but about 
documentation and error handling behavior). 

The httpd Apache server, has a different heritage
of course, but configuring a complicate beast
like that is *easier* than configuring Tomcat itself.
It took me less than 3 hours to download apache,
compile, install and get 4 virtual hosts up and 
running on my linux box. I have been struggling 

Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-03 Thread java programmer

Vladimir Grishchenko <[EMAIL PROTECTED]>, looked
up from a pending proctological exam, butthole
opening, and contracting and gushing rectal mucous and
opined:

> I used almost every version of TC since 3.x to 4.0.
> [..a buncha crap flushed..]
>

Jeez. It must be part of the human condition that
there really is no escape from stupidity. 

Here I was, looking for a cogent response, and I
get a blazing cretin, with _no_ suggestion to offer
save for proclaming a wholesome and beautiful 
experience with Tomcat. My, my  all the way back 
to version 3.0 you say ? 

The irony of your _top_ _post_,(produced more
than likely with gatesian trash I wouldn't rely 
on to so much as prop the outhouse door), with
all_ of the original post intact, is as they 
say, quite delicious. 

Best regards,

[EMAIL PROTECTED]



__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Tomcat 3.3, server.xml and a lot of fun

2001-12-03 Thread java programmer

Hi all:

Tomcat 3.3 (on linux) seems to be quite shoddily
developed. Surprising that, given it's high
visibility and posture.

Consider for instance:

I downloaded the binary distro of tomcat 3.3.
I have set and exported both TOMCAT_HOME and
JAVA_HOME. Compiled and installed mod_jk.so
too. (against Apache 1.3.22). 

All I have to do is edit/configure the 
"conf/server.xml" file and I should be well 
on my way right ?

Well let' see.

shell> vi server.xml
shell> tomcat.sh start -jkconf

EmbededTomcat: exception initializing ContextManager
java.lang.NullPointerException at
org.apache.tomcat.facade.JspInterceptor.addContext(Unknown
Source)

[..bunch of stack trace crap here ..]

Hmm. The message above gives me *no* more information.


Nothing looks obviously wrong with the server.xml 
file, let's validate it using the W3C validator.
But wait, there is *NO* server.dtd. There is only a 
description in the manual which says:

--- quote --
This is the main element in server.xml. It has a
single child describing the tomcat configuration,
ContextManager.

Examples


  ... ( tomcat configuration )
   

ContextManager
- end quote --

Hmm. Well my file kinda looks ok, but not having a 
DTD kinda means that the tomcat developers don't
understand the central concept behind xml. But's
let's leave that aside for now. Let's just validate
the *syntax* of server.xml using W3C (if the 
structure indeed is as simple as the manual claims).

[fire up a browser, validate server.xml here]

Well, that validated fine. So why am I getting
the error and wh am I getting it?  There is no 
way to tell, either from the Exception, or 
the LACK OF DOCUMENTATION.

2 hours later, after random permutations and
combinations of server.xml I still haven't found 
what's wrong. 

Attached below is the complete server.xml, 
in case any of you are interested. 

In the past, I may have gotten upset at having wasted
all this time. But that was before I found enlightment
through tomcat. Now I am at peace with the world for
tomcat teaches us about the futility of trying to
solve simple problems. 

Of course, now that I have given up trying to make
this thing work, I do have some idle time to wonder:

Exactly what are the tomcat developers smoking ?

Best regards,

[EMAIL PROTECTED]

 server.xml follows --



 
  
 
   
 
 
 
 
 
 
 
 
 
 
  
 
  
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   
 
 
  

 
 



- end 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Unable to compile JSPs in Tomcat 4

2001-10-04 Thread Jiger Java

One more thing, can Tomcat gurus explain what exactly is the way the 
Classloading of tomcat works, & what was causing problem. In my case I had 
latest Xerces 1.4.3 in common/lib(for tomcat) & in mycontext/WEB-INF/lib for 
my apps use. Why was it creating problem.

Gurus please explain.
Bye,
Jiger


>From: "Jiger Java" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Unable to compile JSPs in Tomcat 4
>Date: Thu, 04 Oct 2001 17:02:48 +0530
>
>Hi all,
>   Ok so finally I have been able to solve my Tomcat Problem. I am
>writing this for others to not waste 2 days in future.The Problem was
>related to Class Loading. Although I was setting javax.xml.parsers.*
>properties in catalina.bat & my Utilities were working irrespetive of this
>setting(because I have them set using System.setProperty in those classes
>itself. The main problem was related to the way Jasper loads the Xml Parser
>to parse JSPs.
>  I followed the instructions of using various XML parser in Tomcat4 & lo &
>behold eveything worked nicely incl. Apache SOAP which is notoriouse of
>working only with old xerces parser i.e xerces 1.2 or before.
>
>
>Bye,
>Jiger
>
>
>
>>From: "Jiger Java" <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: Unable to compile JSPs in Tomcat 4
>>Date: Wed, 03 Oct 2001 18:39:14 +0530
>>
>>Hi Friends,
>>I am working on Tomcat 4 Final Release. The scenerio is like
>>this.
>>  I am using XML Schema instead of DTD so I downloaded Lastest Xerces 
>>1.4.3
>>since older Xerces were creating problems. I put the latest Xerces.jar 
>>file
>>in mycontext/WEB-INF/lib. Now these Xml files are read by utility classes
>>in
>>a InitServlet to initialize some properties read from XML file. Till this
>>everything is working fine. No Exception.
>>  Then I try to access my context containing index.jsp
>>then it gives me the following error.
>>
>>
>>A Servlet Exception Has Occurred
>>Exception Report:
>>org.apache.jasper.JasperException: Unable to compile class for JSP
>>  at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
>>  at
>>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown
>>Source)
>>  at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
>>Source)
>>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>>  at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>  at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
>>  at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown
>>Source)
>>  at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
>>  at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
>>  at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
>>  at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>  at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
>>Source)
>>  at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>>  at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
>>Source)
>>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
>>Source)
>>  at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
>>  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>>  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>>  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>>  at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
>>  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>>  at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
>>  at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>>  at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>>  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>>  at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
>>  at org.apache.catalina.core.StandardHostV

Re: Unable to compile JSPs in Tomcat 4

2001-10-04 Thread Jiger Java

Hi all,
   Ok so finally I have been able to solve my Tomcat Problem. I am 
writing this for others to not waste 2 days in future.The Problem was 
related to Class Loading. Although I was setting javax.xml.parsers.* 
properties in catalina.bat & my Utilities were working irrespetive of this 
setting(because I have them set using System.setProperty in those classes 
itself. The main problem was related to the way Jasper loads the Xml Parser 
to parse JSPs.
  I followed the instructions of using various XML parser in Tomcat4 & lo & 
behold eveything worked nicely incl. Apache SOAP which is notoriouse of 
working only with old xerces parser i.e xerces 1.2 or before.


Bye,
Jiger



>From: "Jiger Java" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Unable to compile JSPs in Tomcat 4
>Date: Wed, 03 Oct 2001 18:39:14 +0530
>
>Hi Friends,
>I am working on Tomcat 4 Final Release. The scenerio is like
>this.
>  I am using XML Schema instead of DTD so I downloaded Lastest Xerces 1.4.3
>since older Xerces were creating problems. I put the latest Xerces.jar file
>in mycontext/WEB-INF/lib. Now these Xml files are read by utility classes 
>in
>a InitServlet to initialize some properties read from XML file. Till this
>everything is working fine. No Exception.
>  Then I try to access my context containing index.jsp
>then it gives me the following error.
>
>
>A Servlet Exception Has Occurred
>Exception Report:
>org.apache.jasper.JasperException: Unable to compile class for JSP
>   at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown
>Source)
>   at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
>Source)
>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
>   at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown 
>Source)
>   at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
>   at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
>   at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
>   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
>Source)
>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
>Source)
>   at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown 
>Source)
>   at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>   at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>   at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>   at org.apache.catalina.connector.http.HttpProcessor.process(Un

Unable to compile JSPs in Tomcat 4

2001-10-03 Thread Jiger Java

Hi Friends,
I am working on Tomcat 4 Final Release. The scenerio is like 
this.
  I am using XML Schema instead of DTD so I downloaded Lastest Xerces 1.4.3 
since older Xerces were creating problems. I put the latest Xerces.jar file 
in mycontext/WEB-INF/lib. Now these Xml files are read by utility classes in 
a InitServlet to initialize some properties read from XML file. Till this 
everything is working fine. No Exception.
  Then I try to access my context containing index.jsp
then it gives me the following error.


A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown 
Source)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Source)
at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:539)

Root Cause:
java.lang.ClassCastException: 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:116)
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(Unknown Source)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(Unknown Source)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(Unknown Source)
at 
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(Unknown 
Source)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Unknown 
Source)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(Unknown 
Source)
at org.apache.jasper.compiler.Parser$Directive.accept(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)

Re: Tomcat 4 and Log4J

2001-09-17 Thread Jiger Java

Hi Craig,
  Things are working now. What I did was to put log4j.properties in 
WEB-INF/classes & log4j.jar in WEB-INF/lib. But as u will agree this is not 
optimum since I will then have to put log4j.jar in all WEbapps. So I moved 
log4j.jar into common/lib then problems start. If I put log4j.jar in 
$CATALINA_HOME/lib & log4j.properties in $CATALINA_HOME/classes then also it 
works but then now my log4j.properties is shared across all webapps & I cant 
have individual .properties files. Any idea how I can have one log4j.jar but 
individual log4j.properties per webapp. No putting log4j.jar in common/lib & 
.properties in WEB-INF/classes does not work.

Awating ur reply,
Thanks,
Jiger


>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Tomcat 4 and Log4J
>Date: Mon, 17

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




Reg: Tomcat -Service Problem?????

2001-09-17 Thread JAVA TEAM

HI

We are using Apache/Tomcat servers for JSP Development. We have Installed tomcat as NT 
Service.
After Starting the Tomcat & Apache Services there are two processes available in 
TaskManager/Process option.
First one is java.exe , Another one is jk_nt_service.exe. The JSP application contains 
around 1500 pages.
The java.exe memory get increased near 300 MB. Even though not decreased No one 
accessing the page.
Please tell the reason where could be the problem cause?. This is Urgent One. Reply 
the solution as soon as possible.



Regards

VELMURGAN P
JAVA TEAM.





Tomcat 4 and Log4J

2001-09-17 Thread Jiger Java

Hi Friends,
I testing Log4j with Tomcat4 RC2. I copied log4j.properties & 
log4j.jar to common/lib. But still I get the following error of Log4j.

log4j:ERROR No appenders could be found for category 
(com.comp.anacreon.utils.MySoapCallerBean).
log4j:ERROR Please initialize the log4j system properly.

I tried various combinations with regards the placing of log4j.properties 
file & log4j.jar file in other words I tried putting them in common/lib, 
mywebapp/lib, set it in the Catalina.bat's classpath, jdk/jre/lib/ext & 
where not. But still no luck. Can anyone explain where do I now put it to 
make the things work.
  I have the old Tomcat 3.2.3 working with log4j perfectly but this problem 
came when I ported my webapp to Tomcat 4.

Awaiting your reply,
Thanking you,
Jiger


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




Re: Tomcat 4 RC 2 doubts

2001-09-16 Thread Jiger Java


>From: Pier Fumagalli <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: Tomcat 4 RC 2 doubts
>Date: Sun, 16 Sep 2001 14:25:41 +0100
>
>"Jiger Java" <[EMAIL PROTECTED]> wrote:
>
> > 1. Since Tomcat 4 uses its own Classloaders it does not recognise the 
>JDK
> > CLASSPATH variable.Now what do I do if I want a set of libraries which I
> > have installed in JDK(set in CLASSPATH variable) & also to be used by
> > tomcat. Putting things in two places wold be cumbersome.Dont youall feel 
>so.
>
>Nope, I don't... If in Java2 you are using a "classpath", you are, IMHO,
>wrong... Libraries required by the JDK, if shared by multiple stuff should
>be in JAVA_HOME/jre/lib/ext...

  I know that Java2 onwards CLASSPATH var. has been depre. & prefered way is 
to put jars in lib/ext dir of JDK installation. But many times the System 
Classloader does not load it properly.I dont know why but thats true. It is 
better to rely on tried & tested CLASSPATH thingi then on experimental 
lib/ext one.

>
> > 2. If I try to add CLASSPATH in the catalina.bat file along with its
> > CLASSPATH then TOmcat starts giving out strange errors. For e.g In my 
>app I
> > was using Custom Tags & appending the classpath in catalina gave me
> > NoClassDefFound for TagSupport class of JSP when the Sample Custom Tag
> > example worked normally. How do I integrate JDK classpath with Tomcat
> > CLASSPATH without any hitches.
>
>I don't think you can... The layerization of the class loaders was made
>exactly to prevent that... Either put your CLASSPATH jars in the JDK
>classpath (JAVA_HOME/jre/lib/ext), or in the Catalina extension
>(CATALINA_HOME/lib).
>
> > 3. I am believing that Tomcat no longer allows extraced classes in the 
>lib
> > dir. only .jars are allowed & all non-jars libraries should be kept in
> > classes dir. but this is very non-intutive coz it confuses us with 
>servlets
> > & libraries. Should the pre-Tomcat 4 standard of keeping non-jars in lib 
>&
> > then brought into CLASSPATH in tomcat.bat/catalina.bat work. Any 
>specific
> > reasons.
>
>It is documented. Relying on CLASSPATH after JDK 1.2 came out is WRONG.
>Tomcat 3.x does it because it maintains compatibility with JDK 1.1, but
>since in JDK 1.2 the wonderful world of classloaders got a nicer and more
>secure, relying still on the deprecated CLASSPATH variable would be stupid.
>
> > THere are many more doubts guys but please enlighten me with these 
>atleast.
>
>I hope they're not an environment variables :)
Dont worry they wont be abt them. Unless Tomcat creates some prob. inspite 
of not using them.!! :)
>
> Pier
>


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




Tomcat 4 RC 2 doubts

2001-09-15 Thread Jiger Java

Hi friends,
   This is my first mail to such a wondefull group.Well I just
downloaded Tomcat Rc2 (and tried to convince my boss to use it).
But frankly speaking I found some weird diffiulty installing Rc1 & Rc2.
Now I understand that Tomcat 4 has a major architecture changes like
Custom Classloaders & places to store jar files etc.
But I have some queries hope I will be guided properly.
Doubt No.
1. Since Tomcat 4 uses its own Classloaders it does not recognise the JDK
CLASSPATH variable.Now what do I do if I want a set of libraries which I
have installed in JDK(set in CLASSPATH variable) & also to be used by
tomcat. Putting things in two places wold be cumbersome.Dont youall feel so.
2. If I try to add CLASSPATH in the catalina.bat file along with its
CLASSPATH then TOmcat starts giving out strange errors. For e.g In my app I
was using Custom Tags & appending the classpath in catalina gave me
NoClassDefFound for TagSupport class of JSP when the Sample Custom Tag
example worked normally. How do I integrate JDK classpath with Tomcat
CLASSPATH without any hitches.
3. I am believing that Tomcat no longer allows extraced classes in the lib
dir. only .jars are allowed & all non-jars libraries should be kept in
classes dir. but this is very non-intutive coz it confuses us with servlets
& libraries. Should the pre-Tomcat 4 standard of keeping non-jars in lib &
then brought into CLASSPATH in tomcat.bat/catalina.bat work. Any specific
reasons.

THere are many more doubts guys but please enlighten me with these atleast.

Keep up the good work.
Thanks,
Jiger


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




Re: Tomcat, Apache: JSP source code showed instead of generated HTML

2001-08-29 Thread Gero Vermaas - Sun Holland - Sun Java Centre - Java Consultant
gt;> >>
>> >>###
>> >># SSL configuration   #
>> >># 
>> >># By default mod_jk is configured to collect SSL information from
>> >># the apache environment and send it to the Tomcat workers. The
>> >># problem is that there are many SSL solutions for Apache and as
>> >># a result the environment variable names may change.
>> >>#
>> >># The following (commented out) JK related SSL configureation
>> >># can be used to customize mod_jk?s SSL behaviour.
>> >># 
>> >># Should mod_jk send SSL information to Tomact (default is On)
>> >># JkExtractSSL Off
>> >># 
>> >># What is the indicator for SSL (default is HTTPS)
>> >># JkHTTPSIndicator HTTPS
>> >># 
>> >># What is the indicator for SSL session (default is SSL_SESSION_ID)
>> >># JkSESSIONIndicator SSL_SESSION_ID
>> >># 
>> >># What is the indicator for client SSL cipher suit (default is
>> >>SSL_CIPHER)
>> >># JkCIPHERIndicator SSL_CIPHER
>> >># 
>> >># What is the indicator for the client SSL certificated (default is
>> >>SSL_CLIENT_CERT)
>> >># JkCERTSIndicator SSL_CLIENT_CERT
>> >># 
>> >># #
>> >>###
>> >>
>> >>#
>> >># Root context mounts for Tomcat
>> >>#
>> >>JkMount /*.jsp ajp12
>> >>JkMount /servlet/* ajp12
>> >>
>> >>#
>> >># Auto configuration for the /examples context starts.
>> >>#
>> >>
>> >>#
>> >># The following line makes apache aware of the location of the /examples
>> >>context
>> >>#
>> >>Alias /examples ?/opt/jakarta-tomcat-3.2.3/webapps/examples?
>> >>
>> >>Options Indexes FollowSymLinks
>> >>
>> >>
>> >>#
>> >># The following line mounts all JSP files and the /servlet/ uri to
>> >>tomcat
>> >>#
>> >>JkMount /examples/servlet/* ajp12
>> >>JkMount /examples/*.jsp ajp12
>> >>
>> >>#
>> >># The following line prohibits users from directly access WEB-INF
>> >>#
>> >>
>> >>AllowOverride None
>> >>deny from all
>> >>
>> >>
>> >>###
>> >># Auto configuration for the /examples context ends.
>> >>###
>> >>
>> >>#
>> >># Auto configuration for the /admin context starts.
>> >>#
>> >>
>> >>#
>> >># The following line makes apache aware of the location of the /admin
>> >>context
>> >>#
>> >>Alias /admin ?/opt/jakarta-tomcat-3.2.3/webapps/admin?
>> >>
>> >>Options Indexes FollowSymLinks
>> >>
>> >>
>> >>#
>> >># The following line mounts all JSP files and the /servlet/ uri to
>> >>tomcat
>> >>#
>> >>JkMount /admin/servlet/* ajp12
>> >>JkMount /admin/*.jsp ajp12
>> >>
>> >>#
>> >># The following line prohibits users from directly access WEB-INF_#
>> >>
>> >>AllowOverride None
>> >>deny from all
>> >>
>> >>
>> >>###
>> >># Auto configuration for the /admin context ends.
>> >>###
>> >>
>> >>#
>> >># Auto configuration for the /test context starts.
>> >>#
>> >>
>> >>#
>> >># The following line makes apache aware of the location of the /test
>> >>context
>> >>#
>> >>Alias /test ?/opt/jakarta-tomcat-3.2.3/webapps/test?
>> >>
>> >>Options In

Apache+Tomcat+SSL+IE5.5

2001-08-13 Thread java

Hi,
I have a web server with Apache (with SSL) + Tomcat (with ajp13)
Tomcat don't have a HTTP connector.
My application only use JSP-servlets(no static page).
It work perfectly with IE5.0 , Netscape 4 or Netscape 6
When I use IE5.5 to connect to my apache i have this message from IE :
(i have a french message, so it is my translation )

"this page have secure elements and non-secure elements

Would you like view the non-secure elements ?"

It's just a warning message but I would like to know if :

 _ IE5.5 is right (they are non-secured element in my JSP pages) or if
it is a bug.
 How to be sure ?

 _ if yes, Does It mean apache-SSL don't crypt my tomcat's JSP. (i have
the same message when i use ajp12 or ajp13 )

Thanks in advance
Fred





Réf. : JkMount instruction

2001-07-25 Thread java



"ApJServMount /something ajpv12://localhost:9500/something"

With JkMount :

in mod_jk :

JkMount /something/* ajp13


in workers.properties :

worker.ajp13.port=9500
worker.ajp13.host=localhost
worker.ajp13.type=ajp13




Réf. : RE: Dynamically Generate PDF

2001-07-25 Thread java


We are using  http://www.lowagie.com/iText/ and it work great !






> I've tried to do this with jsp (without succes), but with a
> servlet it can be done quite easy:
>Use tex->dvi->ps->pdf (where tex is a TeX document, (LaTeX))
>(maybe it can be done even easier...)
> If someone knows how i could do this with jsp, (read tex with
> taglibs) i'm eager to know it)
>

This is a restrictive option.  It's much better to use one of the
many XML/XSL based packages and generate from there.  In this way
you can extend the document definitions as needed which with TeX/LaTeX
is possible but not the preferable solution in my book.

Commercial
--
PageLayout - http://www.sitraka.com

Open Source
---
iText - http://www.lowagie.com/iText/
FOP - http://www.xml.apache.org

Other
-
General Info/Links - http://www.planetpdf.com/mainpage.asp?WebPageID=450









RE:

2001-07-19 Thread Java Junkie

Thank you for your response. I am now getting this
error when it tries to start:

cannot load servlet name: XX

Any suggestions?

Thnx!


--- Saritha Pula <[EMAIL PROTECTED]> wrote:
> hi 
>   Load on start up is basically to load the class
> files once u start the
> tomcat ..
> 1 1 is order in
> which class files to
> be loaded 
> --saritha
> 
> 
> -Original Message-
> From: Java Junkie [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 19, 2001 5:02 PM
> To: [EMAIL PROTECTED]
> Subject: RE: 
> 
> 
> I couldn't quite follow how the document said to
> implement this. Could you help me with this code
> snippet?
> 
> Thnx!
> 
> 
>   
>   GeneConnectionPool
>   
>   
>   gene.connection.GeneConnectionPool
>   
>   
>   connections
>   2
>   
>   
>   1
>   
> 
> --- William Kaufman <[EMAIL PROTECTED]> wrote:
> > I'm not sure I understand what you're trying to
> > accomplish, but the JSDK
> > explains how to use .  Look at
> the
> > JSDK spec, at,
> > 
> >  
> http://java.sun.com/products/servlet/download.html
> > 
> > or web.dtd, at,
> > 
> >   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
> > 
> > 
> > -- Bill K.
> 
> > 
> > > -Original Message-
> > > From: Java Junkie [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, July 19, 2001 3:23 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: 
> > > 
> > > 
> > > Hello,
> > > I am trying to create a pooled resource. I am
> > doing
> > > this by loading a wrapper class on startup that
> > will
> > > recieve two parameters and manage the resources
> > based
> > > on those parameters. I do not know the exact
> > syntax
> > > for using the  tag. Could
> someone
> > > please help?!
> > > 
> > > Thank you.
> > > 
> > >
> __
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo!
> Mail
> > > http://personal.mail.yahoo.com/
> > > 
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE:

2001-07-19 Thread Java Junkie

I couldn't quite follow how the document said to
implement this. Could you help me with this code
snippet?

Thnx!



GeneConnectionPool


gene.connection.GeneConnectionPool


connections
2


1


--- William Kaufman <[EMAIL PROTECTED]> wrote:
> I'm not sure I understand what you're trying to
> accomplish, but the JSDK
> explains how to use .  Look at the
> JSDK spec, at,
> 
>   http://java.sun.com/products/servlet/download.html
> 
> or web.dtd, at,
> 
>   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
> 
> 
> -- Bill K. 
> 
> > -Original Message-
> > From: Java Junkie [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 19, 2001 3:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: 
> > 
> > 
> > Hello,
> > I am trying to create a pooled resource. I am
> doing
> > this by loading a wrapper class on startup that
> will
> > recieve two parameters and manage the resources
> based
> > on those parameters. I do not know the exact
> syntax
> > for using the  tag. Could someone
> > please help?!
> > 
> > Thank you.
> > 
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> > 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



tomcat-user@jakarta.apache.org

2001-07-19 Thread Java Junkie

Hello,
I am trying to create a pooled resource. I am doing
this by loading a wrapper class on startup that will
recieve two parameters and manage the resources based
on those parameters. I do not know the exact syntax
for using the  tag. Could someone
please help?!

Thank you.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



TOMCATs SERVLET-Reload

2001-07-04 Thread java . harjes

Hi

It's confusing

I'm working with TOMCAT 3.2.1 an a LINUX machine. In the TOMCAT -
configuration-files I switched on the automatic reload of servlets, if they
were
changed. Why does it happen that sometimes the reload is done and sometimes
not???

Is there anyone who has an explanation or an idea?

Thanks
Jens






-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a




SERVLET-Reload

2001-07-02 Thread java . harjes

Hi

It's confusing

I'm working with TOMCAT 3.2.1 an a LINUX machine. In the TOMCAT -
configuration-files I switched on the automatic reload of servlets, if they were
changed. Why does it happen that sometimes the reload is done and sometimes not???

Is there anyone who has an explanation or an idea?

Thanks
Jens


-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a




Please Help: Setting up virtual hosting

2001-06-29 Thread Java Developer

Hello All,

It is quite a few days that I am spending on tomcat virtual hosting on
RedHat Linux 7.1 and it is not still working. Where do you think I can get 
the latest information on How to setup virtual hosting for tomcat?

Please help
Thanks
java developer in crisis

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




Re: hotspot jvm crashes in production

2001-05-07 Thread Java Poop

Where do I set the -client option?

JP

- Original Message -
From: "Thomas Bezdicek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 1:20 AM
Subject: AW: hotspot jvm crashes in production


> it is a known bug in the hotspot-engine, there are numerous articles
> about that in the bugparade.
> Workaround: use -client
>
> regards, tom
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Peter
> > Mutsaers
> > Gesendet: Donnerstag, 3. Mai 2001 23:39
> > An: [EMAIL PROTECTED]
> > Betreff: Re: hotspot jvm crashes in production
> >
> >
> > >> "Ludovic" == Ludovic Maitre <[EMAIL PROTECTED]> writes:
> >
> > Ludovic> I have the same problem with exactly the same software
> > Ludovic> configuration and i have no answer.
> >
> > Ludovic> PS : Are you using the Hotspot JVM with the -server
> > Ludovic> switch ?
> >
> > I have the same problem too, but only with the -server option.
> >
> >
> > Ludovic> Java Poop wrote:
> > >>
> > >> Hi -
> > >>
> > >> We have recently moved our production site to use JSPs with
> > >> Tomcat 3.2.1/Apache 1.3.17/Sun JDK 1.3.0/Solaris 2.6. After
> > >> running for a couple of hours, our JVM crashes with the
> > >> following error:
> > >>
> >
> > --
> > Peter Mutsaers  |  Dübendorf| UNIX - Live free or die
> > [EMAIL PROTECTED]  |  Switzerland  | Sent via FreeBSD 4.3-stable
>
>



hotspot jvm crashes in production

2001-04-28 Thread Java Poop

Hi -

We have recently moved our production site to use JSPs with Tomcat
3.2.1/Apache 1.3.17/Sun JDK 1.3.0/Solaris 2.6. After running for a couple of
hours, our JVM crashes with the following error:

An irrecoverable stack overflow has occurred.
#
# HotSpot Virtual Machine Error, Unexpected Signal 11
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F534F4C415249530E435050079A 01
#
# Problematic Thread: prio=5 tid=0x2149d0 nid=0x25 runnable

Has anyone seen similiar problems? Is there anything in the settings we
could set to avoid this?

jp



TOMCAT and APACHE

2001-04-27 Thread java . harjes

Hi experts,

I have some problems in integrating TOMCAT and APACHE like it is described
in your "Minimalistic User's Guide".

My Apache Webserver Version 1.3.14-6 is running on a SUSE 7.1 - LINUX
machine and it works fine for itself.
The Tomcat Version is 3.1-70 and also this application works fine as a
stand-alone server, i.e. I get contact to the servlets via the 8080 port.

Now I tried to integrate both components:

  (1) I appended the /conf/tomcat-apache.conf to the httpd.conf

   A restart of the httpd failed, the error log said that the
mod_jserv.so couldn't be found in the directory: /usr/local/httpd/libexec

   There was indeed no such directory!?
  (2) So I created it and copied the existing mod_jserv.so - file from the
directory /usr/lib/apache to /usr/local/httpd/libexec

   A restart of the httpd was now successfull but the apache webserver
didn't answer on requests !?
   The error-log file said:

   [Fri Apr 20 19:14:02 2001] [emerg] JServ: Error setting defaults:
ApJServLogFile: file '/usr/local/httpd/./logs/mod_jserv.log' can't be opened
   [Fri Apr 20 19:14:02 2001] [crit] (2)No such file or directory:
Apache JServ encountered a fatal error; check your ApJServLogFile for
details if none are present in this file.  Exiting.

  (3) Following chapter "Obtaining the Jserv Module" in your "Minimalistic
User's Guide"  I downloaded the tomcat source jakarta-tomcat-3.1.1-src
   and executed the build command apxs -c -o mod_jserv.so *.c.

   The building of mod_jserv.so was no problem and successfully.

   Then I copied the new mod_jserv.so - file to /usr/local/httpd/libexec

   A restart of the httpd was again successfull but the apache webserver
didn't answer on requests again!?
   The error-log file said the same:

   [Fri Apr 20 19:14:02 2001] [emerg] JServ: Error setting defaults:
ApJServLogFile: file '/usr/local/httpd/./logs/mod_jserv.log' can't be opened
   [Fri Apr 20 19:14:02 2001] [crit] (2)No such file or directory:
Apache JServ encountered a fatal error; check your ApJServLogFile for
details if none are present in this file.  Exiting.



What shall I do?
I hope you can help me


Thanks a lot
J. Harjes


-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




Re: getResourceAsStream - properties files

2001-03-31 Thread Java Poop

Craig -

I think I found a way to make it work ---

InputStream stream =
Thread.currentThread().getContextClassLoader().getResourceAsStream("myApp.pr
operties");

That loaded my file from %TOMCAT_HOME%/lib directory. Should I be concerned
about portability? Will this work in the Tomcat 4.0 world?

thanx,
JP

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 31, 2001 8:59 PM
Subject: Re: getResourceAsStream - properties files


>
>
> On Sat, 31 Mar 2001, Java Poop wrote:
>
> > Hey guys-
> >
> > I'm trying to figure out way to separate my initialization parameters
> > from my application.war file. Because certain things are different
> > between dev, qa and live machines (such as database hostname,
> > username, password, etcs), I rather not put these values in the
> > web.xml file. (The web.xml would be stuck in the application.war file
> > and I don't want the deployment people to unjar it in a deployment
> > setting to change the values of web.xml).
> >
> > So, I'm looking at trying to setup my own properties file that a
> > singleton class would read in my web application and set as global
> > variables for all my servlets/jsps. However, I'm having trouble
> > writing the code to open up the properties file. I'd like to put the
> > properties file in %TOMCAT_HOME%/settings directory (I made this
> > directory up and added it to the classpath in my tomcat.bat file).
> >
> > >From some previous posts on this list, I'm trying :
> >
> > InputStream stream =
> > this.getClass().getResourceAsStream("testApp.properties");
> >
>
> This is supposed to work if you store the testApp.properties file in
> WEB-INF/classes, *and* your servlet class itself was loaded from either
> WEB-INF/classes or WEB-INF/lib.
>
> > But it fails. If I use a File stream and point right at the file, it
> > does load. Just as a test, I tried copying this file to the same
> > location where the class was, as well as myapplication/WEB-INF/classes
> > and myapplication/WEB-INF/lib, and still could not get the file
> > loaded.
> >
> > What would be the proper way to have this loaded (preferably in the
> > settings directory since I can't rely on my war file being unjar'd by
> > future tomcats).
> >
> > BTW- I'm using Tomcat 3.2.1 in Standalone, Win2K, JDK1.3.
> >
> > Thanks in advance, JP
> >
>
> What I do for things like this is to put configuration files like this in
> the WEB-INF directory of my webapp.  Then, I can call:
>
>   InputStream is =
>
getServletContext().getResourceAsStream("/WEB-INF/testApp.properties");
>
> which will work when the WAR is either packed or unpacked.
>
> Craig McClanahan
>
>
>



Re: getResourceAsStream - properties files

2001-03-31 Thread Java Poop

Craig - Thanks for the quick response..:)

I tried to follow what you suggested, but, neither suggestion worked. See
body of email for more details...

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 31, 2001 8:59 PM
Subject: Re: getResourceAsStream - properties files


>
>
> On Sat, 31 Mar 2001, Java Poop wrote:
>



> >
> > InputStream stream =
> > this.getClass().getResourceAsStream("testApp.properties");
> >
>
> This is supposed to work if you store the testApp.properties file in
> WEB-INF/classes, *and* your servlet class itself was loaded from either
> WEB-INF/classes or WEB-INF/lib.


I'm trying this from within a simple class (which extends, implements
nothing) that I'm instantiating from a servlet. The class file is in the
/classes directory (although it is in a package --- com.company.blah). I
tried putting the properties file in the classes, lib and the actual
directory where the class is... but nothing works. I get a null stream.



>
> What I do for things like this is to put configuration files like this in
> the WEB-INF directory of my webapp.  Then, I can call:
>
>   InputStream is =
>
getServletContext().getResourceAsStream("/WEB-INF/testApp.properties");
>
> which will work when the WAR is either packed or unpacked.

So you are saying that I should put a war file in the webapps directory,
plus create a directory with the same name of the webapp and put the
properties file into the WEB-INF directory? ie, so my directory listing
would look like:

/webapps/myapp.war
/webapps/myapp/WEB-INF/myApp.properties

If myapp.war also contained myApp.properties, wouldn't the war file get
un'jard by tomcat and then overrite my file? (I would like to put a default
properties in my war file in case someone has not setup a properties file.)

Also, from within a class instantiated by the servlet, can I call
getServletContext()? Do I need to pass it in?  If this class were to
eventually become a bean or taglib, what do you suggest for handling
configuration file loading.

Thanks in advance,
JP


>
> Craig McClanahan
>
>
>



getResourceAsStream - properties files

2001-03-31 Thread Java Poop



Hey guys-
 
I'm trying to figure out way to separate my 
initialization parameters from my application.war file. Because certain things 
are different between dev, qa and live machines (such as database hostname, 
username, password, etcs), I rather not put these values in the web.xml file. 
(The web.xml would be stuck in the application.war file and I don't want the 
deployment people to unjar it in a deployment setting to change the values of 
web.xml).
 
So, I'm looking at trying to setup my own 
properties file that a singleton class would read in my web application and set 
as global variables for all my servlets/jsps. However, I'm having trouble 
writing the code to open up the properties file. I'd like to put the properties 
file in %TOMCAT_HOME%/settings directory (I made this directory up and added it 
to the classpath in my tomcat.bat file).
 
From some previous posts on this list, I'm trying 
:
 
InputStream stream = 
this.getClass().getResourceAsStream("testApp.properties");
But it fails. If I use a File stream and point 
right at the file, it does load. Just as a test, I tried copying this file to 
the same location where the class was, as well as myapplication/WEB-INF/classes 
and myapplication/WEB-INF/lib, and still could not get the file 
loaded.
 
What would be the proper way to have this loaded 
(preferably in the settings directory since I can't rely on my war file being 
unjar'd by future tomcats).
 
BTW- I'm using Tomcat 3.2.1 in Standalone, Win2K, 
JDK1.3.
 
Thanks in advance,
JP


Re: Poolman and jmx error

2001-03-26 Thread Java Poop

I am having the same problem. I emailed the author of PoolMan last night,
but, he has not responded yet.

BTW, what database are you using?

JP

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 3:23 AM
Subject: Poolman and jmx error


> Hi,
>
> I am trying to integrate PoolMan (http://www.codestudio.com/PoolMan/) with
> TomCat. I am using NT 4.0/SP6 and TomCat 3.2.1 standalone (JDK 1.3.0_02).
I
> installed the product as documented. The Poolman and JMX jars are in the
> classpath (in tomcat/lib directory). When I load the administration page
> (http://localhost:8080/poolman/) TomCat console prints the following error
> message:
>
> March 26, 2001 2:11:39 PM GMT+03:00: MyPool received null value for log
file, using System.out
> March 26, 2001 2:11:39 PM GMT+03:00: JDBCPool: No JNDI name specified, not
binding to Naming
> javax.management.RuntimeErrorException: Error thrown in operation start
> at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1642)
> at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
com.codestudio.management.PoolManConfigurator.loadConfiguration(PoolManConfi
gurator.java:138)
> at java.lang.reflect.Method.invoke(Native Method)
> at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
com.codestudio.management.PoolManBootstrap.(PoolManBootstrap.java:113)
> at
com.codestudio.util.SQLManager.assertLoaded(SQLManager.java:100)
> at
com.codestudio.util.SQLManager.getAllPoolnames(SQLManager.java:137)
> at com.codestudio.util.SQLUtil.getAllPoolnames(SQLUtil.java:193)
> at
com.codestudio.util.PoolManBean.getAllPoolnames(PoolManBean.java:90)
> at
_0002fPoolMan_0002ejspPoolMan_jsp_0._jspService(_0002fPoolMan_0002ejspPoolMa
n_jsp_0.java:109)
> 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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
> at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
> Has anybody using PoolMan received this error? If so, what is the
solution?
>
> Thanks in advance.
>
>
>
>



Re: Caching a servlet? Sessions in IE?

2001-03-25 Thread Java Poop

Have you tried setting the cache and expire headers?

Try addding:

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy
server

JP

- Original Message -
From: "A Yang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 25, 2001 8:50 PM
Subject: Caching a servlet? Sessions in IE?


> Hi,
>
> This is a weird one that we can only reproduce in IE.
> Netscape works fine. I'm using Tomcat 3.2.1 with
> Apache via mod_jk.
>
> I have a "Main Menu" servlet that forwards the user
> through a series of JSP/servlet sequences based on a
> parameter that identifies which "item" was selected in
> the Main Menu.
>
> The problem is that when the user finishes one path,
> and is sent back into the Main Menu servlet with
> another parameter (i.e., option 2 after completing
> option 1), it looks like the Main Menu servlet has
> been cached! I have guardian log messages set at the
> beginning of the doPost and doGet methods but they
> don't get called. Instead, the user simply re-enters
> the path they have just completed.
>
> Even if I remove all attributes and invalidate the
> session before going back to the Main Menu servlet, it
> still continues down the already-travelled path.
>
> Has anyone seen this behaviour before? Sessions seem
> to hang around regardless of whether it's been
> invalidated or not.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> ___
> Do You Yahoo!?
> Get your free @yahoo.ca address at http://mail.yahoo.ca
>



Context Help

2001-01-30 Thread Java Softech Pvt Ltd

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]




RE: Virtual Hosting

2001-01-30 Thread Java Softech Pvt Ltd

Can anyone please help me on how to setup contexts 

  for ex:  http://localhost:8080/tcp

 and please also kindly me know the username and password for the 
http://localhost:8080/admin page or is there any alternative for the 
above.



Raj.



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




URL rewriting in Tomcat

2001-01-29 Thread java



I'm writing a 
servlet that uses session tracking with URL rewriting (noCookies="true"). I'm 
using Tomcat 3.2.1.
When the servlet is 
located in webapps/Root/Web-inf/classes, it works fine, and the URLs are 
rewritten with the appropriate session ID, but when the servlet is located 
in another folder under the webapps folder (webapps/<>/Web-inf/classes), the session ID is not added to the 
URLs.
I suppose it has 
something to do with web application configuration (in the "/conf" folder 
perhaps?) but I couldn't find how to make it work in another web application 
other than the default.
Any ideas 
anyone?
 


http://javaboard.cjb.net/

2001-01-26 Thread Java Forum Administrator



 

http://javaboard.cjb.net/ 
Are you stumped? Have you got a question about Java programming that you 
need answered? You're not alone. You may even be asking yourself some of the 
same questions that have confused and baffled other Java programmers. Here are a 
selection of common questions and their answers (sorted by date, so most recent 
is at the bottom of the page). Check here regularly for newly posted answers, or 
be notified automatically by email when someone replies to your post. 
Visit and Register
http://javaboard.cjb.net/


Re: Upload problem: bug at Multipartrequest when deals with mixed parameters types

2000-12-29 Thread java-server-feedback

Thank you for your feedback.  Your feedback will be read by an
engineer in the JavaServer Team, and entered into our system as a bug
or feature request, if appropriate.  We do not perform sales or
technical support from this address.  This is worth repeating:  you
will not receive any additional mail from this address, unless we have
questions on how to reproduce your bug, or implement your feature. 
Please contact one of our other support channels (below) if you
require support.

For information on running servlets in any webserver, check here:

http://jserv.javasoft.com/products/java-server/servlets/environments.html

For answers to commonly asked questions, check here:

http://jserv.javasoft.com/products/java-server/faq/webserver.html

To place your bug report directly into our database, you may
enter your bug here:
http://java.sun.com/cgi-bin/bugreport.cgi

For licensing, sales and schedule information, please contact
1-888-THEJAVA. If outside the US, please dial 1-(512)434-1591

You may directly purchase the JavaWebServer from Javasoft's main
website http://www.javasoft.com/

If you have purchased a JavaServer product and require technical
support, please contact 407-531-4475.

For more discussion of the JavaWebServer, and other JavaServer
products, please consider joining the Jserv-Interest mailling list. 

You may subscribe to the mailing list by sending an email to:

[EMAIL PROTECTED]

with the _body_ of the message containing the line

SUBSCRIBE JSERV-INTEREST Full-Name-Here

where Full-Name-Here is your name.

There is an additional mailing list solely for Apache JSDK issues -
further information on this list can be found at
http://java.apache.org/

If being on a mailing list is not something you wish to do, you may
also discuss the JavaWebServer on the Usenet newsgroup
comp.infosystems.www.servers.misc.

Discussions of programming Java Servlets, and server side programming
in general, are carried out on the Usenet newsgroup
comp.lang.java.programmer.


Thank you for your time and input.

Jim Driscoll
JavaSoft 


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




RE: tomcat on IIS4/NT4.0 deployment Problem take 2 - anyone ??

2000-11-01 Thread java


hi, 

http://localhost:8080/examples/servlet/HelloWorldExample  works  :)
But
http://localhost/examples/servlet/HelloWorldExample  Not :(


In isapi.log I get
..
[jk_isapi_plugin.c (439)]: HttpFilterProc
[/examples/servlet/HelloWorldExample] is a servlet url - should redirect to
ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/servlet/HelloWorldExample] is points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/servlet/HelloWorldExample
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
...
any ideas ??
where  do I go from here??

thanks , Alon, [EMAIL PROTECTED]



iis and tomcat

2000-10-22 Thread java . mail

does anyone know h