How can I make the servlet mapping of Tomcat work with Apache http server?

2001-07-18 Thread Youzhi Fan

I read Craig R. McClanahan's article "Developing
Applications With Tomcat" coming with Tomcat. The
article gives a sample application also coming with
Tomcat. The sample application uses a servlet mapping.
The servlet mapping works fine with Tomcat. But it
does not work when I use Apache http server with
Tomcat together. Anybody can try it which is used at
the link of a html file to a servlet. Author seggests
me to get help at here. web.xml, httpd.conf, and
tomcat-apache.conf are attached. Can anyone give me a
hand? Your assistance is appreciated.

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

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



Hello, World Application

	This is a simple web application with a source code organization
	based on the recommendations of the Application Developer's Guide.



HelloServlet
Hello



HelloServlet
/hello

	


 tomcat-apache.conf
 httpd.conf


Re: Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!

2001-07-18 Thread Jeff Hoare

Hi,
I don't know if you have came across this or not but in the tomcat directory 
src/connectors/doc there is a warp.html page, as well as an apache1.3.html 
that may help. So how did u get the mod_webapps.so library to work. Whenever, 
I build and try to run it I get a pthread_sigmask unresolved symbol error?
I'd appreciate any help

Jeff
On Thursday 19 July 2001 05:41, you wrote:
> Help!  I didn't get any response to my first query, and am running into
> a solid wall, so I'll try again...
>
> Is ANYBODY successfully using Tomcat 4.0b5 with Apache and mod_webapps??
> If so, can you send me your httpd.conf and server.xml (and anything else
> that might be useful) ??  I'd be happy just to get the examples working
> through Apache!!
>
> We can't get JSP's to work thorough a Warp connector to Apache.  They work
> fine through port 8080 and Catalina's built-in web server, but not through
> Apache.
>
> I can't find any online help for getting mod_webapps to work,
> other than comments in the code.  The first sections of the Tomcat 4.x
> documentation on Installation are BLANK.
>
> By hook or by crook, we have gotten Apache and Tomcat running with
> mod_webapps and are able to serve static content through the Tomcat default
> servlet, but JSP's DON'T WORK!!
>
> When a browser requests a JSP page, the java source is built and compiled
> (the files built are identical to those built when the page is requested
> through port 8080) - but Apache hands nothing back to the web browser -
> Netscape displays a
>
> "Document contains no data"
>
> dialog.
>
> Any help or ideas would be appreciated.  Apache and Tomcat log files show
> no error messages or  unusual content.
>
> Thanks,
> Mark
>
> --
> Mark Dzmura
> Digital Mission LLC



RE: JDBCRealm Errors with Tomcat/4.0-b5

2001-07-18 Thread Ken Torimaru

Ok, first one solved.
mm.mysql-2.0.4-bin.jar should be in "{$CATALINA_HOME}/server/lib" not
"{$CATALINA_HOME}/lib"

-Original Message-
From: Ken Torimaru [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 5:51 PM
To: Tomcat-User
Subject: JDBCRealm Errors with Tomcat/4.0-b5


Catalina.out
Is reporting the following error:
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: org.gjt.mm.mysql.Driver
LifecycleException:  Exception opening database connection:
java.sql.SQLException: org.gjt.mm.mysql.Driver
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:609)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
at org.apache.catalina.core.StandardService.start(StandardService.java:353)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
- Root Cause -
java.sql.SQLException: org.gjt.mm.mysql.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:529)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:607)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
at org.apache.catalina.core.StandardService.start(StandardService.java:353)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)

My Realm is setup as follows:
  

And mm.mysql-2.0.4-bin.jar is located in the lib directory.

Further, I've have a simple JSP which can access the data in question.

I've got no clue why this isn't working?

Any ideas?

Ken





Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Simon Chan

This is actually a mysql question.  What you can do as follows:

insert a row into mysql.user such that host = larry, user = root, password = 
 (you can copy from the
existing row -- localhost | root | ... )

skc

"Howler D. Wolfe" wrote:

> I've made the suggested changes and I now receive the foloowing eror:
>
> java.sql.SQLException: Invalid authorization specification: Access denied for user: 
>'root@larry' (Using password: YES)
> Here is the updated code...any more suggestions?
>
> Connection con = 
>DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=root&password=winston2644");
>
> Thanks
> John Brosan
>
> Matt Read wrote:
>
> > Your code should probably look something like this. Note there is no
> > connection between Unix account and mySql accounts.
> >
> > Connection con =
> > DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=root&password=
> > rootpassword");
> >
> > or if you're trying to log in as howler
> >
> > Connection con =
> > DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=howler&passwor
> > d=winston2644");
> >
> > Either should work as long as you're connecting from localhost.
> >
> > Matt.
> >
> >
> > - Original Message -
> > From: "Howler D. Wolfe" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: 18 July 2001 15:14
> > Subject: Re: Problems with a simple JSP and mySQL connect
> >
> >
> >> Simon,
> >>
> >> I miss read your question. The host machine is "larry" and the db
> >> account I use is "root" I hope that clarifies things.
> >>
> >> Thanks again
> >> John Brosan
> >>
> >>
> >> Simon Chan wrote:
> >>
> >>> Which machine (host) and what db account you access the database from?
> >>>
> >>> "Howler D. Wolfe" wrote:
> >>>
>  I have data in this table as follows
> 
>  HOST USER PW PRIVS (shortened to save space)
>  ---+-+---+---
>  localhost root  All are set to 'Y'
>  larry root (empty) All are set to 'Y'
>  localhost (empty) (empty) All are set to 'N'
>  larry (empty) (empty) All are set to 'N'
>  localhost howler  All are set to 'Y'
> 
>  Not sure whats going on with this or what exactly should be here.
> 
>  Any suggestions would be helpful
> 
>  Thanks
>  John Brosan
> 
>  Simon Chan wrote:
> 
> > Please check your mysql.user table to make sure that your client
> 
>  machine is in the host field.
> 
> > skc
> >
> > "Howler D. Wolfe" wrote:
> >
> >> Hello Everyone,
> >>
> >> I apologize if this has been answered in a previous post. I've
> >
>  been digging through old posts and
> 
> >> and searching on the net for an answer to this problem.
> >>
> >> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the
> >
>  latest version). I am able to
> 
> >> run the examples without a hitch. I am new to Java, JSP and MySQL,
> >
>  I have created a database with
> 
> >> two tables, when I try to use the MySQL driver to connect to the
> >
>  database I get the following error.
> 
> >> I think I get this error because I don't have a user other than
> >
>  root setup on MySQL. In my searching
> 
> >> for an answer, I read about using the URL of the MySQL db as part
> >
>  of getConnection(). I tried this
> 
> >> and it failed due to the MySQL port not being open on my firewall.
> >
>  After I opened the appropriate
> 
> >> port, I got the same error.
> >>
> >> What have I failed to do when setting up MySQL? I've installed it,
> >
>  ran the grants, I think I've done
> 
> >> what was supposed to be done.
> >>
> >> I've used the user id of "root" with the password I set for it.
> >>
> >> Partial Error Text follows:
> >> *
> >> java.sql.SQLException: Server configuration denies access to data
> >
>  source*
> 
> >> Thanks in advance
> >> John Brosan
> >
> >>> --
> >>> Simon Chan, Senior System Analyst, Rawmart.com, Inc.
> >>> 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
> >>> Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]
> >>>
> >>> http://www.rawmart.com , the next dimension in the trading of
> >>> raw materials, please register now.
> >>>
> >>> An initiative of the Noble Group.  Please visit us at
> >>> http://www.thisisnoble.com




Re: Problem with JDBCRealm, Sessions and Cookies.

2001-07-18 Thread manybooby

I just re-installed the examples to try and verify if something wierd is
going on.  In the sessions example, when I view with Mozilla or Galeon
the shopping cart does not remember the last entry.  I get no prompt for
a cookie.  (I know it is not the browsers because plenty of other sites
have no problem setting cookies)...

But when I use lynx the cookies are set and the cart works properly.  I
am not sure what is going on, but this appears to be some sort of bug.
Surely, others have had this same experience.  Anyone out there using
Mozilla???  Should I submit this as a bug?

 
On 18 Jul 2001 15:53:39 -0700, manybooby wrote:
> I just tried to login with lynx and I was startled to discover a prompt
> to set a cookie.  This is odd because whenever I try the same thing with
> either galeon or mozilla (with the cookie setting to recieve all) no
> cookie is set...  Not sure what is going on.
> 
> Any ideas?
> 
> On 18 Jul 2001 10:06:08 -0700, manybooby wrote:
> > I am having some trouble with JDBCRealm.  It loads correctly but any
> > attempt I make to login is greeted with this message on the console.
> > 
> > 2001-07-18 09:59:15 - Ctx(  ): From login without a session
> > 
> > I assumed this means I have a problem with my session and cookies.  I am
> > testing all of this with Galeon and Mozilla so I turned off the cookie
> > manager and allowed all cookies. No luck.
> > 
> > Then I wrote a test servlet with this snippet...
> > 
> > HttpSession session = request.getSession(true);
> > session.setAttribute("testObject",testObject);
> > if(session.isNew()){
> > System.out.println("User hasn't set a cookie");
> > } 
> > 
> > Still no luck. So I wrote this...
> > 
> > Cookie test = new Cookie("test", "testy");
> > test.setComment("testies");
> > response.addCookie(test);
> > 
> > Nothing works.  I don't get any prompt for a cookie and neither of my
> > browsers has any mention of a cookie.
> > 
> > I'm running tomcat3.2 on localhost:8080 with no apache and my
> > server.xml...
> > 
> >  > className="org.apache.tomcat.request.SessionInterceptor"
> > noCookies="false" />
> > 
> > Any Ideas???!!!
> > 
> > 
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



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




Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Howler D. Wolfe

I've made the suggested changes and I now receive the foloowing eror:

java.sql.SQLException: Invalid authorization specification: Access denied for user: 
'root@larry' (Using password: YES)
Here is the updated code...any more suggestions?

Connection con = 
DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=root&password=winston2644");

Thanks
John Brosan




Matt Read wrote:

> Your code should probably look something like this. Note there is no
> connection between Unix account and mySql accounts.
> 
> Connection con =
> DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=root&password=
> rootpassword");
> 
> or if you're trying to log in as howler
> 
> Connection con =
> DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=howler&passwor
> d=winston2644");
> 
> Either should work as long as you're connecting from localhost.
> 
> Matt.
> 
> 
> - Original Message -
> From: "Howler D. Wolfe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 18 July 2001 15:14
> Subject: Re: Problems with a simple JSP and mySQL connect
> 
> 
>> Simon,
>> 
>> I miss read your question. The host machine is "larry" and the db
>> account I use is "root" I hope that clarifies things.
>> 
>> Thanks again
>> John Brosan
>> 
>> 
>> Simon Chan wrote:
>> 
>>> Which machine (host) and what db account you access the database from?
>>> 
>>> "Howler D. Wolfe" wrote:
>>> 
 I have data in this table as follows
 
 HOST USER PW PRIVS (shortened to save space)
 ---+-+---+---
 localhost root  All are set to 'Y'
 larry root (empty) All are set to 'Y'
 localhost (empty) (empty) All are set to 'N'
 larry (empty) (empty) All are set to 'N'
 localhost howler  All are set to 'Y'
 
 Not sure whats going on with this or what exactly should be here.
 
 Any suggestions would be helpful
 
 Thanks
 John Brosan
 
 Simon Chan wrote:
 
> Please check your mysql.user table to make sure that your client
 
 machine is in the host field.
 
> skc
> 
> "Howler D. Wolfe" wrote:
> 
>> Hello Everyone,
>> 
>> I apologize if this has been answered in a previous post. I've
> 
 been digging through old posts and
 
>> and searching on the net for an answer to this problem.
>> 
>> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the
> 
 latest version). I am able to
 
>> run the examples without a hitch. I am new to Java, JSP and MySQL,
> 
 I have created a database with
 
>> two tables, when I try to use the MySQL driver to connect to the
> 
 database I get the following error.
 
>> I think I get this error because I don't have a user other than
> 
 root setup on MySQL. In my searching
 
>> for an answer, I read about using the URL of the MySQL db as part
> 
 of getConnection(). I tried this
 
>> and it failed due to the MySQL port not being open on my firewall.
> 
 After I opened the appropriate
 
>> port, I got the same error.
>> 
>> What have I failed to do when setting up MySQL? I've installed it,
> 
 ran the grants, I think I've done
 
>> what was supposed to be done.
>> 
>> I've used the user id of "root" with the password I set for it.
>> 
>> Partial Error Text follows:
>> *
>> java.sql.SQLException: Server configuration denies access to data
> 
 source*
 
>> Thanks in advance
>> John Brosan
> 
>>> --
>>> Simon Chan, Senior System Analyst, Rawmart.com, Inc.
>>> 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
>>> Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]
>>> 
>>> http://www.rawmart.com , the next dimension in the trading of
>>> raw materials, please register now.
>>> 
>>> An initiative of the Noble Group.  Please visit us at
>>> http://www.thisisnoble.com
>> 





help!

2001-07-18 Thread Roger Ruan



Dear Sir,
 
I am using tomcat on windows 
2000.
I have a problem:
 For IIS of Windows 2000 
professional version only support 10 connections,I want to replace IIS 
with Apache,but I do not know if Apache supports the ASP or not.Our codes 
are developed in JSP/servlets and ASP.
Could you please give us some ideas 
about it?
 
Any help will be highly 
appreciated.
 
Sincerely,
 
roger
 
 
 
 
 
Dr. Roger 
RuanPhone 
Number:505-835-5563(office)505-838-9307(home)e-mail:  [EMAIL PROTECTED][EMAIL PROTECTED]
 
Mailing Address:PRRC,NMTSocorro,New Mexico 87801USA.
 
 


Re: Problem with JDBCRealm, Sessions and Cookies.

2001-07-18 Thread manybooby

I just tried to login with lynx and I was startled to discover a prompt
to set a cookie.  This is odd because whenever I try the same thing with
either galeon or mozilla (with the cookie setting to recieve all) no
cookie is set...  Not sure what is going on.

Any ideas?

On 18 Jul 2001 10:06:08 -0700, manybooby wrote:
> I am having some trouble with JDBCRealm.  It loads correctly but any
> attempt I make to login is greeted with this message on the console.
> 
>   2001-07-18 09:59:15 - Ctx(  ): From login without a session
> 
> I assumed this means I have a problem with my session and cookies.  I am
> testing all of this with Galeon and Mozilla so I turned off the cookie
> manager and allowed all cookies. No luck.
> 
> Then I wrote a test servlet with this snippet...
> 
>   HttpSession session = request.getSession(true);
>   session.setAttribute("testObject",testObject);
>   if(session.isNew()){
>   System.out.println("User hasn't set a cookie");
>   } 
> 
> Still no luck. So I wrote this...
> 
>   Cookie test = new Cookie("test", "testy");
>   test.setComment("testies");
>   response.addCookie(test);
> 
> Nothing works.  I don't get any prompt for a cookie and neither of my
> browsers has any mention of a cookie.
> 
> I'm running tomcat3.2 on localhost:8080 with no apache and my
> server.xml...
> 
>  className="org.apache.tomcat.request.SessionInterceptor"
>   noCookies="false" />
> 
> Any Ideas???!!!
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



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




Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Matt Read

Your code should probably look something like this. Note there is no
connection between Unix account and mySql accounts.

Connection con =
DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=root&password=
rootpassword");

or if you're trying to log in as howler

Connection con =
DriverManager.getConnection("jdbc:mysql://larry/howlerdb?user=howler&passwor
d=winston2644");

Either should work as long as you're connecting from localhost.

Matt.


- Original Message -
From: "Howler D. Wolfe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 18 July 2001 15:14
Subject: Re: Problems with a simple JSP and mySQL connect


> Simon,
>
> I miss read your question. The host machine is "larry" and the db
> account I use is "root" I hope that clarifies things.
>
> Thanks again
> John Brosan
>
>
> Simon Chan wrote:
>
> > Which machine (host) and what db account you access the database from?
> >
> > "Howler D. Wolfe" wrote:
> >
> >> I have data in this table as follows
> >>
> >> HOST USER PW PRIVS (shortened to save space)
> >> ---+-+---+---
> >> localhost root  All are set to 'Y'
> >> larry root (empty) All are set to 'Y'
> >> localhost (empty) (empty) All are set to 'N'
> >> larry (empty) (empty) All are set to 'N'
> >> localhost howler  All are set to 'Y'
> >>
> >> Not sure whats going on with this or what exactly should be here.
> >>
> >> Any suggestions would be helpful
> >>
> >> Thanks
> >> John Brosan
> >>
> >> Simon Chan wrote:
> >>
> >> > Please check your mysql.user table to make sure that your client
> >> machine is in the host field.
> >> >
> >> > skc
> >> >
> >> > "Howler D. Wolfe" wrote:
> >> >
> >> >> Hello Everyone,
> >> >>
> >> >> I apologize if this has been answered in a previous post. I've
> >> been digging through old posts and
> >> >> and searching on the net for an answer to this problem.
> >> >>
> >> >> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the
> >> latest version). I am able to
> >> >> run the examples without a hitch. I am new to Java, JSP and MySQL,
> >> I have created a database with
> >> >> two tables, when I try to use the MySQL driver to connect to the
> >> database I get the following error.
> >> >>
> >> >> I think I get this error because I don't have a user other than
> >> root setup on MySQL. In my searching
> >> >> for an answer, I read about using the URL of the MySQL db as part
> >> of getConnection(). I tried this
> >> >> and it failed due to the MySQL port not being open on my firewall.
> >> After I opened the appropriate
> >> >> port, I got the same error.
> >> >>
> >> >> What have I failed to do when setting up MySQL? I've installed it,
> >> ran the grants, I think I've done
> >> >> what was supposed to be done.
> >> >>
> >> >> I've used the user id of "root" with the password I set for it.
> >> >>
> >> >> Partial Error Text follows:
> >> >> *
> >> >> java.sql.SQLException: Server configuration denies access to data
> >> source*
> >> >>
> >> >> Thanks in advance
> >> >> John Brosan
> >> >
> >>
> > --
> > Simon Chan, Senior System Analyst, Rawmart.com, Inc.
> > 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
> > Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]
> >
> > http://www.rawmart.com , the next dimension in the trading of
> > raw materials, please register now.
> >
> > An initiative of the Noble Group.  Please visit us at
> > http://www.thisisnoble.com
>
>
>




ajp13 slowish

2001-07-18 Thread Martin Lichtin

Hi,

anyone have a fix for the ajp13 sluggishness?
The problem is described under

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1713

It hasn't been fixed yet, as far as I can tell (will try 3.2.3).

Thanks,
Martin



Replacing tools.jar with Jikes for JSP compilation

2001-07-18 Thread Gautam Sinha

This seems to be a popular question.  There have been some excellent
postings before to solve the dilemma, and some of them involved modifying
the tomcat source code.

Here are the steps for replacing tools.jar with Jikes for Tomcat 3.2.1 on
the Windows 2000 platform, without modifying the source code for Tomcat.

1. Download jikes.  It is currently available from
http://oss.software.ibm.com/developerworks/opensource/jikes/ under the IBM
Open License.
2. Add the path to the jikes.exe executable to the system PATH variable.
3. Assuming you already have the JRE (Java Runtime Environment) available,
add rt.jar to the Java classpath variable (usually found in
JAVA_HOME/jre/lib).
4. Paste the following code anywhere between the  and 
tags of the web.xml file contained in the WEB-INF directory of your web
application (not the web.xml in tomcat_home/conf).  If you don't have a
web.xml for your application, you can create one by putting the following
code between  and  tags and placing it in the WEB-INF
directory of your application context.

  

  
  jsp
  

  
  org.apache.jasper.servlet.JspServlet
  

  
  jspCompilerPlugin

org.apache.jasper.compiler.JikesJavaCompiler
  

  
  -2147483646
  


  

  
  jsp
  
  
  *.jsp
  


(It is important to clean out precompiled JSP files in Tomcat's work
directory and to search throughout the local hard drives for copies of
tools.jar and temporarily rename them before you can establish that jikes is
indeed being used to compile the JSP).

Troubleshooting:

1. It is safe to ignore the message(s) of the following format:  Ctx():
Removing duplicate servlet jsp
jsp(org.apache.jasper.servlet.JspServlet/null)
2. If you get a message like "Location: /myapp/edituser.jsp -- Internal
Servlet Error: -- org.apache.jasper.JasperException: Unable to compile class
for JSP at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)"
followed by a stack trace, most likely the system did not find "jikes.exe"
in its search path.
3. If you get a message like "Location: /myapp/edituser.jsp -- Internal
Servlet Error: -- org.apache.jasper.JasperException: Unable to compile class
for JSP -- Found 2 system errors: -- *** Error: Could not find package
"java/util" in:" followed by a list of paths, most likely the system did not
find "rt.jar" in its classpath.  "java/util" and "java/lang" are read from
"rt.jar".


Good luck!





Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Simon Chan


Your connection string should be
jdbc:mysql://localhost/howlerdb?user=howler&password=winston2644
if howlerdb is your db name
skc
"Howler D. Wolfe" wrote:
Currently, I have it all on 1 machine, Tomcat, Apache,
and MySQL, larry,
and I am logged in as "howler"
Simon Chan wrote:
> Which machine (host) and what db account you access the database from?
>
> "Howler D. Wolfe" wrote:
>
>> I have data in this table as follows
>>
>> HOST USER PW PRIVS (shortened to save space)
>> ---+-+---+---
>> localhost root  All are set to 'Y'
>> larry root (empty) All are set to 'Y'
>> localhost (empty) (empty) All are set to 'N'
>> larry (empty) (empty) All are set to 'N'
>> localhost howler  All are set to 'Y'
>>
>> Not sure whats going on with this or what exactly should be here.
>>
>> Any suggestions would be helpful
>>
>> Thanks
>> John Brosan
>>
>> Simon Chan wrote:
>>
>> > Please check your mysql.user table to make sure that your client
>> machine is in the host field.
>> >
>> > skc
>> >
>> > "Howler D. Wolfe" wrote:
>> >
>> >> Hello Everyone,
>> >>
>> >> I apologize if this has been answered in a previous post. I've
>> been digging through old posts and
>> >> and searching on the net for an answer to this problem.
>> >>
>> >> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think
the
>> latest version). I am able to
>> >> run the examples without a hitch. I am new to Java, JSP and MySQL,
>> I have created a database with
>> >> two tables, when I try to use the MySQL driver to connect to
the
>> database I get the following error.
>> >>
>> >> I think I get this error because I don't have a user other than
>> root setup on MySQL. In my searching
>> >> for an answer, I read about using the URL of the MySQL db as
part
>> of getConnection(). I tried this
>> >> and it failed due to the MySQL port not being open on my firewall.
>> After I opened the appropriate
>> >> port, I got the same error.
>> >>
>> >> What have I failed to do when setting up MySQL? I've installed
it,
>> ran the grants, I think I've done
>> >> what was supposed to be done.
>> >>
>> >> I've used the user id of "root" with the password I set for it.
>> >>
>> >> Partial Error Text follows:
>> >> *
>> >> java.sql.SQLException: Server configuration denies access to
data
>> source*
>> >>
>> >> Thanks in advance
>> >> John Brosan
>> >
>>
> --
> Simon Chan, Senior System Analyst, Rawmart.com, Inc.
> 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
> Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]
>
> http://www.rawmart.com , the
next dimension in the trading of
> raw materials, please register now.
>
> An initiative of the Noble Group.  Please visit us at
> http://www.thisisnoble.com

-- 
Simon Chan, Senior System Analyst, Rawmart.com, Inc.
17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]

http://www.rawmart.com , the next dimension in the trading of
raw materials, please register now.

An initiative of the Noble Group.  Please visit us at
http://www.thisisnoble.com
 


Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Howler D. Wolfe

Simon,

I miss read your question. The host machine is "larry" and the db
account I use is "root" I hope that clarifies things.

Thanks again
John Brosan


Simon Chan wrote:

> Which machine (host) and what db account you access the database from?
> 
> "Howler D. Wolfe" wrote:
> 
>> I have data in this table as follows
>> 
>> HOST USER PW PRIVS (shortened to save space)
>> ---+-+---+---
>> localhost root  All are set to 'Y'
>> larry root (empty) All are set to 'Y'
>> localhost (empty) (empty) All are set to 'N'
>> larry (empty) (empty) All are set to 'N'
>> localhost howler  All are set to 'Y'
>> 
>> Not sure whats going on with this or what exactly should be here.
>> 
>> Any suggestions would be helpful
>> 
>> Thanks
>> John Brosan
>> 
>> Simon Chan wrote:
>> 
>> > Please check your mysql.user table to make sure that your client
>> machine is in the host field.
>> >
>> > skc
>> >
>> > "Howler D. Wolfe" wrote:
>> >
>> >> Hello Everyone,
>> >>
>> >> I apologize if this has been answered in a previous post. I've
>> been digging through old posts and
>> >> and searching on the net for an answer to this problem.
>> >>
>> >> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the
>> latest version). I am able to
>> >> run the examples without a hitch. I am new to Java, JSP and MySQL,
>> I have created a database with
>> >> two tables, when I try to use the MySQL driver to connect to the
>> database I get the following error.
>> >>
>> >> I think I get this error because I don't have a user other than
>> root setup on MySQL. In my searching
>> >> for an answer, I read about using the URL of the MySQL db as part
>> of getConnection(). I tried this
>> >> and it failed due to the MySQL port not being open on my firewall.
>> After I opened the appropriate
>> >> port, I got the same error.
>> >>
>> >> What have I failed to do when setting up MySQL? I've installed it,
>> ran the grants, I think I've done
>> >> what was supposed to be done.
>> >>
>> >> I've used the user id of "root" with the password I set for it.
>> >>
>> >> Partial Error Text follows:
>> >> *
>> >> java.sql.SQLException: Server configuration denies access to data
>> source*
>> >>
>> >> Thanks in advance
>> >> John Brosan
>> >
>> 
> -- 
> Simon Chan, Senior System Analyst, Rawmart.com, Inc.
> 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
> Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]
> 
> http://www.rawmart.com , the next dimension in the trading of
> raw materials, please register now.
> 
> An initiative of the Noble Group.  Please visit us at
> http://www.thisisnoble.com






Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Howler D. Wolfe

Currently, I have it all on 1 machine, Tomcat, Apache, and MySQL, larry,
and I am logged in as "howler"

Simon Chan wrote:

> Which machine (host) and what db account you access the database from?
> 
> "Howler D. Wolfe" wrote:
> 
>> I have data in this table as follows
>> 
>> HOST USER PW PRIVS (shortened to save space)
>> ---+-+---+---
>> localhost root  All are set to 'Y'
>> larry root (empty) All are set to 'Y'
>> localhost (empty) (empty) All are set to 'N'
>> larry (empty) (empty) All are set to 'N'
>> localhost howler  All are set to 'Y'
>> 
>> Not sure whats going on with this or what exactly should be here.
>> 
>> Any suggestions would be helpful
>> 
>> Thanks
>> John Brosan
>> 
>> Simon Chan wrote:
>> 
>> > Please check your mysql.user table to make sure that your client
>> machine is in the host field.
>> >
>> > skc
>> >
>> > "Howler D. Wolfe" wrote:
>> >
>> >> Hello Everyone,
>> >>
>> >> I apologize if this has been answered in a previous post. I've
>> been digging through old posts and
>> >> and searching on the net for an answer to this problem.
>> >>
>> >> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the
>> latest version). I am able to
>> >> run the examples without a hitch. I am new to Java, JSP and MySQL,
>> I have created a database with
>> >> two tables, when I try to use the MySQL driver to connect to the
>> database I get the following error.
>> >>
>> >> I think I get this error because I don't have a user other than
>> root setup on MySQL. In my searching
>> >> for an answer, I read about using the URL of the MySQL db as part
>> of getConnection(). I tried this
>> >> and it failed due to the MySQL port not being open on my firewall.
>> After I opened the appropriate
>> >> port, I got the same error.
>> >>
>> >> What have I failed to do when setting up MySQL? I've installed it,
>> ran the grants, I think I've done
>> >> what was supposed to be done.
>> >>
>> >> I've used the user id of "root" with the password I set for it.
>> >>
>> >> Partial Error Text follows:
>> >> *
>> >> java.sql.SQLException: Server configuration denies access to data
>> source*
>> >>
>> >> Thanks in advance
>> >> John Brosan
>> >
>> 
> -- 
> Simon Chan, Senior System Analyst, Rawmart.com, Inc.
> 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
> Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]
> 
> http://www.rawmart.com , the next dimension in the trading of
> raw materials, please register now.
> 
> An initiative of the Noble Group.  Please visit us at
> http://www.thisisnoble.com






Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Howler D. Wolfe

Here is the code I am using.

Please try not to laugh too much, keep in mind I am new to JSP and Java. ;-)

Thanks
John Brosan

<%@page contentType="text/html" import="java.sql.*" %>




<%= new String("Hello there John") %>
<%
Class.forName("org.gjt.mm.mysql.Driver");
Connection con = 
DriverManager.getConnection("jdbc:mysql:///howlerdb","howler", 
"winston2644");

Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM tblMenu");

while (rs.next())
  {
  out.println(rs.getString("MnuItemName"));
  out.println("");
  }
try {
   if ( rs!=null  ) rs.close();
   if ( stmt!=null) stmt.close();
   if ( con!=null ) con.close();

}
catch (SQLException ignored) {}
%>








Matt Read wrote:

> You'll need to show the code you use to establish the connection, in the
> meantime here's an example of some lines of code I use to establish a
> connection that works, hopefully this will help...
> 
> import java.sql.*;
> 
> public class MyClass {
> 
> public MyClass() throws SQLException {
> Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> Connection  c =
> DriverManager.getConnection("jdbc:mysql://mymachine.mydomain.com/mySqlDataba
> seName?user=myUserName&password=myPassword");
> }
> 
> }
> 
> 
> Matt.
> 
> - Original Message -
> From: "Howler D. Wolfe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 18 July 2001 14:19
> Subject: Problems with a simple JSP and mySQL connect
> 
> 
>> Hello Everyone,
>> 
>> I apologize if this has been answered in a previous post. I've been
> 
> digging through old posts and
> 
>> and searching on the net for an answer to this problem.
>> 
>> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest
> 
> version).  I am able to
> 
>> run the examples without a hitch. I am new to Java, JSP and MySQL, I have
> 
> created a database with
> 
>> two tables, when I try to use the MySQL driver to connect to the database
> 
> I get the following error.
> 
>> I think I get this error because I don't have a user other than root setup
> 
> on MySQL. In my searching
> 
>> for an answer, I read about using the URL of the MySQL db as part of
> 
> getConnection().  I tried this
> 
>> and it failed due to the MySQL port not being open on my firewall. After I
> 
> opened the appropriate
> 
>> port, I got the same error.
>> 
>> What have I failed to do when setting up MySQL? I've installed it, ran the
> 
> grants, I think I've done
> 
>> what was supposed to be done.
>> 
>> I've used the user id of "root" with the password I set for it.
>> 
>> Partial Error Text follows:
>> *
>> java.sql.SQLException: Server configuration denies access to data source*
>> 
>> Thanks in advance
>> John Brosan
>> 





Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Simon Chan


Which machine (host) and what db account you access the database from?
"Howler D. Wolfe" wrote:
I have data in this table as follows
HOST USER PW PRIVS (shortened to save space)
---+-+---+---
localhost root  All are set to 'Y'
larry root (empty) All are set to 'Y'
localhost (empty) (empty) All are set to 'N'
larry (empty) (empty) All are set to 'N'
localhost howler  All are set to 'Y'
Not sure whats going on with this or what exactly should be here.
Any suggestions would be helpful
Thanks
John Brosan
Simon Chan wrote:
> Please check your mysql.user table to make sure that your client machine
is in the host field.
>
> skc
>
> "Howler D. Wolfe" wrote:
>
>> Hello Everyone,
>>
>> I apologize if this has been answered in a previous post. I've been
digging through old posts and
>> and searching on the net for an answer to this problem.
>>
>> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the
latest version).  I am able to
>> run the examples without a hitch. I am new to Java, JSP and MySQL,
I have created a database with
>> two tables, when I try to use the MySQL driver to connect to the
database I get the following error.
>>
>> I think I get this error because I don't have a user other than
root setup on MySQL. In my searching
>> for an answer, I read about using the URL of the MySQL db as part
of getConnection().  I tried this
>> and it failed due to the MySQL port not being open on my firewall.
After I opened the appropriate
>> port, I got the same error.
>>
>> What have I failed to do when setting up MySQL? I've installed it,
ran the grants, I think I've done
>> what was supposed to be done.
>>
>> I've used the user id of "root" with the password I set for it.
>>
>> Partial Error Text follows:
>> *
>> java.sql.SQLException: Server configuration denies access to data
source*
>>
>> Thanks in advance
>> John Brosan
>

-- 
Simon Chan, Senior System Analyst, Rawmart.com, Inc.
17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED]

http://www.rawmart.com , the next dimension in the trading of
raw materials, please register now.

An initiative of the Noble Group.  Please visit us at
http://www.thisisnoble.com
 


Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Matt Read

You'll need to show the code you use to establish the connection, in the
meantime here's an example of some lines of code I use to establish a
connection that works, hopefully this will help...

import java.sql.*;

public class MyClass {

public MyClass() throws SQLException {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection  c =
DriverManager.getConnection("jdbc:mysql://mymachine.mydomain.com/mySqlDataba
seName?user=myUserName&password=myPassword");
}

}


Matt.

- Original Message -
From: "Howler D. Wolfe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 18 July 2001 14:19
Subject: Problems with a simple JSP and mySQL connect


> >
>
> Hello Everyone,
>
> I apologize if this has been answered in a previous post. I've been
digging through old posts and
> and searching on the net for an answer to this problem.
>
> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest
version).  I am able to
> run the examples without a hitch. I am new to Java, JSP and MySQL, I have
created a database with
> two tables, when I try to use the MySQL driver to connect to the database
I get the following error.
>
> I think I get this error because I don't have a user other than root setup
on MySQL. In my searching
> for an answer, I read about using the URL of the MySQL db as part of
getConnection().  I tried this
> and it failed due to the MySQL port not being open on my firewall. After I
opened the appropriate
> port, I got the same error.
>
> What have I failed to do when setting up MySQL? I've installed it, ran the
grants, I think I've done
> what was supposed to be done.
>
> I've used the user id of "root" with the password I set for it.
>
> Partial Error Text follows:
> *
> java.sql.SQLException: Server configuration denies access to data source*
>
> Thanks in advance
> John Brosan
>




Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Howler D. Wolfe

I have data in this table as follows

HOST USER PW PRIVS (shortened to save space)
---+-+---+---
localhost root  All are set to 'Y'
larry root (empty) All are set to 'Y'
localhost (empty) (empty) All are set to 'N'
larry (empty) (empty) All are set to 'N'
localhost howler  All are set to 'Y'

Not sure whats going on with this or what exactly should be here.

Any suggestions would be helpful

Thanks
John Brosan


Simon Chan wrote:

> Please check your mysql.user table to make sure that your client machine is in the 
>host field.
> 
> skc
> 
> "Howler D. Wolfe" wrote:
> 
>> Hello Everyone,
>> 
>> I apologize if this has been answered in a previous post. I've been digging through 
>old posts and
>> and searching on the net for an answer to this problem.
>> 
>> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version).  
>I am able to
>> run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a 
>database with
>> two tables, when I try to use the MySQL driver to connect to the database I get the 
>following error.
>> 
>> I think I get this error because I don't have a user other than root setup on 
>MySQL. In my searching
>> for an answer, I read about using the URL of the MySQL db as part of 
>getConnection().  I tried this
>> and it failed due to the MySQL port not being open on my firewall. After I opened 
>the appropriate
>> port, I got the same error.
>> 
>> What have I failed to do when setting up MySQL? I've installed it, ran the grants, 
>I think I've done
>> what was supposed to be done.
>> 
>> I've used the user id of "root" with the password I set for it.
>> 
>> Partial Error Text follows:
>> *
>> java.sql.SQLException: Server configuration denies access to data source*
>> 
>> Thanks in advance
>> John Brosan
> 





Re: Problems with a simple JSP and mySQL connect

2001-07-18 Thread Simon Chan

Please check your mysql.user table to make sure that your client machine is in the 
host field.

skc

"Howler D. Wolfe" wrote:

> >
>
> Hello Everyone,
>
> I apologize if this has been answered in a previous post. I've been digging through 
>old posts and
> and searching on the net for an answer to this problem.
>
> I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version).  
>I am able to
> run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a 
>database with
> two tables, when I try to use the MySQL driver to connect to the database I get the 
>following error.
>
> I think I get this error because I don't have a user other than root setup on MySQL. 
>In my searching
> for an answer, I read about using the URL of the MySQL db as part of 
>getConnection().  I tried this
> and it failed due to the MySQL port not being open on my firewall. After I opened 
>the appropriate
> port, I got the same error.
>
> What have I failed to do when setting up MySQL? I've installed it, ran the grants, I 
>think I've done
> what was supposed to be done.
>
> I've used the user id of "root" with the password I set for it.
>
> Partial Error Text follows:
> *
> java.sql.SQLException: Server configuration denies access to data source*
>
> Thanks in advance
> John Brosan




Problems with a simple JSP and mySQL connect

2001-07-18 Thread Howler D. Wolfe

>   

Hello Everyone,

I apologize if this has been answered in a previous post. I've been digging through 
old posts and
and searching on the net for an answer to this problem.

I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version).  I 
am able to 
run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a 
database with 
two tables, when I try to use the MySQL driver to connect to the database I get the 
following error.

I think I get this error because I don't have a user other than root setup on MySQL. 
In my searching
for an answer, I read about using the URL of the MySQL db as part of getConnection().  
I tried this
and it failed due to the MySQL port not being open on my firewall. After I opened the 
appropriate 
port, I got the same error.

What have I failed to do when setting up MySQL? I've installed it, ran the grants, I 
think I've done
what was supposed to be done.

I've used the user id of "root" with the password I set for it.

Partial Error Text follows:
*
java.sql.SQLException: Server configuration denies access to data source*

Thanks in advance
John Brosan




RE: Generate Excel File

2001-07-18 Thread William Kaufman

We've got it working exactly as you say, but only if the data is delimited
with _tabs_, not _commas_.

-- Bill K. 

> -Original Message-
> From: Erin Lester [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 2:21 PM
> To: [EMAIL PROTECTED]
> Subject: Generate Excel File
> 
> 
> Hi, I'm trying to generate an excel file as the response 
> returned from a
> servlet.  I have set the response's content type to
> "application/vnd.ms-excel" and this seems to cause excel to open.  The
> data I return is comma separated values.  
> 
> Once upon a time I read on a newsgroup (don't think it was 
> this one) that
> someone had done the same thing and excel interpreted the 
> data as a csv
> file and it displayed nicely in excel.  Unfortunately excel 
> seems to think
> that the entire row of comma separated values that I'm 
> sending it is one
> single cell (not a row of cells which are the values between 
> the commas).
> 
> Can anyone tell me where I'm going wrong or of another way to 
> generate an
> excel spreadsheet using JSP?
> 
> Thanks!
> Erin
> 



Micosoft to drop support for java

2001-07-18 Thread Nael Mohammad



this 
is not the place for this, discuss this www.slashdot.org if you want a discussion. 

 
Nael MohammadNeomar, 
Inc.[EMAIL PROTECTED]415-403-7300 x314 (Work)415-793-0609 
(Mobile)"When Wireless Means Business"CONFIDENTIALITY NOTICE: 
This e-mail may contain confidential informationthat is legally privileged. 
Do not read this e-mail if you are not theintended recipient.This e-mail 
transmission, and any documents, files or previous e-mailmessages attached 
to it may contain confidential information that is legallyprivileged. If you 
are not the intended recipient, or a person responsiblefor delivering it to 
the intended recipient, you are hereby notified thatany disclosure, copying, 
distribution or use of any of the informationcontained in or attached to 
this transmission is STRICTLY PROHIBITED. If youhave received this 
transmission in error, please immediately notify us byreply e-mail or by 
telephone at (415) 403-7300, and destroy the originaltransmission and its 
attachments without reading or saving in any manner.Thank 
you.

  -Original Message-From: Greg Kearney 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 5:52 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  [seajug] Micosoft to drop support for java
  I heard today Sun is dropping java support. Has anyone 
  else heard this?
  
- Original Message - 
From: 
Mike Alba 

To: [EMAIL PROTECTED] 

Sent: Wednesday, July 18, 2001 7:04 
PM
Subject: Fw: [seajug] Micosoft to drop 
support for java

Sorry this isnt pertaining to 
Tomcat
but thought it worthwhile it sure
ticks me off!
 
- Original Message - 
From: ayman E. 

To: [EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2001 3:17 PM
Subject: [seajug] Micosoft to drop support for java


On the fist page of Wall Street Journal today there is an article stating 
that Microsoft is dropping support for java in its WindowsXP.  XP 
customers will have to download java plugin to execute java code (applets I 
suppose the article means).  Not only that, Windows will tighten 
security so much so that even java applets might be viewed as possible 
security threats!
Once I read that , I could not remember reading any thing this stupid for 
a long time:
1. How on earth is java a security threat?  Compared to word and 
other Microsoft Macros any thing is secure, I think!!
2. Microsoft says that users can change security settings on their 
XP/Browser and can just download a java support.  Is Microsoft OR any 
one in his/her right mind expect users to do this.  A process that 
requires computer savvys and more time than it might be worth it for 
some.
3.  I feel this is the end for client side java.  Do you 
agree?
AME

Get your FREE download of MSN Explorer at http://explorer.msn.com
To unsubscribe from this group, send an email 
to:[EMAIL PROTECTED]Your use of 
Yahoo! Groups is subject to the Yahoo! Terms of Service. 



Re: [seajug] Micosoft to drop support for java

2001-07-18 Thread Greg Kearney



I heard today Sun is dropping java support. Has anyone 
else heard this?

  - Original Message - 
  From: 
  Mike Alba 

  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 18, 2001 7:04 
  PM
  Subject: Fw: [seajug] Micosoft to drop 
  support for java
  
  Sorry this isnt pertaining to Tomcat
  but thought it worthwhile it sure
  ticks me off!
   
  - Original Message - 
  From: ayman E. 

  To: [EMAIL PROTECTED] 
  Sent: Wednesday, July 18, 2001 3:17 PM
  Subject: [seajug] Micosoft to drop support for java
  
  
  On the fist page of Wall Street Journal today there is an article stating 
  that Microsoft is dropping support for java in its WindowsXP.  XP 
  customers will have to download java plugin to execute java code (applets I 
  suppose the article means).  Not only that, Windows will tighten 
  security so much so that even java applets might be viewed as possible 
  security threats!
  Once I read that , I could not remember reading any thing this stupid for a 
  long time:
  1. How on earth is java a security threat?  Compared to word and other 
  Microsoft Macros any thing is secure, I think!!
  2. Microsoft says that users can change security settings on their 
  XP/Browser and can just download a java support.  Is Microsoft OR any one 
  in his/her right mind expect users to do this.  A process that requires 
  computer savvys and more time than it might be worth it for some.
  3.  I feel this is the end for client side java.  Do you 
  agree?
  AME
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  To unsubscribe from this group, send an email 
  to:[EMAIL PROTECTED]Your use of 
  Yahoo! Groups is subject to the Yahoo! Terms of Service. 



changing classpath

2001-07-18 Thread Cromer, Deborah

hi,

I have recently downloaded the tdk for Turbine, and have been writting an
application to using turbine. The tdk includes catalina which I am using
with no problems. However, I now want to use some classes which are stored
ina  general class repository (not under any directory associated with
tomcat/turbin/catalina) and want to make these visible. I have been havign a
lot of problems with this.

After postign to the turbine-users mailing list I have been told that I
should not be modifying the catalina classpath (doign this has presented me
with various problems anyway). I think I need to change the tomcat
classpath, but am unsure where this gets set. I am currently starting up
catalina using th catalina.sh script which comes witht he tdk (and is
attached below) 

How do I make the classe sin the repository visible?

Deborah

 <> 

 catalina.sh


JDBCRealm Errors with Tomcat/4.0-b5

2001-07-18 Thread Ken Torimaru

Catalina.out
Is reporting the following error:
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: org.gjt.mm.mysql.Driver
LifecycleException:  Exception opening database connection:
java.sql.SQLException: org.gjt.mm.mysql.Driver
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:609)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
at org.apache.catalina.core.StandardService.start(StandardService.java:353)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
- Root Cause -
java.sql.SQLException: org.gjt.mm.mysql.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:529)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:607)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
at org.apache.catalina.core.StandardService.start(StandardService.java:353)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)

My Realm is setup as follows:
  

And mm.mysql-2.0.4-bin.jar is located in the lib directory.

Further, I've have a simple JSP which can access the data in question.

I've got no clue why this isn't working?

Any ideas?

Ken




[FAQ] jGuru FAQ Update

2001-07-18 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified daily when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How do I trap a 404 error inside my servlet if my servlet does a 
RequestDispatcher to a non-existent page ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=457102





How can I logoff

2001-07-18 Thread Blue, Neil

Hello,

I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic
authentication) to view a secured .jsp page. however I can not see how a
user can logoff again so that a new user can logon. Please could someone
point me in the right direction.

Cheers
Neil



RE: IIS5 + isapi_redirect.dll GREEN ARROW

2001-07-18 Thread John Sullivan
Title: RE: IIS5 + isapi_redirect.dll  GREEN ARROW





I can think of two things that you should try.  isapi_redirect.dll needs access to two registry settings worker_mount_file and worker_file.  Worker_mount_file points to uriworkermap.properties and worker_file points to workers.properties.  Make sure there are no spaces in the keys data.  Even if the values in the properties files are incorrect the filter should start.

Second where have you added the filter?  in the IIS Service tool add the filter at the machine level not at the individual web site.  Choose properties and edit the master properties.

Hope this helps!


John Sullivan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 18 July 2001 7:26 PM
To: [EMAIL PROTECTED]
Subject: IIS5 + isapi_redirect.dll GREEN ARROW



hi all,


We have just setup win2k server + iis5 + jdk1.3.1 + tomcat3.2.2  and have
done the installations as per the manual (help file ).


We are not able to get the green arrow up for isapi_redirect.dll filter. We
have tried all possibilities. Even we tried the old isapi_redirect.dll file
which we are currently using on our nt4.0. We have double checked the
registry settings, but no luck.


Can anyone throw light on this.


thanks in advance
niraj.





RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Sampige, Srinivas

Jann
 Somebody did reply to my question .Here is what i got...
--
Hello:
>From what I can tell:
(1) In your PronServlet.java service() method, you are manually parsing the
form data using the stream returned by request.getInputStream()
(2) In the JSP page, Tomcat is attempting to parse the form data again.
The servlet API docs specify that you can only call getInputStream() once
on a request, and that doing so may cause problems reading parameters, so I
suspect that's the source of your problem. I'm not entirely sure why the
generated JSP servlet is trying to read the parameters. Perhaps you're using
the parameters in the JSP page, or perhaps the JSP engine just reads it by
default, which would seem reasonable to me.
The simple workaround would be not to parse the form data in your
PronServlet, but to just use request.getParameter() and let Tomcat handle
it. That's the way I've done it in the past, and haven't had problems.
---
thanks
Srinivas


-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 3:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem with JSP mapping to subdirectory


That should have said "servlet mapping"
-Original Message-
From: Jann VanOver 
Sent: Wednesday, July 18, 2001 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem with JSP mapping to subdirectory


Please look at Web.XML.  You need TWO elements in Web.xml for each server mapping you 
want to set up.
-Original Message-
From: Renato Weiner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 3:35 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Problem with JSP mapping to subdirectory


Hi all,

I'm having a problem using JSP/Servlets in a subdirectory other than root.
To whomever want to test these are the steps:
- httpd.conf:

JkMount /test/*.jsp ajp12
JkMount /servlet_test/* ajp12

- server.xml



 

I can run a servlet since it loads the right web.xml in test.
log: 
2001-07-18 19:27:17 - Ctx( ... ): Reading /home/name/public_html/test/WEB-INF/web.xml
URL:
http://www.name.com/servlet_test/MyServlet
But when I try to run a JSP I got a 404 error message. Looking at the logs:
2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp /home/name/
/public_html/test/test/Hello.jsp /home/name/public_html/test

2001-07-18 19:29:18 - Ctx( ... ): 404 R(  + /test/Hello.jsp + null) JSP file not found
URL: 
http://www.name.com/test/Hello.jsp
Am I doing something wrong ? Or is it a problem??
Renato.





Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 a year!
http://personal.mail.yahoo.com/



URL rewriting, cookies and form based auth

2001-07-18 Thread Hensley, Zachary

I can not get form based authentication to work with cookies turned off and
using URL rewriting.  I have set noCookie="true" in the server.xml and I
have tried several different variations of passing jessionid, all listed
below.



..
">
..
">
..

I have also tried all upper case for "jessionid"

I want to use cookies, but I have to support people without, by using URL
rewriting.  Can I use cookies for people that have cookie enabled browsers,
and URL rewriting for people that don't or is it one or the other.  I really
appreciate any help.


Thanks,

Zach H.


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**



Fw: [seajug] Micosoft to drop support for java

2001-07-18 Thread Mike Alba



Sorry this isnt pertaining to Tomcat
but thought it worthwhile it sure
ticks me off!
 
- Original Message - 
From: ayman E. 
To: [EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2001 3:17 PM
Subject: [seajug] Micosoft to drop support for java


On the fist page of Wall Street Journal today there is an article stating 
that Microsoft is dropping support for java in its WindowsXP.  XP customers 
will have to download java plugin to execute java code (applets I 
suppose the article means).  Not only that, Windows will tighten 
security so much so that even java applets might be viewed as possible security 
threats!
Once I read that , I could not remember reading any thing this stupid for a 
long time:
1. How on earth is java a security threat?  Compared to word and other 
Microsoft Macros any thing is secure, I think!!
2. Microsoft says that users can change security settings on their XP/Browser 
and can just download a java support.  Is Microsoft OR any one in his/her 
right mind expect users to do this.  A process that requires computer 
savvys and more time than it might be worth it for some.
3.  I feel this is the end for client side java.  Do you agree?
AME

Get your FREE download of MSN Explorer at http://explorer.msn.com
To unsubscribe from this group, send an email 
to:[EMAIL PROTECTED]Your use of Yahoo! 
Groups is subject to the Yahoo! 
Terms of Service. 


RE: Can somebody please reply to my previous email ?

2001-07-18 Thread Jann VanOver

Sorry dude, but if nobody responds, maybe nobody knows the answer.

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: Can somebody please reply to my previous email ?


Here is the email is sent->

Sent: Tuesday, July 17, 2001 2:59 PM
To: [EMAIL PROTECTED]
Subject: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a
JSP


Hi 
 Iam using tomcat 3.2.1 and i have a servlet "PronServlet" that extends from
HttpServlet . Now i have a servlet "LogonServlet" that extends from servlet
"PronServlet" (which has got common functionality like checking for a valid
session ;has common methods that perform functionality like forwarding HTTP
request to another url). In "LogonServlet" i have some code that does some
processing and finally forwards the HTTP request to a JSP .Iam getting an
error which iam pasting below.I ran the same application on JRun and it
works fine .I noticed that if i removed the subclassing and instead
subclassed LogonServlet directly from HttpServlet then the application works
fine by forwarding the request to the next JSP .Here is the console output
.Iam attaching the source code of
 PronServlet and LogonServlet .Anybody from the Tomcat dev team any
ideas. ?


--
Creating a session for the user...
Forwarding request to the MENU page...
2001-07-17 02:17:22 - Ctx( /pron ): Exception in: R( /pron +
/webUi/pronMenu.jsp + null) - java.lang.
IllegalArgumentException: Short Read
at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
at
org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
at
org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:691)
at
org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
at
org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
at
org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRe
questFacade.ja
va:222)
at
org.apache.jasper.servlet.JspServlet.preCompile(JspServlet.java:326)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:370)
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.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)
at
com.boeing.pron.servlets.LogonServlet.handleApplicationEvent(LogonServlet.ja
va:61)
at com.boeing.pron.servlets.PronServlet.service(PronServlet.java:56)
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
onnectionHandl
er.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)

--

 <>  <> 



RE: The 4.0b5 doesn't recognize a servlet class

2001-07-18 Thread Vernon Wu



Hi, Aditya,
 

I think you mean the two jar files: jasper-runtime.jar and namingfactory.jar in the tomcat4.0/lib.

I use the JBuilder as the IDE where I can check any syntax errors or not. I have j2ee.jar inside of the JBuilder library setting. When I want to deploy it, I compile it again using ant, where the j2ee.jar is from the jdk1.3 directory. After I change the j2ee.jar point to the common/lib (a copy of the jar is in the directory), and include the two jars from tomcat/lib, and recompile it, the result is the same: recycle the tomcat and have the following error  messages:

Catalina.start: LifecycleException:  start: :  java.lang.NoSuchMethodErrorLifecycleException:  start: :  java.lang.NoSuchMethodError

Do I get the message right?

 

Thanks. 




Original Message Follows 

From: Aditya Anand <[EMAIL PROTECTED]>

Reply-To: [EMAIL PROTECTED] 

To: [EMAIL PROTECTED] 

Subject: RE: The 4.0b5 doesn't recognize a servlet class 

Date: Wed, 18 Jul 2001 12:10:16 -0700 (PDT) 

MIME-Version: 1.0 

Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1F2A1D00B0400438AD40D02A2911A50; Wed, 18 Jul 2001 12:10:21 -0700 

Received: (qmail 4427 invoked by uid 500); 18 Jul 2001 19:10:14 - 

Received: (qmail 4420 invoked from network); 18 Jul 2001 19:10:14 - 

Received: from web4704.mail.yahoo.com (216.115.105.204) by h31.sny.collab.net with SMTP; 18 Jul 2001 19:10:14 - 

Received: from [199.97.64.16] by web4704.mail.yahoo.com via HTTP; Wed, 18 Jul 2001 12:10:16 PDT 

From tomcat-user-return-41583-vwu0 Wed, 18 Jul 2001 12:11:35 -0700 

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 

Precedence: bulk 

list-help: 

list-unsubscribe: 

list-post: 

Delivered-To: mailing list [EMAIL PROTECTED] 

Message-ID: <[EMAIL PROTECTED]> 

In-Reply-To: <[EMAIL PROTECTED]>

X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 



hmm... did you recompile the classes using the tomcat 

lib jars? 

--- Vernon Wu <[EMAIL PROTECTED]>wrote: 













Hi, 



 



As you suggested, I moved the j2ee.jar from the 

web-inf\lib to common\lib. And then I restarted the 

Tomcat 4.0b5. Here is what I got: 





Catalina.start: LifecycleException:  start: 

:  

java.lang.NoSuchMethodErrorLifecycleException:  

start: :  

java.lang.NoSuchMethodError    

at 

org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:649)    

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100) 





    at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)    

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





    at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





    at 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)    

at 

org.apache.catalina.core.StandardService.start(StandardService.java:353)    

at 

org.apache.catalina.core.StandardServer.start(StandardServer.java:458)    

at 

org.apache.catalina.startup.Catalina.start(Catalina.java:725)    

at 

org.apache.catalina.startup.Catalina.execute(Catalina.java:647)    

at 

org.apache.catalina.startup.Catalina.process(Catalina.java:177)    

at java.lang.reflect.Method.invoke(Native 

Method)    

at 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)- 

Root Cause 

-java.lang.NoSuchMethodError    

at 

org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:627)    

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100) 





    at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)    

at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





    at 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) 





    at 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)    

at 

org.apache.catalina.core.StandardService.start(StandardService.java:353)    

at 

org.apache.catalina.core.StandardServer.start(StandardServer.java:458)    

at 

org.apache.catalina.startup.Catalina.start(Catalina.java:725)    

at 

org.apache.catalina.startup.Catalina.execute(Catalina.java:647)    

at 

org.apache.catalina.startup.Catalina.process(Catalina.java:177)    

at java.lang.reflect.Method.invoke(Native 

Method)    

at 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196) 





 



If I don't relocate the j2ee.jar file, when I try 

to open up the main page which doesn't call any 

servlet instance. What I get is the followings: 





Exception 

Report:javax.servlet.ServletException: Class
org.apache.jasper.servlet.JspServlet is not a
Servlet...Root
Cause:java.lang.ClassCastException:
org.apache.jasper.servlet.JspServlet...Please
advise what steps I shall
take Thanks.









Original Message Follows 



From: Wells Tiedeman 

<[EMAIL PROTECTED]>



Reply

RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Jann VanOver



That 
should have said "servlet mapping"

  -Original Message-From: Jann VanOver 
  Sent: Wednesday, July 18, 2001 3:37 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: Problem with JSP 
  mapping to subdirectory
  Please look at Web.XML.  You need TWO elements in Web.xml for each 
  server mapping you want to set up.
  
-Original Message-From: Renato Weiner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 3:35 
PMTo: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: Problem with JSP mapping to 
subdirectory
Hi all,
I'm having a problem using JSP/Servlets in a subdirectory other than 
root.
To whomever want to test these are the steps:
- httpd.conf:
JkMount /test/*.jsp ajp12JkMount 
/servlet_test/* ajp12

- server.xml
    
className="org.apache.tomcat.request.InvokerInterceptor"    
debug="9" prefix="/servlet_test/" />

www.name.com"> 
I can run a servlet since it loads the right web.xml in test.log: 
2001-07-18 19:27:17 - Ctx( ... ): Reading 
/home/name/public_html/test/WEB-INF/web.xmlURL:http://www.name.com/servlet_test/MyServlet
But when I try to run a JSP I got a 404 error message. Looking at the 
logs:
2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp 
/home/name//public_html/test/test/Hello.jsp 
/home/name/public_html/test2001-07-18 
19:29:18 - Ctx( ... ): 404 R(  + /test/Hello.jsp + null) JSP file not 
found
URL: http://www.name.com/test/Hello.jsp
Am I doing something wrong ? Or is it a problem??
Renato.


Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
only $35 a year!http://personal.mail.yahoo.com/


RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Jann VanOver



Please 
look at Web.XML.  You need TWO elements in Web.xml for each server mapping 
you want to set up.

  -Original Message-From: Renato Weiner 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 3:35 
  PMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Problem with JSP mapping to 
  subdirectory
  Hi all,
  I'm having a problem using JSP/Servlets in a subdirectory other than 
  root.
  To whomever want to test these are the steps:
  - httpd.conf:
  JkMount /test/*.jsp ajp12JkMount 
  /servlet_test/* ajp12
  
  - server.xml
      
  className="org.apache.tomcat.request.InvokerInterceptor"    
  debug="9" prefix="/servlet_test/" />
  
  www.name.com"> 
  I can run a servlet since it loads the right web.xml in test.log: 
  2001-07-18 19:27:17 - Ctx( ... ): Reading 
  /home/name/public_html/test/WEB-INF/web.xmlURL:http://www.name.com/servlet_test/MyServlet
  But when I try to run a JSP I got a 404 error message. Looking at the 
  logs:
  2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp 
  /home/name//public_html/test/test/Hello.jsp 
  /home/name/public_html/test2001-07-18 
  19:29:18 - Ctx( ... ): 404 R(  + /test/Hello.jsp + null) JSP file not 
  found
  URL: http://www.name.com/test/Hello.jsp
  Am I doing something wrong ? Or is it a problem??
  Renato.
  
  
  Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
  only $35 a year!http://personal.mail.yahoo.com/


RE: SSL with Tomcat/mod_jserv via Apache

2001-07-18 Thread John Bazeley

You can run apache/mod_ssl/mod_jserv/tomcat quite happily. I've got
a box here doing just that. Solaris 2.6/tomcat 3.2/apache 1.3.14/
mod_ssl 2.7.1.

Without mod_jk you lose certain pieces of information, though, like
I don't think your servlet knows whether it was called via SSL or
regular http. Mine don't care, though, so neither do I.

Do you need a copy of httpd.conf/tomcat.conf etc?

--
John


> -Original Message-
> From: Ravishankar.S [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 26 June 2001 00:41
> To: [EMAIL PROTECTED]
> Subject: Re: SSL with Tomcat/mod_jserv via Apache
> 
> 
> dear ronald,
> mod_jk directly supports SSL whereas modJServ does not 
> .if u r going
> for SSL i suggest mod_jk and if u r trying it in windows then may all the
> saints bless u.i tried and failed after  a week's effort
> 
> 
> 
> Ravishankar.S
> IonIdea Enterprise Solutions,
> #38-40,EPIP,Whitefield,
> Bangalore-560054,
> PH: 91-80-8411366-71  ext: 1042
> E-Mail: [EMAIL PROTECTED]
> URL : www.ionideasolutions.com
> - Original Message -
> From: "Ronald Ruzicka" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 5:37 PM
> Subject: SSL with Tomcat/mod_jserv via Apache
> 
> 
> > Hello,
> >
> > does anyone know, if it is possible to run SSL on a 
> Tomcat/mod_jserv based
> > solution connected to Apache-mod_ssl.
> >
> > Is there a document like "TomCat and SSL" (which describes a 
> TomCAT/mod_jk
> > based solution), only for Tomcat/mod_jserv.
> >
> > Thank you for your help.
> >
> > Ronald Ruzicka
> > Simutech
> > Tel. +43-1-888 36 10-21
> > Fax  +43-1-888 36 10-49
> > emailmailto:[EMAIL PROTECTED]
> > homepage www.simutech.at
> >
> 
> 



RE: IIS5 + isapi_redirect.dll GREEN ARROW

2001-07-18 Thread Jann VanOver

Do you have any spaces in the path name to isapi_redirect.dll ?? if so, get
rid of them.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 2:26 AM
To: [EMAIL PROTECTED]
Subject: IIS5 + isapi_redirect.dll GREEN ARROW


hi all,

We have just setup win2k server + iis5 + jdk1.3.1 + tomcat3.2.2  and have
done the installations as per the manual (help file ).

We are not able to get the green arrow up for isapi_redirect.dll filter. We
have tried all possibilities. Even we tried the old isapi_redirect.dll file
which we are currently using on our nt4.0. We have double checked the
registry settings, but no luck.

Can anyone throw light on this.

thanks in advance
niraj.




Tomcat 4.0 redirectPort question, how to redirect to SSL?

2001-07-18 Thread Jonathan Eric Miller

I read in another message that was posted to this list that you can use the
redirectPort variable in server.xml for a connector to have a non-SSL
connection redirected to a SSL connection?

Can someone tell me what other settings I need to use in order to get this
to work?

Basically, what I want to do is make it so that all connections using
http:// get redirected to https://. i.e. I want to require SSL. However, I
still want the Web server to listen on port 80 that way if I use forgets to
enter the 's' at the end of https they will still get to the right place.

Ideally, I would also like to require 128-bit encryption as well, but, if
anyone can answer the question about redirection, I would be greaty
appreciative.

Anyone know how to do this?

Also, I'm wondering if the variables and values for web.xml and server.xml
are documented somewhere? For example, I'm thinking that maybe there is a
 setting that you may need to use that specifies that
access to a servlet needs to be over SSL or something?

Jon





Re: Apache-tomcat context mapping

2001-07-18 Thread Dmitri Colebatch

I'm no apache expert, but from my limited experience with mod_rewrite I'm
pretty sure, almost 100% sure, that the browser knows nothing about
it.  For the browser to know about it apache would have to send back
something other than a 200 response (I think).  But as is best with all
things - try it and see what happens (o:

cheesr
dim

On Wed, 18 Jul 2001, Guntupalli Shanti wrote:

> Hi Dim
> 
> Thanks for the reply.
> 
> I have a question on mod_rewrite..if the URL is rewritten then does the 
> location box (URL box ) on the browser show the new URL
> or the old one? (Meaning all the relative links in my page point to the old 
> URI or the new one?)
> 
> Thanks again
> Shanti
> 
> At 03:09 PM 7/18/2001 +1000, you wrote:
> >mod_rewrite?  I think the problem is that the request will get to tomcat,
> >and tomcat will not have /example1 mapped...
> >
> >cheers
> >dim
> >
> >On Tue, 17 Jul 2001, Guntupalli Shanti wrote:
> >
> > > Hi,
> > >
> > > Here is my problem.
> > >
> > > In apache's config file I should be able to map 2 different URI's to one
> > > context in my Tomcat.
> > > something like
> > >
> > > APJServMount  /examples/servlet   apjv12://dev:8080/examples
> > > APJServMount  /examples1/servlet  apjv12://dev:8080/examples
> > >
> > > so that any requests coming in with examples/servlet or /examples1/servlet
> > > should go to the same context examples
> > >
> > > I can have another context examples1 in my Tomcat whose docbase is also
> > > same as examples. But If I do that the
> > > servlets are getting initialized twice (which doesn't work for me)
> > >
> > > Any idea, how to do it?
> > >
> > > I am running Apache 1.3.14 (with mod_jserv) talking to tomcat 3.2 on Sun
> > > solaris.
> > >
> > > Thanks...Shanti
> > >
> > >
> 
> 




Re: Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!

2001-07-18 Thread Mark Dzmura

Adam:

Thanks for the info.  We will await the new version of mod_webapp,
but I'm hard pressed to see how it is at fault.  If the DefaultServlet
can successfully hand content back to Apache via mod_webapp, why
can't the JSP servlet do so also??  Logically the problem would appear to
be elsewhere.

AFAIK we have followed the instructions in server.xml.  Except
for the references to "WebAppMount" (it seems to have been replaced
by "WebAppDeploy" and causes a syntax error), we are doing what
the directions here recommend.

As I said in the earlier letter, our Apache loads up with mod_webapp
with no reported errors, and we are able to serve static HTML content
through Apache and Tomcat (handled by DefaultServlet).

The problem is that whatever content gets pushed out of an executing
JSP is "dropped on the floor" and Apache sends back content to the
browser which is interpreted as "document has no data".

Guess it's back to the source code...

Mark

> Hi,
>
> AFAIK (memory lapses are usual!)
>
> WARP is for apache 2.0
> mod_webapp is for 1.3.x
>
> Install instructions are in server.xml. You'll need to do something special
> to apache, it is detailed in server.xml
>
> I'm having this trouble too, and I need to write a chapter on the damned
> thing!
>
> Adam.
>
> 
> Adam Fowler
> Help Desk Live Project
> Information Services
> University of Wales, Aberystwyth
> Web guy+author on the TomcatBook Project
> http://tomcatbook.sourceforge.net
> e-mail: [EMAIL PROTECTED]
> 
>
> On Wednesday 18 July 2001 19:41, you wrote:
> > Help!  I didn't get any response to my first query, and am running into
> > a solid wall, so I'll try again...
> >
> > Is ANYBODY successfully using Tomcat 4.0b5 with Apache and mod_webapps??
> > If so, can you send me your httpd.conf and server.xml (and anything else
> > that might be useful) ??  I'd be happy just to get the examples working
> > through Apache!!
> >
> > We can't get JSP's to work thorough a Warp connector to Apache.  They work
> > fine through port 8080 and Catalina's built-in web server, but not through
> > Apache.
> >
> > I can't find any online help for getting mod_webapps to work,
> > other than comments in the code.  The first sections of the Tomcat 4.x
> > documentation on Installation are BLANK.
> >
> > By hook or by crook, we have gotten Apache and Tomcat running with
> > mod_webapps and are able to serve static content through the Tomcat default
> > servlet, but JSP's DON'T WORK!!
> >
> > When a browser requests a JSP page, the java source is built and compiled
> > (the files built are identical to those built when the page is requested
> > through port 8080) - but Apache hands nothing back to the web browser -
> > Netscape displays a
> >
> > "Document contains no data"
> >
> > dialog.
> >
> > Any help or ideas would be appreciated.  Apache and Tomcat log files show
> > no error messages or  unusual content.
> >
> > Thanks,
> > Mark
> >
> > --
> > Mark Dzmura
> > Digital Mission LLC

--
Mark Dzmura
Digital Mission LLC






RE: jsp and tomcat 4

2001-07-18 Thread Jann VanOver

My bad -- b6 isn't out yet.  I guess you're supposed to get a more recent
"nightly build" of b5.

-Original Message-
From: Jann VanOver 
Sent: Wednesday, July 18, 2001 1:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: jsp and tomcat 4


Move to b6.  b5 has a problem recompiling JSPs 

-Original Message-
From: David White [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: jsp and tomcat 4


I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

> -Original Message-
> From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp and tomcat 4
>
>
> You need to make changes to a jsp file, not java file.  Tomcat will detect
> changes automatically and will translate jsps into java files and
> then compile
> them.
> ---
> Oskar
>
> Marco Magistrali wrote:
>
> > Hi,
> >
> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in
> browser because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
> >
> > tanks
> > Marco
>



RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England

Hmmm.

According to Dr. Mel Martinez on the tomcat-dev list, Jasper *cannot* see
the web-inf/classes part of your web app for compliation.  SO, I guess the
solution is to pre-compile the JSP's (somehow) and leave the compiled
.class files in the TOMCAT_HOME/work directory.

Then, we're *screwed* if a customer wants to modify one of the JSP files
on their server.  

Grrr.  

Ideas?



http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00696.html


-- 
  /~>'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/





RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England

Ok - there is the Jasper log, which indicates it's not finding *any*
classpath.

--- begin jasper log ---
2001-07-18 01:21:24 - Scratch dir for the JSP engine
is: /usr/local/tomcat-3.2/jakarta-tomcat/work/localhost_8080%2Fexamples
2001-07-18 01:21:24 - IMPORTANT: Do not modify the generated servlets
2001-07-18 01:21:29 - JspEngine --> /init.jsp
2001-07-18 01:21:29 -ServletPath: /init.jsp
2001-07-18 01:21:29 -   PathInfo: null
2001-07-18 01:21:29 -   RealPath: /webhome/java1/html/jsp/init.jsp
2001-07-18 01:21:29 - RequestURI: /jsp/init.jsp
2001-07-18 01:21:29 -
QueryString: 
Session=normal&Template=boxes&SessionMode=test&Event=Init&FlushSession=true
2001-07-18 01:21:29 - Request Params: 
2001-07-18 01:21:29 -Session = normal
2001-07-18 01:21:29 -FlushSession = true
2001-07-18 01:21:29 -Event = Init
2001-07-18 01:21:29 -SessionMode = test
2001-07-18 01:21:29 -Template = boxes
2001-07-18 01:21:29 - Classpath according to the init parameter is:

--- end jasper log ---

Does Jasper even know about the WEB-INF/classes for dynamic compilation of
JSP pages?

Will


-- 
  /~>'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/





Generate Excel File

2001-07-18 Thread Erin Lester

Hi, I'm trying to generate an excel file as the response returned from a
servlet.  I have set the response's content type to
"application/vnd.ms-excel" and this seems to cause excel to open.  The
data I return is comma separated values.  

Once upon a time I read on a newsgroup (don't think it was this one) that
someone had done the same thing and excel interpreted the data as a csv
file and it displayed nicely in excel.  Unfortunately excel seems to think
that the entire row of comma separated values that I'm sending it is one
single cell (not a row of cells which are the values between the commas).

Can anyone tell me where I'm going wrong or of another way to generate an
excel spreadsheet using JSP?

Thanks!
Erin




RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England

On Wed, 18 Jul 2001, Jann VanOver wrote:

> Okay -- I can't quote the source, but I read recently that this is a Tomcat
> bug.

Sure seems that way.  The Coocon list has about 300 posts to it about
dynamic compilation failing.

> If you put .class files into tomcat's WEB-INF\classes directory they go into
> an "unnamed package" and then can't be found when they're needed.

Currently, the classes are in a structure like this:

WEB-INF/classes/com/layoutwizard/server/query/
WEB-INF/classes/com/layoutwizard/server/
WEB-INF/classes/com/layoutwizard/util/

and so on. 

So, that's not going to help - it's already all layed out via packages.

Thanks for the idea, tho!

Will




Filtering this lise (was Re: Tomcat: subject)

2001-07-18 Thread Will England

I just filter on To: or CC: of  [EMAIL PROTECTED]  Works
like a charm.

Will




Re: JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England

On Wed, 18 Jul 2001, Aditya Anand wrote:

> this seems stupid but did u restart the server!...
> also you do have the servlets defined in
> web.xml..right?
> 

Yes, I restared the server.  

> My servlets and Beans are in separate jar files under
> WEB-INF/lib, which also contains other jars need,
> Ihave never touched the classpath setup by Tomcat, and
> it orks just fine

Look at your classpath as echoed by the tomcat script - most likely you
have pointers in there to the servlets and beans directories.  The tomcat
script adds your environment classpath to the end of the classpath it
dynamically generates.  

I've taken that part of the script out, so that the only things in the
classpath are the jar files in TOMCAT_HOME/lib.


> Can I have a peek at the logs?

No logs, just the errors.  If you want the whole error text I can send it
to you.  Won't be very helpful, tho, all it boils down to is "I can't find
your classes!"

Will






Re: Crystal Reports

2001-07-18 Thread Dom



Maybe you should have a look at Crystal-Clear from 
www.inetsoftware.de 
 
They have a complete java API to serve Crystal 
Report .rpt, and servlets too.
I use it with Tomcat without trouble.
 
Dom
- Original Message - 

  From: 
  Bill May 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, July 18, 2001 12:58 
  PM
  Subject: Crystal Reports
  
  G'Day,
   
  A question
   
  Is it possible to configure Tomcat to serve 
  Crystal Report (.rpt files)
   
  With Apache this is achieved by calling an 
  executable in the cgi-bin directory 
   
  I suppose the question is Does Tomcat support cgi 
  scripts ?
   
  Cheers
  Bill May
   
  Power Solutions DTD Pty LtdDid you know PSD 
  offer Data Cleansing services which help to identify duplicate patient 
  records
   
  Phone:  0413 560 
  677email: 
  [EMAIL PROTECTED]Web 
  Site:  www.power-solutions.com.au


RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Randy Layman


I would like you to site a source, since I have code that proves the
contrary.  The key is that if the classes are not in a package, then you
must explicitly import them.  They are still usable, and can be found, but
you must explicitly import them instead of using a wildcard to import them.

The reason for this (so that some of you might be able to reason
about your problems in the future so that you don't have to keep asking
here) is that your JSP is converted to a .java file.  The package of that
.java file is generated based upon its path inside of your web application.
Why you might ask?  So that you can have multiple JSPs with the same file
name in different directories.  So, this generated file has a package that
is not the default (blank) package.  In Java classes can only see the
classes in their own package and those that are imported.  Therefore, unless
you import the package-less classes you can't use them.  And Java doesn't
allow import * to mean import all package-less classes, which is why a
wildcard won't work.

I have no idea if this solves the original problem, but I needed to
contradict a mistaken or misleading answer.

Randy

> -Original Message-
> From: Jann VanOver [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 4:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: JSP's not finding classes in WEB-INF 
> 
> 
> No, this is not right.  Bean classes ARE SUPPOSED TO go into
> WEB-INF\classes.  As I mention in another post, there is a 
> bug in Tomcat
> that keeps them from being found unless they are in a 
> package.  Put classes
> into packages and put the packages in WEB-INF\classes and 
> everything works
> fine!
> 
> -Original Message-
> From: Aditya Anand [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 11:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP's not finding classes in WEB-INF 
> 
> 
> > Greetings!
> > 
> > Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.
> >  
> > 
> > I have a working application with servlets and JSP
> > pages running under
> > Tomcat 3.1.  I'm trying to port it to 3.2.
> > 
> > However, every time I hit a JSP page, it gives a 500
> > error about how it
> > cannot find classes to compile.  Those classes are
> > located in the WEB-INF
> > directory, under the /classes folder.  
> 
> I assume these are your bean classes. These should be
> put under the WEB-INF/lib directory rather than the
> classes directory. The classes directory is ment only
> for un-jarred servlet classes that have been declared
> in the web.xml file.
> 
> > The classpath does *not* contain the WEB-INF/classes
> > directory.
> you donot have to specify WEB-INF/classes in the
> system classpath
>  
> > If I hard-code the WEB-INF/classes directory into
> > the classpath, they
> > work.  However, I do not want to do this.  
> > 
> > What is the problem, and how can I resolve it?
> > 
> > I have tried settiing the environment variables
> > TOMCAT_HOME and JAVA_HOME,
> > and moving tools.jar into TOMCAT_HOME/lib.
> Put any servlet jars, beans, and required
> non-statndard libraries under the lib folder (like
> log4J, or xalan)
> 
> cheers
> Adi
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 



RE: Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!

2001-07-18 Thread Thom Park

Mark,

there is a forthcoming release of the mod_webapp (hopefully this Thursday)
that should
be much more stable than the current mod_webapp (tc4-b5).

To avoid further frustration - I'd recommend waiting for that release and
then retry

-Thom



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 12:42 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!


Help!  I didn't get any response to my first query, and am running into
a solid wall, so I'll try again...

Is ANYBODY successfully using Tomcat 4.0b5 with Apache and mod_webapps??
If so, can you send me your httpd.conf and server.xml (and anything else
that
might be useful) ??  I'd be happy just to get the examples working through
Apache!!

We can't get JSP's to work thorough a Warp connector to Apache.  They work
fine through port 8080 and Catalina's built-in web server, but not through
Apache.

I can't find any online help for getting mod_webapps to work,
other than comments in the code.  The first sections of the Tomcat 4.x
documentation on Installation are BLANK.

By hook or by crook, we have gotten Apache and Tomcat running with
mod_webapps
and are able to serve static content through the Tomcat default servlet,
but JSP's DON'T WORK!!

When a browser requests a JSP page, the java source is built and compiled
(the
files built are identical to those built when the page is requested through
port 8080) -
but Apache hands nothing back to the web browser - Netscape displays a

"Document contains no data"

dialog.

Any help or ideas would be appreciated.  Apache and Tomcat log files show
no error messages or  unusual content.

Thanks,
Mark

--
Mark Dzmura
Digital Mission LLC







RE: jsp and tomcat 4

2001-07-18 Thread Jann VanOver

Move to b6.  b5 has a problem recompiling JSPs 

-Original Message-
From: David White [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: jsp and tomcat 4


I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

> -Original Message-
> From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp and tomcat 4
>
>
> You need to make changes to a jsp file, not java file.  Tomcat will detect
> changes automatically and will translate jsps into java files and
> then compile
> them.
> ---
> Oskar
>
> Marco Magistrali wrote:
>
> > Hi,
> >
> > I have a question:
> > if I modify a JSP under tomcat4 i don't see any change in
> browser because
> > tomcat4 get the .class of JSP in cache (directory work)
> >
> > How can I say to recompile the jsp if there are changes in java??
> >
> > tanks
> > Marco
>



Problem with JDBCRealm, Sessions and Cookies.

2001-07-18 Thread manybooby

I am having some trouble with JDBCRealm.  It loads correctly but any
attempt I make to login is greeted with this message on the console.

2001-07-18 09:59:15 - Ctx(  ): From login without a session

I assumed this means I have a problem with my session and cookies.  I am
testing all of this with Galeon and Mozilla so I turned off the cookie
manager and allowed all cookies. No luck.

Then I wrote a test servlet with this snippet...

HttpSession session = request.getSession(true);
session.setAttribute("testObject",testObject);
if(session.isNew()){
System.out.println("User hasn't set a cookie");
} 

Still no luck. So I wrote this...

Cookie test = new Cookie("test", "testy");
test.setComment("testies");
response.addCookie(test);

Nothing works.  I don't get any prompt for a cookie and neither of my
browsers has any mention of a cookie.

I'm running tomcat3.2 on localhost:8080 with no apache and my
server.xml...



Any Ideas???!!!


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




RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a JSP

2001-07-18 Thread Sampige, Srinivas

Thanks .I got it to work by doing it the usual way.Here is what i did in PronServlet -

/*Hashtable formData = HttpUtils.parsePostData(request.getContentLength(),
 request.getInputStream());*/
Hashtable formData = new Hashtable();
Enumeration en = request.getParameterNames();
System.out.println("===");
while (en.hasMoreElements())
  {
String paramName = (String) en.nextElement();
System.out.println("Param Name -> "+paramName);
String value = request.getParameter(paramName);
System.out.println("Value -> "+value);
formData.put(paramName,value);
  }
System.out.println("===");

-Srinivas



-Original Message-
From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to
a JSP


Srinivas:

I can't comment on Jrun or Weblogic, since I haven't used them.  Normally I
figure that since Tomcat is the officially sanctioned reference
implementation, if it doesn't work on Tomcat, it just plain doesn't work,
even if it does work on other containers.

Here's what the servlet API docs say about getParameter in
ServletRequest.getParameter() :
"If the parameter data was sent in the request body, such as occurs with an
HTTP POST request, then reading the body directly via getInputStream() or
getReader() can interfere with the execution of this method."

I take that to mean it may cause problems, but won't necessarily, depending
on the implementation.

Can you try out the workaround I suggested and see if it solves the
problem?  If it doesn't, then we're on the wrong debugging track anyway.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to
a JSP


Greg
 Also ,the same thing works great in weblogic also in addition to JRun.Any
ideas ??
-Srinivas

-Original Message-
From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to
a JSP


Hello:

From what I can tell:

(1) In your PronServlet.java service() method, you are manually parsing the
form data using the stream returned by request.getInputStream()
(2) In the JSP page, Tomcat is attempting to parse the form data again.

The servlet API docs specify that you can only call getInputStream() once
on a request, and that doing so may cause problems reading parameters, so I
suspect that's the source of your problem.  I'm not entirely sure why the
generated JSP servlet is trying to read the parameters. Perhaps you're using
the parameters in the JSP page, or perhaps the JSP engine just reads it by
default, which would seem reasonable to me.

The simple workaround would be not to parse the form data in your
PronServlet, but to just use request.getParameter() and let Tomcat handle
it.  That's the way I've done it in the past, and haven't had problems.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 5:59 PM
To: [EMAIL PROTECTED]
Subject: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a
JSP


Hi
 Iam using tomcat 3.2.1 and i have a servlet "PronServlet" that extends from
HttpServlet . Now i have a servlet "LogonServlet" that extends from servlet
"PronServlet" (which has got common functionality like checking for a valid
session ;has common methods that perform functionality like forwarding HTTP
request to another url). In "LogonServlet" i have some code that does some
processing and finally forwards the HTTP request to a JSP .Iam getting an
error which iam pasting below.I ran the same application on JRun and it
works fine .I noticed that if i removed the subclassing and instead
subclassed LogonServlet directly from HttpServlet then the application works
fine by forwarding the request to the next JSP .Here is the console output
.Iam attaching the source code of
 PronServlet and LogonServlet .Anybody from the Tomcat dev team any
ideas. ?


--
Creating a session for the user...
Forwarding request to the MENU page...
2001-07-17 02:17:22 - Ctx( /pron ): Exception in: R( /pron +
/webUi/pronMenu.jsp + null) - java.lang.
IllegalArgumentExcep

Re: problem with webapp_module and redhat 7.1/apache 1.3-tomcat4.0b5

2001-07-18 Thread Adam Fowler

*on the trail*

Adam.

 
Adam Fowler 
Help Desk Live Project 
Information Services 
University of Wales, Aberystwyth 
Web guy+author on the TomcatBook Project 
http://tomcatbook.sourceforge.net 
e-mail: [EMAIL PROTECTED] 
 


On Thursday 19 July 2001 06:32, you wrote:
> Me too,
> Exact same error on SuSE 7.1, so I await a response :-).
>
> On Wednesday 18 July 2001 19:30, you wrote:
> > hi there,
> >
> > trying to build mod_webapp.so module for the apache1.3 / tomcat 4.0b5
> > integration, the following error occures, after building the module
> > successfully and trying to start apache:
> >
> > # /etc/init.d/httpd start
> > Starting httpd: Syntax error on line 5 of /etc/httpd/conf/httpd.conf:
> > Cannot load /etc/httpd/modules/mod_webapp.so into server:
> > /etc/httpd/modules/mod_webapp.so: undefined symbol: pthread_sigmask
> >[FAILED]
> >
> > the miracle is, that, whenever i make clean everything and rebuild the
> > whole module (including apr recompile) the file size differs.
> >
> > My best guess is that the EXTRA_LIBS from APRVARS are not being linked
> > into the server. but why?
> >
> > That is a guess however.
> > can anyone help me?
> >
> > cu,
> > michael.



Re: Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!

2001-07-18 Thread Adam Fowler

Hi,

AFAIK (memory lapses are usual!)

WARP is for apache 2.0
mod_webapp is for 1.3.x

Install instructions are in server.xml. You'll need to do something special 
to apache, it is detailed in server.xml

I'm having this trouble too, and I need to write a chapter on the damned 
thing!

Adam.

 
Adam Fowler 
Help Desk Live Project 
Information Services 
University of Wales, Aberystwyth 
Web guy+author on the TomcatBook Project 
http://tomcatbook.sourceforge.net 
e-mail: [EMAIL PROTECTED] 
 

On Wednesday 18 July 2001 19:41, you wrote:
> Help!  I didn't get any response to my first query, and am running into
> a solid wall, so I'll try again...
>
> Is ANYBODY successfully using Tomcat 4.0b5 with Apache and mod_webapps??
> If so, can you send me your httpd.conf and server.xml (and anything else
> that might be useful) ??  I'd be happy just to get the examples working
> through Apache!!
>
> We can't get JSP's to work thorough a Warp connector to Apache.  They work
> fine through port 8080 and Catalina's built-in web server, but not through
> Apache.
>
> I can't find any online help for getting mod_webapps to work,
> other than comments in the code.  The first sections of the Tomcat 4.x
> documentation on Installation are BLANK.
>
> By hook or by crook, we have gotten Apache and Tomcat running with
> mod_webapps and are able to serve static content through the Tomcat default
> servlet, but JSP's DON'T WORK!!
>
> When a browser requests a JSP page, the java source is built and compiled
> (the files built are identical to those built when the page is requested
> through port 8080) - but Apache hands nothing back to the web browser -
> Netscape displays a
>
> "Document contains no data"
>
> dialog.
>
> Any help or ideas would be appreciated.  Apache and Tomcat log files show
> no error messages or  unusual content.
>
> Thanks,
> Mark
>
> --
> Mark Dzmura
> Digital Mission LLC



Re: Starting apache and Tomcat

2001-07-18 Thread Adam Fowler

Hi,

Download the source and run the makefile for your system to build your 
mod_jk. Should work first time *gasp*

Instructions at:-
http://willow.cc.edu/adminguide
or
http://users.aber.ac.uk/aff9

Adam.

On Wednesday 18 July 2001 14:42, you wrote:
> Nance, Michael wrote:
> > I have seen this asked before but have not seen an answer.
> > When I try to start apache with mod_jk I get the error
> >
> > ... fatal: relocation error ...
> > /mod_jk.so: symbol fdatasync: referenced symbol not found
> >
> > What is wrong?
> >
> > Thanks
>
> Do you have the correct mod_jk.so for your system? Are you missing any
> libs that mod_jk.so is trying to reference? Not really sure what the
> problem is. Sounds like you would have to get a hold of the source for
> mod_jk.so and run it through a debugger.
>
> I am using mod_jk.so on a RedHat 6.2 and it works fine.



RE: JSP compile error - class not found

2001-07-18 Thread Jann VanOver

put your classes into a package.  Put the package in WEB-INF\classes\pkgname
(where pkgname is the name of your package)  Then it will work.

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: RE: JSP compile error - class not found 


Greetings!

Tried copying tools.jar to the TOMCAT_HOME/lib directory.  Didn't help.

Set TOMCAT_HOME and JAVA_HOME vars.  Didn't help.

Any other ideas?


-- 
  /~>'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/

On Tue, 17 Jul 2001, Robert Finneran wrote:

> First thing, try copying tools.jar to your TOMCAT_HOME/lib directory.
> (Also make sure your TOMCAT_HOME and JAVA_HOME enviroment vars are set)
> 
> Second, the may be issues involving the use of multiple class loaders (??)
> 
> Hope this helps! 
> 
> -Original Message-
> From: Will England [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: JSP compile error - class not found 
> 
> 
> Greetings!
> 
> Running tomcat 3.2 on Sun 2.7
> 
> Porting a working application from 3.1.  All jsp's and servlets work under
> 3.1.
> 
> Running multiple virtual machines under one Tomcat with the 
> parameter in server.xml.
> 
> The JSPs are failing to compile --
> org.apache.jasper.JasperException: Unable to compile class for JSP
> Class xxx not found.
> 
> The classes that are giving me problems are in the WEB-INF/classes
> directory.  They have correct permissions.  The classpath that tomcat is
> using is:
> 
> bin/../lib/ant.jar:
> bin/../lib/db-2.7.7:
> bin/../lib/db-2.7.7.jar:
> bin/../lib/jasper.jar:
> bin/../lib/jaxp.jar:
> bin/../lib/log4j.jar:
> bin/../lib/mail.jar:
> bin/../lib/mm.mysql-2.0.1-bin.jar:
> bin/../lib/parser.jar:
> bin/../lib/servlet.jar:
> bin/../lib/test:
> bin/../lib/webserver.jar:
> /usr/java1.2/bin/../lib/tools.jar
> 
> The servlets work correctly.  The only odd bit in server.xml is the use of
> this:
> 
>   className="org.apache.tomcat.request.Jdk12Interceptor"/>
> 
> so that I can read text files from each WEB-INF directory for each web
> application.
> 
> I've checked the FAQ's, google, groups.google, Sun and Apache's web
> pages.  I haven't been able to find any reason for this to happen.
> 
> I've cleared the work/ directory out, cleared out all compliled classes
> and recompiled the entire thing from source.  
> 
> I'm rather stumped.  Anyone have any suggestions or ideas why my JSP's
> won't compile?
> 
> Thanks in advance for any tips, tricks or advice!
> 
> Will
> 
> 
> 



RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Jann VanOver

No, this is not right.  Bean classes ARE SUPPOSED TO go into
WEB-INF\classes.  As I mention in another post, there is a bug in Tomcat
that keeps them from being found unless they are in a package.  Put classes
into packages and put the packages in WEB-INF\classes and everything works
fine!

-Original Message-
From: Aditya Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP's not finding classes in WEB-INF 


> Greetings!
> 
> Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.
>  
> 
> I have a working application with servlets and JSP
> pages running under
> Tomcat 3.1.  I'm trying to port it to 3.2.
> 
> However, every time I hit a JSP page, it gives a 500
> error about how it
> cannot find classes to compile.  Those classes are
> located in the WEB-INF
> directory, under the /classes folder.  

I assume these are your bean classes. These should be
put under the WEB-INF/lib directory rather than the
classes directory. The classes directory is ment only
for un-jarred servlet classes that have been declared
in the web.xml file.

> The classpath does *not* contain the WEB-INF/classes
> directory.
you donot have to specify WEB-INF/classes in the
system classpath
 
> If I hard-code the WEB-INF/classes directory into
> the classpath, they
> work.  However, I do not want to do this.  
> 
> What is the problem, and how can I resolve it?
> 
> I have tried settiing the environment variables
> TOMCAT_HOME and JAVA_HOME,
> and moving tools.jar into TOMCAT_HOME/lib.
Put any servlet jars, beans, and required
non-statndard libraries under the lib folder (like
log4J, or xalan)

cheers
Adi


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



RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Jann VanOver

Okay -- I can't quote the source, but I read recently that this is a Tomcat
bug.

If you put .class files into tomcat's WEB-INF\classes directory they go into
an "unnamed package" and then can't be found when they're needed.

Put your classes into a package -- put the package hierarchy in
WEB-INF\classes and then it will work.

EG. if you put a class DoIt into a package named mine
  WEB-INF\classes\mine\DoIt.class

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JSP's not finding classes in WEB-INF 


If you have just .class files then your JSP should work after placing those
classes under WEB-INF/classes .But if you classes are in a .jar file then
place them under WEB-INF/lib . Hope this helps

-srinivas

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: JSP's not finding classes in WEB-INF 


Greetings!

Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.  

I have a working application with servlets and JSP pages running under
Tomcat 3.1.  I'm trying to port it to 3.2.

However, every time I hit a JSP page, it gives a 500 error about how it
cannot find classes to compile.  Those classes are located in the WEB-INF
directory, under the /classes folder.  

The classpath does *not* contain the WEB-INF/classes directory.

If I hard-code the WEB-INF/classes directory into the classpath, they
work.  However, I do not want to do this.  

What is the problem, and how can I resolve it?

I have tried settiing the environment variables TOMCAT_HOME and JAVA_HOME,
and moving tools.jar into TOMCAT_HOME/lib.

Thanks for any tips or pointers!

Will


-- 
  /~>'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/



Getting classes12.zip into classpath for Solaris

2001-07-18 Thread Kershaw, David

Hi

I am using Tomcat 3.2.1, Apache 1.3.12, and mod_jk that came with Tomcat on
Solaris, SunOs5.7. I get my JSPs to run but when they try to use Oracle I
get an error.

Here is my error:

Internal Servlet Error:
javax.servlet.ServletException: oracle/jdbc/pool/OracleDataSource
...

Root cause: 
java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
...

I have a virtual host set up as such



with the apache httpd.conf as:

ServerAdmin [EMAIL PROTECTED]
ServerAlias x.xxx.com campaign
DocumentRoot /opt/www/ushh/campaign/htdocs
ServerName x..com
ErrorLog /opt/www/ushh/campaign/logs/error_log
TransferLog /opt/www/ushh/campaign/logs/access_log

   Options None
   Deny from all

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


I have the classes12.zip file in /opt/www/ushh/campaign/htdocs/WEB-INF/lib
but it doesn;t load it from there. I also unzipped the file and made a
classes12.jar file and put it in /opt/www/ushh/campaign/htdocs/WEB-INF/lib.
I also added the following line to my wrappers.properties file:

# added this for Oracle JDBC driver JDK 1.2 *DK 
wrapper.class_path=/opt/oracle/product/8.1.6/jdbc/lib/classes12.zip

What is left to try, How can I make the JDBC classes avaiable for my
application.

Thanks in advacen for any help

Dave



Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker

> I don't know why it is different for run() than for start() - I haven't used
> either, so I don't understand what the difference in the two is in the
> Thread class(doesn't start() call run()?)

What I meant by this is just doing:

MyThread x = new MyThraad();
x.run();

calls the run method (containing the class that has problems being created)
within the current Thread, ie no new Thread is started, This is when the
problem 'goes away'.

When start is called, the Thread starts (Obviously). This is when the
problem appears for me.
> 
> hope this helps,

I'll read tomorrow, digest, and attempt to understand :-)

Still, this must be a bug... people will want to use their own Threads
within a web application.

> Charlie
> 
> > -Original Message-
> > From: John Baker [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 18, 2001 12:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Cannot find my JavaBeans
> > 
> > 
> > On Wednesday 18 July 2001 17:15 pm, you wrote:
> > > > This seems to be a bug in Tomcat. Shouldn't someone who 
> > actually knows
> > > > how it all works take a look?
> > > >
> > > > John
> > >
> > > Yep. Even the cocoon mailing list is full with entries 
> > related to tomcat
> > > and its classpath :-). Under some misterious circumstances the
> > > " > >
> > Well I managed to make it a very non mysterious circumstance. 
> > I just started 
> > a Thread from an object that was a ServletContextListener. 
> > When I called 
> > start it lost classes. When I called run it worked fine. I 
> > had no problems 
> > replicating it. 
> > 
> > What is the cocoon mailing list?
> > 
> > -- 
> > John Baker, BSc CS.
> > Java developer, Linux lover.
> > I don't wanna rock, DJ.
> > 

-- 
John Baker, BSc CS.   
Java developer, Linux lover.
I don't wanna rock, DJ.



Re: Images in Tomcat

2001-07-18 Thread John Hebert

Fredrik Liden wrote:

> I have a navigationbar that changes images when the user moves the mouse
> over it.
> This navigationbar works and looks normal when viewed on my own computer.
> But when I run it through the server the images won't work properly. It
> looks pretty messed up to be exact. Anyone know how to get around this?
> 
> I'm running Tomcat as a standalone webserver/servletengine
> 
> /Fredrik


Either it is a file path problem or the mime types are not being 
declared correctly in ../tomcat/conf/web.xml.


-- 
John Alex Hebert
[EMAIL PROTECTED]
System Engineer



lost of original url in error.jsp in FORM based authentication

2001-07-18 Thread Yi-Xiong Zhou

Hi, 

I am using tomcat 3.2.1. When a user accessing resources out of the scope of
his/her role, tomcat forwards to the logon-error-page, deleted the user info
in the session, and the url of the requested resource was not saved into
tomcat.auth.originalLocation. 
Is there a way to configure tomcat such that the user info is not deleted,
the orignal url is saved, and logon page is forwarded? 
Thanks for the help. 
Yi-Xiong Zhou



Tomcat 4.0b5/Apache/mod_webapps/JSP - NO GO!

2001-07-18 Thread Mark Dzmura

Help!  I didn't get any response to my first query, and am running into
a solid wall, so I'll try again...

Is ANYBODY successfully using Tomcat 4.0b5 with Apache and mod_webapps??
If so, can you send me your httpd.conf and server.xml (and anything else that
might be useful) ??  I'd be happy just to get the examples working through Apache!!

We can't get JSP's to work thorough a Warp connector to Apache.  They work
fine through port 8080 and Catalina's built-in web server, but not through Apache.

I can't find any online help for getting mod_webapps to work,
other than comments in the code.  The first sections of the Tomcat 4.x
documentation on Installation are BLANK.

By hook or by crook, we have gotten Apache and Tomcat running with mod_webapps
and are able to serve static content through the Tomcat default servlet,
but JSP's DON'T WORK!!

When a browser requests a JSP page, the java source is built and compiled (the
files built are identical to those built when the page is requested through port 8080) 
-
but Apache hands nothing back to the web browser - Netscape displays a

"Document contains no data"

dialog.

Any help or ideas would be appreciated.  Apache and Tomcat log files show
no error messages or  unusual content.

Thanks,
Mark

--
Mark Dzmura
Digital Mission LLC






RE: Tomcat: subject

2001-07-18 Thread Sampige, Srinivas

That is what i have done in my outook .I have setup a rule that filters all messages 
coming into my inbox with a to address of "[EMAIL PROTECTED]" and puts 
them in a folder "TOMCAT LIST".

-Srinivas

-Original Message-
From: Aditya Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat: subject


why don't you just setup a filter based on the 'to'
address!
--- "Li, Jerry" <[EMAIL PROTECTED]> wrote:
> Hi, All:
> 
> We have been flooded by emails from the mailing
> lists of CVS, apache,
> tomcat, and so on. All of them come into our inbox,
> it is very tough to
> separate them. If you send emails with "Tomcat" in
> the subject, we could
> easily group them and redirect them into a dedicated
> folder. For example,
> Windows user may create a rule in outlook to
> redirect all emails with Tomcat
> in the subject to a folder called Tomcat.
> 
> thanks,
> 
> Jerry
> 
> 


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



Re: Tomcat: subject

2001-07-18 Thread Aditya Anand

why don't you just setup a filter based on the 'to'
address!
--- "Li, Jerry" <[EMAIL PROTECTED]> wrote:
> Hi, All:
> 
> We have been flooded by emails from the mailing
> lists of CVS, apache,
> tomcat, and so on. All of them come into our inbox,
> it is very tough to
> separate them. If you send emails with "Tomcat" in
> the subject, we could
> easily group them and redirect them into a dedicated
> folder. For example,
> Windows user may create a rule in outlook to
> redirect all emails with Tomcat
> in the subject to a folder called Tomcat.
> 
> thanks,
> 
> Jerry
> 
> 


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



Tomcat: subject

2001-07-18 Thread Li, Jerry




Hi, All:
We have been flooded by emails from the 
mailing lists of CVS, apache, tomcat, and 
so on. All of them come into our inbox, it is very tough to separate them. If 
you send emails with "Tomcat" in the subject, we could easily group 
them and redirect them into a dedicated folder. For example, Windows user may 
create a rule in outlook to redirect all emails with Tomcat in the subject to a folder 
called Tomcat.
thanks,
Jerry


Simultaneous test and production environment

2001-07-18 Thread Renato Weiner
Hi all,
I'm trying to setup a test and a production environment in one machine. The idea is to keep running two JVM instances. I created 2 workers mapped to port 8007 and 8008. I setup 2 server.xml properly for each instance. I could configure a virtual host like in httpd.conf

JkMount /*.jsp ajp12JkMount /test/*.jsp testJkMount /servlet/* ajp12JkMount /servlet_test/* test

The problem is that /*.jsp seems to override /test/*.jsp ( I made a try... :)) ) . Does anybody have a suggestion how to do this ? I don't want to have different VirtualHost entries... 
Thanks
Renato
 Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!http://personal.mail.yahoo.com/

RE: The 4.0b5 doesn't recognize a servlet class

2001-07-18 Thread Aditya Anand

hmm... did you recompile the classes using the tomcat
lib jars?
--- Vernon Wu <[EMAIL PROTECTED]> wrote:



Hi, 
 
As you suggested, I moved the j2ee.jar from the
web-inf\lib to common\lib. And then I restarted the
Tomcat 4.0b5. Here is what I got:
Catalina.start: LifecycleException:  start:
: 
java.lang.NoSuchMethodErrorLifecycleException: 
start: : 
java.lang.NoSuchMethodError   
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:649)   
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)   
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)   
at
org.apache.catalina.core.StandardService.start(StandardService.java:353)   
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458)   
at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)   
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:647)   
at
org.apache.catalina.startup.Catalina.process(Catalina.java:177)   
at java.lang.reflect.Method.invoke(Native
Method)   
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)-
Root Cause
-java.lang.NoSuchMethodError   
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:627)   
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)   
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)   
at
org.apache.catalina.core.StandardService.start(StandardService.java:353)   
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458)   
at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)   
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:647)   
at
org.apache.catalina.startup.Catalina.process(Catalina.java:177)   
at java.lang.reflect.Method.invoke(Native
Method)   
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
 
If I don't relocate the j2ee.jar file, when I try
to open up the main page which doesn't call any
servlet instance. What I get is the followings:
Exception
Report:javax.servlet.ServletException: Class
org.apache.jasper.servlet.JspServlet is not a
Servlet...Root
Cause:java.lang.ClassCastException:
org.apache.jasper.servlet.JspServlet...Please
advise what steps I shall
take Thanks.

Original Message Follows 
From: Wells Tiedeman
<[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Subject: RE: The 4.0b5 doesn't recognize a
servlet class 
Date: Tue, 17 Jul 2001 16:06:10 -0400 
MIME-Version: 1.0 
Received: from [64.208.42.41] by
hotmail.com (3.2) with ESMTP id
MHotMailBD1DE6CE00214004389F40D02A290FE90; Tue, 17 Jul
2001 13:10:55 -0700 
Received: (qmail 38493 invoked by uid 500);
17 Jul 2001 20:10:46 - 
Received: (qmail 38486 invoked from
network); 17 Jul 2001 20:10:45 - 
Received: from
salesvision-gw.youcentric.com (HELO
yc?exchange.yc?exchange.salesvision.com) (12.19.52.2)
by h31.sny.collab.net with SMTP; 17 Jul 2001 20:10:45
- 
Received: by
yc_exchange.yc_exchange.salesvision.com with Internet
Mail Service (5.5.2653.19)id <3XZSJXH3>; Tue, 17
Jul 2001 16:06:11 -0400 
From tomcat-user-return-41410-vwu0 Tue, 17
Jul 2001 13:11:00 -0700 
Mailing-List: contact
[EMAIL PROTECTED]; run by ezmlm 
Precedence: bulk 
list-help: 
list-unsubscribe:

list-post:

Delivered-To: mailing list
[EMAIL PROTECTED] 
Message-ID:
<[EMAIL PROTECTED]>

X-Mailer: Internet Mail Service
(5.5.2653.19) 
X-Spam-Rating: h31.sny.collab.net 1.6.2
0/1000/N 

Any of the jars/classes containing the
packages java.*, com.sun.*, javax.*, 
etc. If any of these are included in your
/WEB-INF/lib directory the class 
loaders get confused. 

-Wells 

-Original Message- 
From: Vernon Wu [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 17, 2001 3:49 PM 
To: [EMAIL PROTECTED] 
Subject: The 4.0b5 doesn't recognize a
servlet class 







Hi, Wells, 



Thanks for your response. 



It took me awhile trying to figure how the
CLASSPATH relates with the 
problem. I build up the JSP application
using Tomcat 3.x with the standard 
procedure. Nothing inside the project is
set up in the CLASSPATH. I don't 
know what you means by "all j2ee platform
classes". Are the classes used 
j2ee APIs? 



Thx. 



Vernon 



Original Message Follows 
From: Wells Tiedeman 
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" 
Subj

RE: The 4.0b5 doesn't recognize a servlet class

2001-07-18 Thread Vernon Wu

Hi, 
 
As you suggested, I moved the j2ee.jar from the web-inf\lib to common\lib. And then I restarted the Tomcat 4.0b5. Here is what I got:
Catalina.start: LifecycleException:  start: :  java.lang.NoSuchMethodErrorLifecycleException:  start: :  java.lang.NoSuchMethodError    at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:649)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)    at org.apache.catalina.core.StandardService.start(StandardService.java:353)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)    at org.apache.catalina.startup.Catalina.start(Catalina.java:725)    at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)    at org.apache.catalina.startup.Catalina.process(Catalina.java:177)    at java.lang.reflect.Method.invoke(Native Method)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)- Root Cause -java.lang.NoSuchMethodError    at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:627)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)    at org.apache.catalina.core.StandardService.start(StandardService.java:353)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)    at org.apache.catalina.startup.Catalina.start(Catalina.java:725)    at org.apache.catalina.startup.Catalina.execute(Catalina.java:647)    at org.apache.catalina.startup.Catalina.process(Catalina.java:177)    at java.lang.reflect.Method.invoke(Native Method)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
 
If I don't relocate the j2ee.jar file, when I try to open up the main page which doesn't call any servlet instance. What I get is the followings:
Exception Report:javax.servlet.ServletException: Class org.apache.jasper.servlet.JspServlet is not a Servlet...Root Cause:java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet...Please advise what steps I shall take Thanks.

Original Message Follows 
From: Wells Tiedeman <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: The 4.0b5 doesn't recognize a servlet class 
Date: Tue, 17 Jul 2001 16:06:10 -0400 
MIME-Version: 1.0 
Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1DE6CE00214004389F40D02A290FE90; Tue, 17 Jul 2001 13:10:55 -0700 
Received: (qmail 38493 invoked by uid 500); 17 Jul 2001 20:10:46 - 
Received: (qmail 38486 invoked from network); 17 Jul 2001 20:10:45 - 
Received: from salesvision-gw.youcentric.com (HELO yc?exchange.yc?exchange.salesvision.com) (12.19.52.2) by h31.sny.collab.net with SMTP; 17 Jul 2001 20:10:45 - 
Received: by yc_exchange.yc_exchange.salesvision.com with Internet Mail Service (5.5.2653.19)id <3XZSJXH3>; Tue, 17 Jul 2001 16:06:11 -0400 
From tomcat-user-return-41410-vwu0 Tue, 17 Jul 2001 13:11:00 -0700 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
Precedence: bulk 
list-help: 
list-unsubscribe: 
list-post: 
Delivered-To: mailing list [EMAIL PROTECTED] 
Message-ID: <[EMAIL PROTECTED]> 
X-Mailer: Internet Mail Service (5.5.2653.19) 
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 

Any of the jars/classes containing the packages java.*, com.sun.*, javax.*, 
etc. If any of these are included in your /WEB-INF/lib directory the class 
loaders get confused. 

-Wells 

-Original Message- 
From: Vernon Wu [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 17, 2001 3:49 PM 
To: [EMAIL PROTECTED] 
Subject: The 4.0b5 doesn't recognize a servlet class 







Hi, Wells, 



Thanks for your response. 



It took me awhile trying to figure how the CLASSPATH relates with the 
problem. I build up the JSP application using Tomcat 3.x with the standard 
procedure. Nothing inside the project is set up in the CLASSPATH. I don't 
know what you means by "all j2ee platform classes". Are the classes used 
j2ee APIs? 



Thx. 



Vernon 



Original Message Follows 
From: Wells Tiedeman 
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" 
Subject: RE: ServletException in 4.0b5 
Date: Tue, 17 Jul 2001 08:46:44 -0400 
MIME-Version: 1.0 
Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id 
MHotMailBD1D7FCF0016400437

keep getting AccessControlException when using JavaMail

2001-07-18 Thread jack . chu

Hi,
 
Any help would be appreciated.
 
I have a servlet that uses JavaMail package. It works fine when I executed
via telnet.
 
But I get java.security.AccessControlException:access denied
(java.net.SocketPermission stage.icarian.com resolve) error, when I call the
servlet.
 
My tomcat.policy file
grant codeBase "file:/home/sites/site4/web/-" {
permission
java.net.SocketPermission"localhost:1024-","connect,accept,listen,resolve";
permission java.util.PropertyPermission "*", "read,write";
permission java.lang.RuntimePermission "accessClassInPackage.sun.io";
permission java.io.FilePermission "-", "read,write,delete";
};
 
I even tried adding permission java.security.AllPermission line to the
tomcat.policy file.
 
I'm running tomcat 3.2 on Cobalt linux.
 
Any ideas?
Has anyone gotten the JavaMail to work with servlets?
 
thanks!!
Jack







RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a JSP

2001-07-18 Thread Greg Trasuk

Srinivas:

I can't comment on Jrun or Weblogic, since I haven't used them.  Normally I
figure that since Tomcat is the officially sanctioned reference
implementation, if it doesn't work on Tomcat, it just plain doesn't work,
even if it does work on other containers.

Here's what the servlet API docs say about getParameter in
ServletRequest.getParameter() :
"If the parameter data was sent in the request body, such as occurs with an
HTTP POST request, then reading the body directly via getInputStream() or
getReader() can interfere with the execution of this method."

I take that to mean it may cause problems, but won't necessarily, depending
on the implementation.

Can you try out the workaround I suggested and see if it solves the
problem?  If it doesn't, then we're on the wrong debugging track anyway.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to
a JSP


Greg
 Also ,the same thing works great in weblogic also in addition to JRun.Any
ideas ??
-Srinivas

-Original Message-
From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to
a JSP


Hello:

From what I can tell:

(1) In your PronServlet.java service() method, you are manually parsing the
form data using the stream returned by request.getInputStream()
(2) In the JSP page, Tomcat is attempting to parse the form data again.

The servlet API docs specify that you can only call getInputStream() once
on a request, and that doing so may cause problems reading parameters, so I
suspect that's the source of your problem.  I'm not entirely sure why the
generated JSP servlet is trying to read the parameters. Perhaps you're using
the parameters in the JSP page, or perhaps the JSP engine just reads it by
default, which would seem reasonable to me.

The simple workaround would be not to parse the form data in your
PronServlet, but to just use request.getParameter() and let Tomcat handle
it.  That's the way I've done it in the past, and haven't had problems.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 5:59 PM
To: [EMAIL PROTECTED]
Subject: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a
JSP


Hi
 Iam using tomcat 3.2.1 and i have a servlet "PronServlet" that extends from
HttpServlet . Now i have a servlet "LogonServlet" that extends from servlet
"PronServlet" (which has got common functionality like checking for a valid
session ;has common methods that perform functionality like forwarding HTTP
request to another url). In "LogonServlet" i have some code that does some
processing and finally forwards the HTTP request to a JSP .Iam getting an
error which iam pasting below.I ran the same application on JRun and it
works fine .I noticed that if i removed the subclassing and instead
subclassed LogonServlet directly from HttpServlet then the application works
fine by forwarding the request to the next JSP .Here is the console output
.Iam attaching the source code of
 PronServlet and LogonServlet .Anybody from the Tomcat dev team any
ideas. ?


--
Creating a session for the user...
Forwarding request to the MENU page...
2001-07-17 02:17:22 - Ctx( /pron ): Exception in: R( /pron +
/webUi/pronMenu.jsp + null) - java.lang.
IllegalArgumentException: Short Read
at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
at
org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
at
org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:691)
at
org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
at
org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
at
org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRe
questFacade.ja
va:222)
at
org.apache.jasper.servlet.JspServlet.preCompile(JspServlet.java:326)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:370)
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.

Re: JSP's not finding classes in WEB-INF

2001-07-18 Thread Aditya Anand

this seems stupid but did u restart the server!...
also you do have the servlets defined in
web.xml..right?

I use 4.0 b-5, and I haven't come across this problem,

My servlets and Beans are in separate jar files under
WEB-INF/lib, which also contains other jars need,
Ihave never touched the classpath setup by Tomcat, and
it orks just fine

Can I have a peek at the logs?


--- Will England <[EMAIL PROTECTED]> wrote:
> On Wed, 18 Jul 2001, Aditya Anand wrote:
> 
> > > However, every time I hit a JSP page, it gives a
> 500
> > > error about how it
> > > cannot find classes to compile.  Those classes
> are
> > > located in the WEB-INF
> > > directory, under the /classes folder.  
> > 
> > I assume these are your bean classes. These should
> be
> > put under the WEB-INF/lib directory rather than
> the
> > classes directory. The classes directory is ment
> only
> > for un-jarred servlet classes that have been
> declared
> > in the web.xml file.
> 
> Actually, just to make things interesting, those
> *are* servlet
> classes.  We have both servlets and JSP's that use
> library classes for
> various things.  Currently, they live in
> WEB-INF/classes.  One of these
> years we'll get things sorted out a bit better.
> 
> > Put any servlet jars, beans, and required
> > non-statndard libraries under the lib folder (like
> > log4J, or xalan)
> 
> Ok, so I created a jar file with the servlet classes
> and library classes
> in it and moved it to WEB-INF/lib.
> 
> Didn't work.
> 
> I cannot put this .jar file in TOMCAT_HOME/lib --
> each context / virtual
> host will have slightly different bits in the
> servlets.
> 
> Will
> 


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



RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England


On Wed, 18 Jul 2001, Sampige, Srinivas wrote:

> If you have just .class files then your JSP should work after placing those classes 
>under WEB-INF/classes .But if you classes are in a .jar file 
> then place them under WEB-INF/lib . Hope this helps
> 
> -srinivas

I have .class files under WEB-INF/classes and also tried making a .jar
file of the .class files and moving that to WEB-INF/lib.

Neither worked.

Thanks for the tip, tho...

Will




Re: JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England

On Wed, 18 Jul 2001, Aditya Anand wrote:

> > However, every time I hit a JSP page, it gives a 500
> > error about how it
> > cannot find classes to compile.  Those classes are
> > located in the WEB-INF
> > directory, under the /classes folder.  
> 
> I assume these are your bean classes. These should be
> put under the WEB-INF/lib directory rather than the
> classes directory. The classes directory is ment only
> for un-jarred servlet classes that have been declared
> in the web.xml file.

Actually, just to make things interesting, those *are* servlet
classes.  We have both servlets and JSP's that use library classes for
various things.  Currently, they live in WEB-INF/classes.  One of these
years we'll get things sorted out a bit better.

> Put any servlet jars, beans, and required
> non-statndard libraries under the lib folder (like
> log4J, or xalan)

Ok, so I created a jar file with the servlet classes and library classes
in it and moved it to WEB-INF/lib.

Didn't work.

I cannot put this .jar file in TOMCAT_HOME/lib -- each context / virtual
host will have slightly different bits in the servlets.

Will




RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Sampige, Srinivas

If you have just .class files then your JSP should work after placing those classes 
under WEB-INF/classes .But if you classes are in a .jar file then place them under 
WEB-INF/lib . Hope this helps

-srinivas

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: JSP's not finding classes in WEB-INF 


Greetings!

Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.  

I have a working application with servlets and JSP pages running under
Tomcat 3.1.  I'm trying to port it to 3.2.

However, every time I hit a JSP page, it gives a 500 error about how it
cannot find classes to compile.  Those classes are located in the WEB-INF
directory, under the /classes folder.  

The classpath does *not* contain the WEB-INF/classes directory.

If I hard-code the WEB-INF/classes directory into the classpath, they
work.  However, I do not want to do this.  

What is the problem, and how can I resolve it?

I have tried settiing the environment variables TOMCAT_HOME and JAVA_HOME,
and moving tools.jar into TOMCAT_HOME/lib.

Thanks for any tips or pointers!

Will


-- 
  /~>'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/




Re: JSP's not finding classes in WEB-INF

2001-07-18 Thread Aditya Anand

> Greetings!
> 
> Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.
>  
> 
> I have a working application with servlets and JSP
> pages running under
> Tomcat 3.1.  I'm trying to port it to 3.2.
> 
> However, every time I hit a JSP page, it gives a 500
> error about how it
> cannot find classes to compile.  Those classes are
> located in the WEB-INF
> directory, under the /classes folder.  

I assume these are your bean classes. These should be
put under the WEB-INF/lib directory rather than the
classes directory. The classes directory is ment only
for un-jarred servlet classes that have been declared
in the web.xml file.

> The classpath does *not* contain the WEB-INF/classes
> directory.
you donot have to specify WEB-INF/classes in the
system classpath
 
> If I hard-code the WEB-INF/classes directory into
> the classpath, they
> work.  However, I do not want to do this.  
> 
> What is the problem, and how can I resolve it?
> 
> I have tried settiing the environment variables
> TOMCAT_HOME and JAVA_HOME,
> and moving tools.jar into TOMCAT_HOME/lib.
Put any servlet jars, beans, and required
non-statndard libraries under the lib folder (like
log4J, or xalan)

cheers
Adi


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



RE: Cannot find my JavaBeans

2001-07-18 Thread Cox, Charlie
Title: RE: Cannot find my JavaBeans





Ok, based upon previous posts, I think I might have an idea of why this happens.


Tomcat uses its own classloader(AdaptiveClassLoader) to load servlets/jsps. when that servlet/jsp needs a class(abcBean) the AdaptiveClassLoader tries to load the class. If it cannot load the class from the classes it knows about, in this case web-inf/classes, it will pass the request to load a class to its parent classloader. 

See http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13260.html for the full classloader heirarchy. 


In the case of a new Thread object, the AdaptiveClassLoader cannot resolve it, therefore it asks its parent and eventually the bootstap(jvm's) classloader will load the class. Now when the thread class needs to load a class(abcBean), the bootstrap classloader looks for it in the only place it is aware of - the classpath. And since the bootstrap loader doesn't not know about the AdaptiveClassLoader, it cannot forward the request to load the class to it, thus the class cannot be found.

I don't know why it is different for run() than for start() - I haven't used either, so I don't understand what the difference in the two is in the Thread class(doesn't start() call run()?)

hope this helps,
Charlie


> -Original Message-
> From: John Baker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 12:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Cannot find my JavaBeans
> 
> 
> On Wednesday 18 July 2001 17:15 pm, you wrote:
> > > This seems to be a bug in Tomcat. Shouldn't someone who 
> actually knows
> > > how it all works take a look?
> > >
> > > John
> >
> > Yep. Even the cocoon mailing list is full with entries 
> related to tomcat
> > and its classpath :-). Under some misterious circumstances the
> > "
> >
> Well I managed to make it a very non mysterious circumstance. 
> I just started 
> a Thread from an object that was a ServletContextListener. 
> When I called 
> start it lost classes. When I called run it worked fine. I 
> had no problems 
> replicating it. 
> 
> What is the cocoon mailing list?
> 
> -- 
> John Baker, BSc CS.
> Java developer, Linux lover.
> I don't wanna rock, DJ.
> 





JSP's not finding classes in WEB-INF

2001-07-18 Thread Will England

Greetings!

Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.  

I have a working application with servlets and JSP pages running under
Tomcat 3.1.  I'm trying to port it to 3.2.

However, every time I hit a JSP page, it gives a 500 error about how it
cannot find classes to compile.  Those classes are located in the WEB-INF
directory, under the /classes folder.  

The classpath does *not* contain the WEB-INF/classes directory.

If I hard-code the WEB-INF/classes directory into the classpath, they
work.  However, I do not want to do this.  

What is the problem, and how can I resolve it?

I have tried settiing the environment variables TOMCAT_HOME and JAVA_HOME,
and moving tools.jar into TOMCAT_HOME/lib.

Thanks for any tips or pointers!

Will


-- 
  /~>'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/





Re: Multiple virtual host with individual webapp dirs , one tomcat

2001-07-18 Thread Will England

On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote:

> Is it possible to give every single vhost his own webapp-dir where
> developpers can put
> new contexts, which are automatically added after restarting tomcat so no
> editing of server.xml
> is required.

If you want to *change* the code in a context, you can do this just by
adding the new class files under the WEB-INF directory.

If you want to add a *new* context that didn't already exist, you have to
edit the server.xml file.

One other option is to have the developers jar up the whole application
and deploy it to TOMCAT_HOME/webapps as a .war file.

Then, no changes are needed to server.xml; tomcat just reads and expands
the .war file and runs with it.  Never did this, not sure how well it
works.

Will






Multiple virtual host with individual webapp dirs , one tomcat

2001-07-18 Thread Stefan . Raschke


Hi guys,

maybe this is obvious, but I just don't get it.


I configured several virtual hosts with several individual contexts defined
in server.xml.
Works fine.

Is it possible to give every single vhost his own webapp-dir where
developpers can put
new contexts, which are automatically added after restarting tomcat so no
editing of server.xml
is required.

I understand that I can configure the base location with home in
. Is
there a similar way to solve my problem.


Thanks for your input and take care,


stefan







Images in Tomcat

2001-07-18 Thread Fredrik Liden

I have a navigationbar that changes images when the user moves the mouse
over it.
This navigationbar works and looks normal when viewed on my own computer.
But when I run it through the server the images won't work properly. It
looks pretty messed up to be exact. Anyone know how to get around this?

I'm running Tomcat as a standalone webserver/servletengine

/Fredrik



Re: Double Click

2001-07-18 Thread Alex Fernández

Hi again!

"Wang, Jianming" wrote:
> I have two frames, let's say left frame and right frame, in my app.  The
> left frame contains a list of names. When use clicks on one of them, the db
> is updated using the selected name and result is sent back to the right
> frame.

Aha, that clarifies your problem a lot. I suppose it won't be difficult
to check the db beforehand if data has already been updated?

Un saludo,

Alex.

> Thanks.
> 
> JW.
> 
> -Original Message-
> From: Alex Fernández [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Double Click
> 
> Hi Jianming!
> 
> I don't understand your problem. When users click on a link, a new page
> appears. So, what is the problem?
> 
> Perhaps you want to say that users click a second time after the request
> has got to the server (and the DB updated), but before the response gets
> to them. In this case, you'd want to ignore the second request.
> 
> This then should be easy: if you find the data already updated in the
> DB, then do nothing.
> 
> Un saludo,
> 
> Alex.
> 
> "Wang, Jianming" wrote:
> >
> > Hi,
> >
> > I have an hyperlink, when user click on it, it will update the database.
> My
> > question is how can I deal with the case when user double click on the
> link?
> > Thank you in advance for your help.
> >
> > JW.



Re: Tomcat 4.0 release date?

2001-07-18 Thread Alex Fernández

Hi Jon!

Jonathan Eric Miller wrote:
> Anyone have any ideas on when Tomcat 4.0 might be released?

Tomcat 4.0 will be the reference implementation of servlet spec 2.3,
which isn't still out. Therefore, it cannot be released until the spec
is ready and finished -- which should be around september, I hear.

> I see that it's
> currently in Beta 5 whereas 3.3 is only at milestone 4.

Yes, and they target different audiences. If you are using JDK 1.1 and
servlet spec 2.2 is fine for you, you'll want Tomcat 3.3. Otherwise,
wait for the final release.

Yet, from what I've read, both releases are quite stable right now. My
experience with milestones 2, 3 and 4 has been very satisfactory.

> As far as I can
> tell, milestones are actually Alphas. Why not name them as such?

'Alpha' is a commercial term. From the developer's perspective, you
reach milestones and may choose to publish them. Since this is an Open
Source project, you get access even to the nightly builds -- so you can
test it early on and bugs are pinned up as soon as possible.

However, don't let this fact fool you about the quality of the milestone
releases -- just download it and see. If you find any bugs, don't forget
to report them in Bugzilla.

> Is 4.0 expected to be released before 3.3? If so, what's the point of 3.3?

I hope it's clear now :)  The developers say that v3.3 is an evolution,
while v4 is a revolution -- a completely different codebase. You might
say that v3.3 is v3.2.1 refactored, slimmed down and faster.

As you may have heard, v3.2's major pitfall was speed: everyone claimed
to be superior. v3.3 is vastly improved in that regard, and code is
better organized. v4 will probably be very fast too, since a lot of
great developers are working on it.

Un saludo,

Alex.



RE: Tomcat 4.0 release date?

2001-07-18 Thread Randy Layman



> -Original Message-
> From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 1:02 PM
> To: Tomcat User List
> Subject: Tomcat 4.0 release date?
> 
> 
> Anyone have any ideas on when Tomcat 4.0 might be released? I 

4.0 should go final shortly after the final Servlet 2.3 spec is
released.  (Beta 6 will be released later this week or next week, according
to posts to the list recently).

> see that it's
> currently in Beta 5 whereas 3.3 is only at milestone 4. As 
> far as I can
> tell, milestones are actually Alphas. Why not name them as such?
I think of milestones more as reaching points on a development plan,
while Alphas are completed code.  I don't know enough about Tomcat
development to know if this is right, but this is the way that I've seen the
terminology used on other projects.

> 
> Is 4.0 expected to be released before 3.3? If so, what's the 
> point of 3.3?
> 
The distinction between Tomcat 3 and 4 is that version 3 is
dedicated to support the Servlet 2.2 spec.  Version 4 supports the 2.3 spec.
Therefore, as long as people are using the 2.2 spec and haven't upgraded to
the 2.3 spec, there will be some form of Tomcat 3 around (although active
development will probably ramp down as the user base moved to Tomcat 4).
Therefore, the point of 3.3 is to support the Servlet spec 2.2, but continue
to enhance its feature set.  The point of 4.0 is to be ready with a
reference implementation as soon as the spec is finalized.
> Jon
> 
> 



RE: How to configure a custom page for JSP 404 errors?

2001-07-18 Thread Courtney, Pierce

Hello,

I have found a workaround for this problem.
You *can* configure Tomcat 3.2.2 to go to
a particular page in the case of a 404 (or
other error), with this tag:


404
/CustomDefault


But, the  has to be a *servlet*. 
JSP or HTML pages won't work. Also make sure
you register both a  and a 
 like this:



CustomDefault


yourPackage.CustomDefault


-2147483646





CustomDefault


/CustomDefault



If you would like  to be a
JSP or HTML page, the workaround is
this: Make your default servlet
redirect to your JSP or HTML page.
(For some reason a server-side forward
or include doesn't work either).
So, if you want to go to your own
"error.jsp" in the case of 404 errors,
the CustomDefault servlet would look
something like this:
--
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;

public class CustomDefault extends HttpServlet 
{
public void service(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
response.sendRedirect("/error.jsp");
}

}
--

I hope this helps anyone dealing with this problem.

Pierce Courtney
[EMAIL PROTECTED]



-Original Message-
From: Courtney, Pierce 
Sent: Monday, July 09, 2001 3:38 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How to configure a custom page for JSP 404 errors?


Ryan and Hunor (Hades),

Thanks for your replies, but this simply does not work for me (perhaps I'm
missing something... some other setting one must set in server.xml or
something?)
I created a simple error.jsp and put this snippet in the main web.xml in
/conf/ and also in the web.xml file for my specific webapp:


404
/error.jsp


I also set the isErrorPage tag in my error.jsp per Hunor's suggestion.

Also I searched harder through the Tomcat User archives, and there seem to
be many people who have tried and failed to use this feature. But I could
find no mention of anyone actually having used this feature... I'm getting
the impression that this feature is buggy or not implemented.

BTW, This feature works perfectly in Tomcat 4.0-b5.

If anyone has actually gotten this to work on Tomcat 3.2.2, please let me
know how you did it.

Thanks in advance,
-Pierce Courtney
[EMAIL PROTECTED]


-Original Message-
From: Hunor Nam [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 12:43 AM
To: [EMAIL PROTECTED]
Subject: RE: How to configure a custom page for JSP 404 errors?


You also MUST set in your "error page" the faloving tag: <%@ page
isErrorPage="true" %>
Hades

-Original Message-
From: Ryan Lubke [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 10:29 PM
To: [EMAIL PROTECTED]
Subject: Re: How to configure a custom page for JSP 404 errors?


Hi Pierce,

 From what I've been able to gather, you should be able to set
the error page using the  directive within the
deployment descriptor for a web app (web.xml).


404
/error.jsp


Looking through the bug database, there was an open issue
regarding the use of static html pages within the 
tag.  I'm uncertain at this time what release it's actually fixed
in, but if you try it and get a stacktrace, then I guess you know :)

The bug report can be found here:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=291

I did find this information in the archives.  
Try looking at the results of the following search:
http://mikal.org/interests/java/tomcat/archive/search?search=error+page+
custom+404

I'm sure those who are more experiences could expand/correct on this 
information.
Hope this helps.

-rl

Courtney, Pierce wrote:

>Hello,
>
>This question probably has come up before, I just can't find it in the
>archives
>
>I am using Tomcat 3.2.2 standalone (not with Apache).
>
>How can I configure a particular page (servlet, static html, or jsp) to
be
>the "default"
>page that comes up if the requested jsp is not found, instead of the
404
>error.
>In other words, if a user requests:
>http://myTomcatSite.com/somePage.jsp
>
>I want to have somePage.jsp come up if it exists.
>But if somePage.jsp does not exist, I *don't* want the default 404
error to
>be displayed. Instead I want some custom page (a servlet actually) to
be
>processed. I don't really care if this is achieved with a client-side
>redirect or a server-side include/forward.
>
>I have tried using the DefaultServlet, which doesn't seem to work. I
have
>also set up my own servlet against  /* .
This
>works for servlets only, not JSPs. It seems the basic problem is that
any
>URI that matches *.jsp. gets processed by the JspServlet.  So it is not
>determined if the .jsp file actually exists or not until the JspServlet
is
>triggered.
>
>Can this custom error page functionality be configured somehow in
Tomcat?
>
>Thanks for any help,
>P

Tomcat 4.0 release date?

2001-07-18 Thread Jonathan Eric Miller

Anyone have any ideas on when Tomcat 4.0 might be released? I see that it's
currently in Beta 5 whereas 3.3 is only at milestone 4. As far as I can
tell, milestones are actually Alphas. Why not name them as such?

Is 4.0 expected to be released before 3.3? If so, what's the point of 3.3?

Jon





Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker

On Wednesday 18 July 2001 17:15 pm, you wrote:
> > This seems to be a bug in Tomcat. Shouldn't someone who actually knows
> > how it all works take a look?
> >
> > John
>
> Yep. Even the cocoon mailing list is full with entries related to tomcat
> and its classpath :-). Under some misterious circumstances the
> "
Well I managed to make it a very non mysterious circumstance. I just started 
a Thread from an object that was a ServletContextListener. When I called 
start it lost classes. When I called run it worked fine. I had no problems 
replicating it. 

What is the cocoon mailing list?

-- 
John Baker, BSc CS.
Java developer, Linux lover.
I don't wanna rock, DJ.



Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld

> This seems to be a bug in Tomcat. Shouldn't someone who actually knows how it
> all works take a look?
> 
> John
> 

Yep. Even the cocoon mailing list is full with entries related to tomcat
and its classpath :-). Under some misterious circumstances the
"


Re: Error 500: MissingResourceException

2001-07-18 Thread Minglong Wu

Hi,

I am trying to connect SQL server installed on my machine. I got the
following error message after I click nexk on Microsoft Server DSN
Configuration pop up window.

Connection failed:
SQLState: '01000'
SQL Server Error:1326
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen(CreateFile())
Connection failed:
SQLState: '08001'
SQL Server Error: 1326
[Microsoft][ODBC SQL Server Driver]Client unable to establish connection

Thanks

mwu




Re: Problems running as an NT Service

2001-07-18 Thread Christopher Raber
Title: Re: Problems running as an NT Service





File is on drive c:


The error is a security manager no read access eeror.
--
Chris Raber, Systems Engineer, AvantGo Inc.
v: 248-554-9330, cell: 810-839-3684
http://www.avantgo.com/
Sent wirelessly using AvantGo Enterprise & RIM!


-Original Message-
From: Frank Lawlor <[EMAIL PROTECTED]>
To: Tomcat (E-mail) <[EMAIL PROTECTED]>
Sent: Wed Jul 18 08:46:20 2001
Subject: Re: Problems running as an NT Service


What error are you getting?  FIle not found? Security error?
Not found would be a path problem.  Security error would
be more related to the java.policy of the user you are 
running under.  Is the file on a mounted drive? (service
can't access these). etc.


Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






RE: IIS Redirect Issue

2001-07-18 Thread Andrew Birchall

Can you view the examples servlets through IIS?
You may have to mount your webapp context to the ajp12 worker in
conf\uriworkermap.properties the same way that examples does, i.e /examples/*=ajp12
Regards
Andy B

-Original Message-
From: Josh Kuebel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: IIS Redirect Issue


I have configured Tomcat with IIS, using the Isapi_redirect.dll. The isapi
filter is up and running, and I have the jakarta virtual directory with
execute authority.

Yet, when I attempt to access the page, I can only get to it using the port
number of the tomcat engine (ex. mydomain.com:8080/path). If I leave out the
port, I get directed to a popup login screen with a header "Enter username
and password for unknown at 'domain name'" Is this a known issue. I am
running on Windows NT 4.0 SP6, with IIS 4.0. Tomcat v.3.2.1.

Any help would be appreciated

Thank you

Joshua M. Kuebel
[EMAIL PROTECTED]




RE: Double Click

2001-07-18 Thread Wang, Jianming

Alex,

I have two frames, let's say left frame and right frame, in my app.  The
left frame contains a list of names. When use clicks on one of them, the db
is updated using the selected name and result is sent back to the right
frame.

Thanks.

JW.

-Original Message-
From: Alex Fernández [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 12:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Double Click


Hi Jianming!

I don't understand your problem. When users click on a link, a new page
appears. So, what is the problem?

Perhaps you want to say that users click a second time after the request
has got to the server (and the DB updated), but before the response gets
to them. In this case, you'd want to ignore the second request.

This then should be easy: if you find the data already updated in the
DB, then do nothing.

Un saludo,

Alex.

"Wang, Jianming" wrote:
> 
> Hi,
> 
> I have an hyperlink, when user click on it, it will update the database.
My
> question is how can I deal with the case when user double click on the
link?
> Thank you in advance for your help.
> 
> JW.



Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker

On Wednesday 18 July 2001 16:55 pm, you wrote:
> At 05:13 PM 18/07/01, you wrote:
>
> OK, I'm going to have to bail at this point - I really don't have the
> expertise to be able to answer this... (Out of interest, is there a cocoon
> mailing list & have you tried it?)
> Ideas that may or may not (probably the latter) be of use:
> * Automate the build process with ant to add the jars to tomcat/lib (A
> hack, but...)

Evil.

> * Try expanding the jars into WEB-INF/classes

Doesn't work.

> * Implement a seperate class loader - I'm using a URL classloader which
> works fine...

Never done that, but...

> * Add the classes to a seperate system classpath entry.

Haven't tried, but...


This seems to be a bug in Tomcat. Shouldn't someone who actually knows how it 
all works take a look?


John

-- 
John Baker, BSc CS.
Java developer, Linux lover.
I don't wanna rock, DJ.



Error 500: MissingResourceException

2001-07-18 Thread FDing

Hi:
I am a new user for the Jboss-2.4.0_Tomcat-3.2.2. We have application right
now running on the Weblogic, we try to convert this application  to run on
the JBoss_Tomcat.
I can start the Jboss with the Tomcat, also can run all the examples from
tomcat. I also created a simple servlet include input field and submit
button, that works too. But when I tried to run the servlet in the
application, I always got the Error:500. I trace the error message on the
server side, which is as following:

[Default] java.util.MissingResourceException: Can't find resource for
bundle jav
a.util.PropertyResourceBundle, key dispatcher.forwardException
[Default]   at
java.util.ResourceBundle.getObject(ResourceBundle.java:382)
[Default]
[Default]   at
java.util.ResourceBundle.getString(ResourceBundle.java:354)
[Default]
[Default]   at
org.apache.tomcat.util.StringManager.getString(StringManager.
java:136)
[Default]
[Default]   at
org.apache.tomcat.util.StringManager.getString(StringManager.
java:155)
[Default]
[Default]   at
org.apache.tomcat.util.StringManager.getString(StringManager.
java:194)
[Default]
[Default]   at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Requ
estDispatcherImpl.java:239)
[Default]
[Default]   at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(Reques
tDispatcherImpl.java:162)
[Default]
[Default]   at
org.apache.jasper.runtime.PageContextImpl.forward(PageContext
Impl.java:421)
[Default]
[Default]   at _0002ftest_0002ejsptest_jsp_0._jspService
(_0002ftest_0002ejsp
test_jsp_0.java:62)
[Default]
[Default]   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
a:119)
[Default]
[Default]   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Default]
[Default]   at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.servic
e(JspServlet.java:130)
[Default]
[Default]   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Default]
[Default]   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
e(JspServlet.java:282)
[Default]
[Default]   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
t.java:429)
[Default]
[Default]   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
500)
[Default]
[Default]   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Default]
[Default]   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrappe
r.java:405)
[Default]
[Default]   at org.apache.tomcat.core.Handler.service(Handler.java:287)
[Default]
[Default]   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
java:372)
[Default]
[Default]   at
org.apache.tomcat.core.ContextManager.internalService(Context
Manager.java:797)
[Default]
[Default]   at
org.apache.tomcat.core.ContextManager.service(ContextManager.
java:743)
[Default]
[Default]   at
org.apache.tomcat.service.http.HttpConnectionHandler.processC
onnection(HttpConnectionHandler.java:213)
[Default]
[Default]   at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
nt.java:416)
[Default]
[Default]   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
ool.java:501)
[Default]
[Default]   at java.lang.Thread.run(Thread.java:484)
[Default]

Please help me to figure out this problem and  thank you very much in
advance!

Flora





Re: Double Click

2001-07-18 Thread Alex Fernández

Hi Jianming!

I don't understand your problem. When users click on a link, a new page
appears. So, what is the problem?

Perhaps you want to say that users click a second time after the request
has got to the server (and the DB updated), but before the response gets
to them. In this case, you'd want to ignore the second request.

This then should be easy: if you find the data already updated in the
DB, then do nothing.

Un saludo,

Alex.

"Wang, Jianming" wrote:
> 
> Hi,
> 
> I have an hyperlink, when user click on it, it will update the database.  My
> question is how can I deal with the case when user double click on the link?
> Thank you in advance for your help.
> 
> JW.



RE: Double Click

2001-07-18 Thread William Kaufman

I can think of a few ways to deal with it:

1) Disallow double-clicking on the client, ever.  Add

ondblclick="javascript: return false;"

to the anchor tag(s).  (The servlet engine never knows whether the user
single- or double-clicked.  If you need that specific information, you
always need to deal with it on the client side.)

2) If you want to allow double-clicking to run the action twice, but you
don't want both clicks running at the same time, synchronize on a session
attribute.

3) If you want to disallow ever running the action twice in a row, set some
session attribute to remember the last action you ran, and reject any action
which matches the last action run.

-- Bill K. 

> -Original Message-
> From: Wang, Jianming [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 8:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: Double Click
> 
> 
> Hi,  
> 
> I have an hyperlink, when user click on it, it will update 
> the database.  My
> question is how can I deal with the case when user double 
> click on the link?
> Thank you in advance for your help.
> 
> JW.
> 



Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld

> OK, I'm going to have to bail at this point - I really don't have the
> expertise to be able to answer this... (Out of interest, is there a cocoon
> mailing list & have you tried it?)
> Ideas that may or may not (probably the latter) be of use:
> * Automate the build process with ant to add the jars to tomcat/lib (A
> hack, but...)
> * Try expanding the jars into WEB-INF/classes
> * Implement a seperate class loader - I'm using a URL classloader which
> works fine...
> * Add the classes to a seperate system classpath entry.
> 
> Sorry I can't be of more help!
> 
> Jim
> 

No Problem. Thank you very much. I'll post the solution to the list (if
I find one :-)

Bye

Michael



Re: Double Click

2001-07-18 Thread John Hebert

Wang, Jianming wrote:

> Hi,  
> 
> I have an hyperlink, when user click on it, it will update the database.  My
> question is how can I deal with the case when user double click on the link?
> Thank you in advance for your help.


You will have to detect the double-click in the client application, 
which I assume is a web browser. This will require something like 
JavaScript or VBScript, which is off-topic for this list. Try 
researching DOM (Document Object Model) on the web. There is a lot of 
information on DOM available.

Here is a link to help you get started: 
http://www.google.com/search?q=document+object+model


Now that I think about it, you could determine if the second click was 
submitted within a certain time frame and if any parameters had changed. 
If false, then ignore second request.

-- 
John Alex Hebert
[EMAIL PROTECTED]
System Engineer



RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a JSP

2001-07-18 Thread Sampige, Srinivas

Greg
 Also ,the same thing works great in weblogic also in addition to JRun.Any ideas ??
-Srinivas

-Original Message-
From: Greg Trasuk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Bug in Tomcat ? - forwarding HTTP request from a Servlet to
a JSP


Hello:

From what I can tell:

(1) In your PronServlet.java service() method, you are manually parsing the
form data using the stream returned by request.getInputStream()
(2) In the JSP page, Tomcat is attempting to parse the form data again.

The servlet API docs specify that you can only call getInputStream() once
on a request, and that doing so may cause problems reading parameters, so I
suspect that's the source of your problem.  I'm not entirely sure why the
generated JSP servlet is trying to read the parameters. Perhaps you're using
the parameters in the JSP page, or perhaps the JSP engine just reads it by
default, which would seem reasonable to me.

The simple workaround would be not to parse the form data in your
PronServlet, but to just use request.getParameter() and let Tomcat handle
it.  That's the way I've done it in the past, and haven't had problems.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 5:59 PM
To: [EMAIL PROTECTED]
Subject: Bug in Tomcat ? - forwarding HTTP request from a Servlet to a
JSP


Hi
 Iam using tomcat 3.2.1 and i have a servlet "PronServlet" that extends from
HttpServlet . Now i have a servlet "LogonServlet" that extends from servlet
"PronServlet" (which has got common functionality like checking for a valid
session ;has common methods that perform functionality like forwarding HTTP
request to another url). In "LogonServlet" i have some code that does some
processing and finally forwards the HTTP request to a JSP .Iam getting an
error which iam pasting below.I ran the same application on JRun and it
works fine .I noticed that if i removed the subclassing and instead
subclassed LogonServlet directly from HttpServlet then the application works
fine by forwarding the request to the next JSP .Here is the console output
.Iam attaching the source code of
 PronServlet and LogonServlet .Anybody from the Tomcat dev team any
ideas. ?


--
Creating a session for the user...
Forwarding request to the MENU page...
2001-07-17 02:17:22 - Ctx( /pron ): Exception in: R( /pron +
/webUi/pronMenu.jsp + null) - java.lang.
IllegalArgumentException: Short Read
at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238)
at
org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101)
at
org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:691)
at
org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
at
org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
at
org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRe
questFacade.ja
va:222)
at
org.apache.jasper.servlet.JspServlet.preCompile(JspServlet.java:326)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:370)
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.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)
at
com.boeing.pron.servlets.LogonServlet.handleApplicationEvent(LogonServlet.ja
va:61)
at com.boeing.pron.servlets.PronServlet.service(PronServlet.java:56)
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
onnectionHandl
er.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)

--

 <>  <>



  1   2   >