Possible to forward a request to another server?

2004-05-27 Thread Wendell Holmes
Is it possible to forward a request from one Tomcat server to another?  I
looked at the API's and it seems to say the resource must be located on the
same server and in the same servlet context.  I'm needing to have some way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent to an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a servlet
to wrap the original request and forward on?

Thanks 

Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107


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



RE: Possible to forward a request to another server?

2004-05-27 Thread Wendell Holmes
Thanks, Yoav.

I will try to write something to wrap the request.  The streaming back part
answers my question about how to handle the response.

I could simply use IIS to redirect the original request, but the server
address would be unreachable for the client as only the web server would
have a route across the firewall.

Wendell

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:53 AM
To: Tomcat Users List
Subject: RE: Possible to forward a request to another server?



Hi,
Like HttpServletResponse#sendRedirect?  It's not like a forward in that
the client URL changes, but it does pass the request to another server.
Beyond that, you COULD write something that'd wrap the request, invoke
another server to handle it, and stream the response to your own client.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Wendell Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: Possible to forward a request to another server?

Is it possible to forward a request from one Tomcat server to another?
I
looked at the API's and it seems to say the resource must be located on
the
same server and in the same servlet context.  I'm needing to have some
way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent
to
an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a
servlet
to wrap the original request and forward on?

Thanks

Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107


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




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


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

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



need workers2.properties for multiple tomcats w/ same IP, diff po rts

2004-05-20 Thread Wendell Holmes
Can someone point me to a tutorial/example of a workers2.properties file
that shows how to set up several instances of Tomcat on the same machine,
different ports?

What I want to do is have a mapping from worker1 to /context1 on 1st tomcat
instance and a worker2 that handles requests to /context2 on the second
tomcat instance.

I'm using tomcat4.1.29 and IIS 5.0, all works okay for a single instance of
tomcat.


Thanks for any clues,

Wendell Holmes
Education Logistics, Inc.
Missoula, MT

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



RE: (Query)Running Program on Tomcat

2004-04-20 Thread Wendell Holmes
Are you saying you have /webapps
/greetings
web.xml
whatever.class
index.html
for your file structure?

Wendell Holmes

-Original Message-
From: mohit agarwal [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 7:12 AM
To: [EMAIL PROTECTED]
Subject: (Query)Running Program on Tomcat


Hello,
 Please help me come out of this problem.
 The environment i m having is:
 Operating System - Windows XP
 J2sdk1.4.2_04
 Tomcat 5.0.19
 
 I am able to compile my servlet program, but when it comes to running it 
 i got the HTTP Status Error 404 which points to file not found.
 
 I came to that i need to do some configuration settings.
 Asper the info i had uncommented both the Servlet and the Servlet -Mapping
for the invoker servlet which are commented out in this version.
 
 I was hope ful that the program would run biut it still shown the same
error.
 
 The entire program consisting of index.html , the .class file and the
web.xml is contained in the greeting folder which is placed inside 
 the webapps folder..
 
 Try to point the solution to my problem.Moreover tell me if for JSP also i
need to do some configuration settings.
 
 Regards,
 mohit
 

Yahoo! India Matrimony: Find your partner online.

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



RE: JDBC problems with MySQL

2004-03-16 Thread Wendell Holmes
I think with Tomcat 5.0.x, you need to put the context.xml file under
/conf/Catalina/localhost as web-app.xml

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 2:38 PM
To: 'Tomcat Users List'
Subject: RE: JDBC problems with MySQL


The .cap file can be open with notepad or whatever.

I have it in the META-INF directory.  If I copy the contents of this into
the server.xml file it starts to work.

Gotta be something simple that I am doing wrong here.

Steve

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 2:07 PM
To: Tomcat Users List
Subject: Re: JDBC problems with MySQL

Steve,
post the Resource  ResourceParams tags from your context for the 
webapp. State whether it's in a context.xml file, server.xml or whatever.

Perhaps we can spot something.

Adam

ps this email has got some weird font - my mail reader is up the creek 
at the mo'. sorry

On 03/16/2004 09:47 PM Steve Gums wrote:
 Just an update.
 I included a file, that works great on my webapp that is already running
on
 an old system, and you can see the change I made, which allows the app to
 run.  Not sure if this helps anyone.
 
 package com.voast.vkey.utils;
 
 import java.io.*;
 import java.sql.*;
 import javax.sql.*;
 import javax.naming.*;
 
 public class DBUtils {
 
public static Connection getConnection () throws Exception {
 
   Connection con = null;
   /* Trying to figure this error out. --Temp comment--
   try {
  Context ctx = new InitialContext();
  if ( ctx == null ) {
 throw new Exception (No Context);
  }
  DataSource ds;
  ds = (DataSource)ctx.lookup(java:comp/env/jdbc/VKEYDB);
  if ( ds != null ) {
 con = ds.getConnection ();
  }//end ds != null
   }//try
   catch ( Exception e ) {
  LoggerUtil.globalLog (ERROR,exception occured:  + 
e.toString() );
  throw (e);
   }//catch
   */
   try {
  Class.forName(com.mysql.jdbc.Driver).newInstance();
  con = DriverManager.getConnection(jdbc:mysql://localhost/vkey,
  USER,PASSWORD);
   }//try
   catch (Exception e) {
  LoggerUtil.globalLog (DEBUG,exception occured:  + 
e.toString() );
  throw (e);
   }//catch
 
   return con;
 
}//GetConnection
 
 }//DBUtils
 
 -Original Message-
 From: Steve Gums [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 16, 2004 10:57 AM
 To: [EMAIL PROTECTED]
 Subject: JDBC problems with MySQL
 
 Users
 
 I know there has been a bazillion messages about this.  I
 searched the archives and couldn't find anything to solve my extremely
 annoying issue.  It has to be something really simple but I just can't
find
 it.
 
  
 
 My System:
 
 Solaris 9
 
 Tomcat 5.0.19
 
 MySQL 4.0.18
 
 Connector J 3.0.11
 
  
 
 I have the connector J jar in the /usr/local/tomcat/common/lib dir.
 
 I have basically copied the HOW-TO located at.
 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
 to.html
 
  
 
 and my result is this.
 
 
 Results
 
 
 Foo Not Connected
 Bar -1
 
  
 
 I have tried everything I can think of.  I verified the database and the
 user/password combo.  Works good.  I even created a simple Java app that
 connects and performs queries, which worked.  That would indicate
everything
 is cool with the Connector J.  I have verified that the jdbc/TestDB is in
 the context and it is.  As best I can tell ds (DataSource) is coming back
 not null, but the call to getConnection is failing.  I created a little
more
 verbose web app and get the following message.
 
 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
 class '' for connect URL 'null', cause: No suitable driver
 
  
 
 This has to be something simple, because this works fine on my old
machine.
 I know I am forgetting some small step that I did the first time and
failed
 to do again.  Trust me I have checked the configs about a million times,
and
 can't find any differences.   Any help would be appreciated.
 
  
 
 Sorry to be so vague here, but this is really simple. I don't know what
else
 to include for info.
 
  
 
 Steve Gums
 
 [EMAIL PROTECTED]
 
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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



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

Unclear on Host vs. Service concept

2004-01-23 Thread Wendell Holmes
I've read the docs but am unclear on what actually happens if I have muliple
Services defined vs. multiple ( virtual) hosts.  I have some web apps that
are used by about 30 clients.  Each client accesses a unique database.  I
have been running these on JRun 4 for over a year, but would like to migrate
to Tomcat.  Do I need to have a separate Service for each client or just a
virtual host for each one?  In JRun, I create a JRun 'server' for each
client, drop in the web apps and configure the web.xml file.  Each client
runs in it's own process ( Win2k server task mgr shows 30 jrun.exe's running
).  

If I set up virtual hosts for each client, will I have enough integrity for
each client to insure that one crashing doesn't affect the others?  Can
host1 and host2 both run distinct instances of mapServlet w/o mixups?  Or do
I need to have separate Service/Connector/Host elements for each client?

Thanks for any help or pointers,

Wendell Holmes
Education Logistics, Inc.


RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).

2003-12-23 Thread Wendell Holmes
Try changing the extension_uri to forward slashes  -
/jakarta/isapi_redirect.dll

Wendell Holmes

Sorry for not quoting, but it bounced as too large for mailserver 


RE: JSP not reloading

2003-12-23 Thread Wendell Holmes
Have you checked the tomcat \work folder to be sure the JSP was recompiled?
Maybe try deleting the old compiled jsp files and see if they're regenerated
correctly.

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 10:49 AM
To: 'Tomcat Users List'
Subject: RE: JSP not reloading


It is definitely NOT a client-side cache issue.

One a completely separate machine that has never loaded that page, I'll
get the 'old' output of the JSP. And regardless of this, this *did* work
up until last week, on one machine, using one browser (IE 6).


 -Original Message-
 From: MS [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 23, 2003 11:44 AM
 To: Tomcat Users List
 Subject: Re: JSP not reloading
 
 
 Which browser are you using?  I've had some caching problems with IE.
 
 - Original Message - 
 From: Mike Curwen [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, December 23, 2003 12:23 PM
 Subject: RE: JSP not reloading
 
 
  Alright, I've tried upgrading to 4.1.29.  The exact same 
 behaviour is 
  occuring with this version as well!
   
  I'm kinda desperate here... developing under these conditions is 
  negative fun.
  
  Someone just give me a hint! Anything!!  :)
  
  
   -Original Message-
   From: Mike Curwen [mailto:[EMAIL PROTECTED]
   Sent: Monday, December 22, 2003 12:18 PM
   To: [EMAIL PROTECTED]
   Subject: JSP not reloading
   
   
   Hi everyone,
   
   This has been covered before, I know.  But there doesn't seem
   to be a common agreement on what the problem (and therefore 
   solution) is. 

   Our Tomcat 4.1.24 instance has spontaneously decided to no
   longer recognize JSP changes! I say spontaneously, because we 
   were running fine, in production, a number of different 
   sites.  As it happens, a couple of these sites are getting 
   'tweaked'.. and so there are a large number of 'small 
   changes' being made to the JSP pages. And as of Thursday last 
   week, here's what we're observing...

   From the 'ok' state, we can get away with making one change to a 
   JSP
   page.  Then we click refresh in the browser, and see the
   change we made. For every subsequent change to the JSP, the 
   change is NOT reflected in the browser.  That page is now 
   considered in the 'not ok' state.  We go for lunch, or come 
   back the next day.  If we make a change, it is recognized. 
   (So the page was back in the 'ok' state)... but like before 
   lunch, or yesterday, after that one change, it's back to the 
   'bad' state.  
   
   This applies to JSPs invoked from the address bar, AND
   through a JSP Include on the server-side. Even after 
   'touching' the parent JSP, the 'included' one still appears 
   as the 'old' version.
   
   The ugly hack:  If my JSP is called foo.jsp, I edit foo.jsp
   for my changes.  Then in a command line window I type cp 
   foo.jsp fooX.jsp (where X is an ever increasing integer). And 
   then I call fooX.jsp from the browser. 
   
   To ugly fix: We must stop Tomcat, clear the work directory's
   folder for that web app, and restart.  Then we're back to 
   every page in the 'ok' state for just one change.
   
   There have been *zero* configuration changes to any of
   httpd.conf, workers.proprties and server.xml files in the 
   timeframe of when it all went south.
   
   It's not the 4.1.27 reloading issue.
   We're on the internal network, there is no proxy caching. 
 It's not 
   browser caching. It's not a server timestamp out of sync.
   
   Here's one thing of interest: One of the contexts that is
   under development has the reloadable=true in its Context 
   entry. The other does not.  But that aside, BOTH of these web 
   apps were reliably picking up changes, up until last week. 
   (Does reloadable have anything to do with JSP's or just items 
   under WEB-INF ?)
   

   Slackware 9
   Apache 2.0.45
   Tomcat 4.1.24
   JK (not sure of version)
   
   
   Has anyone run into this behaviour??  Is there a FAQ or
   google page covering this?
   
   I know this little bug has been around in some form or
   another for quite some time. Here's one entry: 
   http://www.mail-archive.com/[EMAIL PROTECTED]/msg
  99927.html
  
  
  I'm thinking I'll have to try upgrading to 4.1.29.
  
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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


RE: mod_jk2/2.0.2 failure in Tomcat 5.0.16 / Apache 2.0.48

2003-12-23 Thread Wendell Holmes
If jkstatus works, then Apache is working with Tomcat, no?
IIRC, the actual path to the jsp-examples is /webapps/examples/jsp-examples,
so your uri mapping should be [uri:/examples/jsp-examples/*] I think.  

You should have an Apache error log that says 'file does not exist' where
you tried to access /jsp-examples, since Apache nor jk2 would have a path to
that dir.

Wendell

-Original Message-
From: Jeremy Barth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 11:42 AM
To: [EMAIL PROTECTED]
Subject: mod_jk2/2.0.2 failure in Tomcat 5.0.16 / Apache 2.0.48


I've looked at the list archives, but can't find much on JK2 with
Tomcat 5 (though there's plenty of material on Tomcat 4).  I'm sure
I'm missing something obvious, but I can't get even the example webapps 
to work with Apache 2.0.48 / Tomcat 5.0.16 / JK2.  

I am following the example given here (yes, the documentation that
comes with Tomcat 5 refers to this v4.1 page):

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html

My config and log files are below, but in essence here is the problem:

  http://servername/jkstatus   Works -- verify JK module status
  http://servername:8080/jsp-examples  Works -- talk directly to Tomcat
  http://servername/jsp-examples   FAILS -- via JK2 connector


Here are my config files, very simple and based on that confighowto.html:


workers2.properties


[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# The documentation refers to examples but there is no such webapp in 
# Tomcat 5; there is, however, a jsp-examples webapp
#
[uri:/jsp-examples/*]
info=Map the whole webapp
worker=ajp13:localhost:8009

# Set up jkstatus and debug logging
#
[status:status]
info=Status worker, displays runtime info

[uri:/jkstatus/*]
info=Display status info and checks config file for changes
group=status:
worker=status:status

[logger]
level=DEBUG

[logger.file:my_logfile]
level=DEBUG
file=/usr/local/apache/logs/jk2.log

[workerEnv:]
info=Global server options
logger=logger.file:my_logfile
   



jk2.properties


Empty (i.e. just accept the defaults, e.g. channelSocket.port=8009)




server.xml


Server port=8005 shutdown=SHUTDOWN debug=7

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
/

  GlobalNamingResources

Resource name=UserDatabase
  auth=Container 
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8080
   enableLookups=false
   redirectPort=8443
   acceptCount=100
   connectionTimeout=2
   disableUploadTimeout=true /

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false
   redirectPort=8443
   debug=5
   protocol=AJP/1.3 /

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log.
  suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0
 resourceName=UserDatabase/

  Host name=localhost
debug=0
appBase=webapps
unpackWARs=true
autoDeploy=true
xmlValidation=false
xmlNamespaceAware=false

Logger className=org.apache.catalina.logger.FileLogger
directory=logs
prefix=localhost_log.
suffix=.txt
timestamp=true/
  /Host
/Engine
  /Service
/Server



httpd.conf
--

# Add in the jk2 module
LoadModule jk2_module modules/mod_jk2.so



The log files:

/usr/local/apache/logs/jk2.log simply says it couldn't connect, but no
indication is given as to why:

( info ) [jk_logger_file.c (184)]  Initializing log file 
   /usr/local/apache/logs/jk2.log
(debug ) [jk_env.c (383)]  env.getByName(): Get by name workerEnv 1edb98
(debug ) [jk_env.c (248)]  env.createBean2(): Create [lb] lb
(debug ) [jk_env.c (248)]  env.createBean2(): Create [threadMutex] (null)
(debug ) [jk_env.c (312)]  

RE: Newbie question

2003-12-11 Thread Wendell Holmes
Tomcat will not serve any files in WEB-INF or below that directly to a user,
so that's probably why it's not in the dir listing.

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 9:55 AM
To: Tomcat Users List
Subject: Re: Newbie question


First:
Did Netbeans create a deployment descriptor for you (WEB-INF/web.xml)?
If so, look for a servlet mapping in the descriptor. It will look something 
like this:

  servlet-mapping
servlet-nameHelloWorldServlet/servlet-name
url-pattern/HelloWorld/url-pattern
  /servlet-mapping

HelloWorldServlet being the name of your servlet and and HelloWorld
being 
the mapping.

If so, you can access your servlet with the following URL:
http://localhost:8080/YOUR_APP_NAME/HelloWorld

Second:  
If you create your own directory under TOMCAT_HOME/webapps,
you will need to create a sub-directory called WEB-INF in order for Tomcat
to 
autoDeploy it as an application.





On Thursday 11 December 2003 11:50 am, you wrote:
 Hello All,

 Hope someone can help me out.
 I developed a servlet using Netbeans and when I tried to deploy it I had
 problem
 In an attempt to debug, I went back to Netbeans and created the simplest
 servlet I could,
  it just prints out some text. Works fine in development environment.
 Netbeans has option to build test.war file for me, did that.
 put test.war file in $CATALINA_HOME/webapps
 restarted tomcat
 I can see new directory test with WEB-INF/classes/test.class in it
 point browser an http:/www.xxx.yyy.zzz:8080/test and I get directory
 listing with nothing in it
 if I make junk.html file in $CATALINA_HOME/webapps/test. I can load it
like
 $CATALINA_HOME/webapps/test/junk.html
 if I just give it http:/www.xxx.yyy.zzz:8080/test I see directory listing
 with junk.html
 shouldn't I see WEB-INF in directory listing??
 I've messed with Netbeans/Tomcat in the past and I thought all I had to do
 was make war file
 dump it in webapps dir and restart Tomcat
 seems like a path problem to the servlet

 linux 2.4.18 tomcat 5.0.16

 Anybody see what I'm missing

 Thanx
 Dave


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

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


RE: newbie help please, localhost not found

2003-12-06 Thread Wendell Holmes
Have you checked to see if Tomcat is actually running?  Type 'netstat' at a
command prompt to see if there is a service listening on port 8080.  If it's
not there, try checking the logs.

-Original Message-
From: D. Gilbert [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 06, 2003 8:56 AM
To: Tomcat Users List
Subject: newbie help please, localhost not found


When I type http://localhost:8080 in Internet Explorer it says The page
cannot be displayed.
I've looked through the archives but couldn't find anything.
The running.txt file that comes with Tomcat lists only 3 possibilites for
why it doesn't work.
I've tried changing the port number, I'm using Windows XP so the environment
issue doesn't apply
and I'm pretty sure that I'm not behind a proxy as I am using my own PC at
home.
I'm pretty sure the JDK is installed ok as I can run javac. I tried changing
JAVA_HOME and CATALINA_HOME to
incorrect values and that made things worse so I'm sure they are set
correctly.
I've tried 2 versions of Tomcat 4.0.1 and 4.1.29.
When I startup 4.0.1 I get the messages

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

which are correct according to my book.
Can anyone say what the problem is, or any ways to debug it?

It should run on a standalone home PC shouldn't it? I don't need to be
connected to a LAN or anything do I?

I've been trying to solve this for 2 weeks now so I would really appreciate
any help please.


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


RE: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on AJP13 connector

2003-11-25 Thread Wendell Holmes
Looks like you've set up a worker for ajp12 instead of ajp13.

[jk_ajp12_worker.c (242)]: Into
jk_worker_t::get_endpoint


Wendell


-Original Message-
From: Bhavdeep Sharma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 7:21 AM
To: Tomcat Users List
Subject: Tomcat 4 - IIS 5 on Win 2K: Unable to connect IIS to tomcat on
AJP13 connector


Hi all,

I am running tomcat 4.0 as service on Win 2K
I am trying to connect IIS to tomcat on AJP 13 connector using JK1.2
(isapi_redirect_1.2.5.dll)

I try to access the sample JSP page using IIS and get the error Page cannot
be displayed 
The same JSP page works fine if I access it directly from Tomcat.
I have AJP 1.3 entry in server.xml file as un-commented.

To verify that IIS is connecting to Tomcat or not I stopped the Tomcat
service and then try to access the JSP page from IIS. I still get exactly
the same error. 
Even the ISAPI log is also same irrespective of that Tomcat service is
running or not.

The content of the ISAPI log is pasted bellow. 

[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc
started
[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (759)]: In HttpFilterProc
Virtual Host redirection of /bhsharma/examples/jsp/num/numguess.jsp
[Tue Nov 25 17:21:18 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Nov 25 17:21:18 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/bhsharma/examples/jsp/num/numguess.jsp'
[Tue Nov 25 17:21:18 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (765)]: In HttpFilterProc
test Default redirection of /examples/jsp/num/numguess.jsp
[Tue Nov 25 17:21:18 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Nov 25 17:21:18 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/jsp/num/numguess.jsp'
[Tue Nov 25 17:21:18 2003]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (775)]: HttpFilterProc
[/examples/jsp/num/numguess.jsp] is a servlet url - should redirect to ajp13
[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (838)]: HttpFilterProc check
if [/examples/jsp/num/numguess.jsp] is points to the web-inf directory
[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (878)]: HttpExtensionProc
started
[Tue Nov 25 17:21:18 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Tue Nov 25 17:21:18 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Tue Nov 25 17:21:18 2003]  [jk_isapi_plugin.c (913)]: HttpExtensionProc got
a worker for name ajp13
[Tue Nov 25 17:21:18 2003]  [jk_ajp12_worker.c (242)]: Into
jk_worker_t::get_endpoint
[Tue Nov 25 17:21:18 2003]  [jk_ajp12_worker.c (137)]: Into
jk_endpoint_t::service
[Tue Nov 25 17:21:18 2003]  [jk_connect.c (158)]: Into jk_open_socket
[Tue Nov 25 17:21:18 2003]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 2852
[Tue Nov 25 17:21:19 2003]  [jk_connect.c (174)]: jk_open_socket, after
connect ret = -1
[Tue Nov 25 17:21:19 2003]  [jk_connect.c (203)]: jk_open_socket, connect()
failed errno = 61
[Tue Nov 25 17:21:19 2003]  [jk_ajp12_worker.c (151)]: In
jk_endpoint_t::service, sd = -1
[Tue Nov 25 17:21:19 2003]  [jk_ajp12_worker.c (169)]: In
jk_endpoint_t::service, Error sd = -1
[Tue Nov 25 17:21:19 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed
[Tue Nov 25 17:21:19 2003]  [jk_ajp12_worker.c (180)]: Into
jk_endpoint_t::done


I searched the Google on jk_open_socket, connect() failed errno = 61. Got
similarly faced problem but not able to get/understand the solution that
will work for me.

Your help is highly appreciated. 

Thanks,
Bhavdeep

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


RE: Tomcat Crashing

2003-11-19 Thread Wendell Holmes
Look for an error log named 'hs_err*.log' for a trace.  It's usually dumped
into the dir that TC starts from.

Wendell

-Original Message-
From: Bender, Christopher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:49 AM
To: Tomcat Users List
Subject: RE: Tomcat Crashing


I am running windows 2000.

Is there any way that my java code could be popping the stack or something
along those lines?

-Original Message-
From: Peter Guyatt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 9:44 AM
To: Tomcat Users List
Subject: RE: Tomcat Crashing


Hi There,

Which platform are you running on if its linix or solaris then it
could be
either the SIGINT (ctrc-c) or SIGHUP (your console closing) causing it to
exit.

Thanks

Pete

-Original Message-
From: Bender, Christopher [mailto:[EMAIL PROTECTED]
Sent: 19 November 2003 14:42
To: Tomcat Users List
Subject: Tomcat Crashing


Hey,

I am fairly new to Tomcat and developing a web-app that does some database
work.

Lately, Tomcat (4.1.29) will sometimes inexplicably crash without error.  My
Tomcat console window just closes and I get an apache error, 500 Internal
Server Error, in my browser, (apache and tomcat liked with mod_jk2).

When I look in the log files, I do not see anything that seems abnormal. I
wish I could give more information but Im not even sure where to look right
now.  Has anyone in the community encountered a similar problem and found
what the cause may be?

If there is somewhere else I could look for error information please let me
know.

Thanks,
Chris

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


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


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


RE: Installation problem

2003-11-19 Thread Wendell Holmes
To test that you've correctly set the paths, open a command window and type
'cd %java_home%'.  This should put you in the java home dir.  Then try 'cd
%catalina_home%.  If this puts you in the Tomcat home dir, you're good so
far.  Now, type 'catalina run'.  This should start tomcat in the same
window, and if it still fails to start, you'll have a trace to look at for
further clues.

Wendell


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 12:03 PM
To: [EMAIL PROTECTED]
Subject: RE: Installation problem


How are you starting Tomcat? You maybe should try setting the variables
globally via Windows Environment settings (on Windows XP, right-click on My
Computer, select Properties, Advanced tab, Environment Variables button).
Add entries under System variables for CATALINA_HOME and JAVA_HOME here and
then try starting tomcat. It may not be picking up your environment variable
changes and thus won't start. Not sure if Tomcat 5 supports it, but you
could also try running the Set commands then starting tomcat manually by
running tomcat 5.0/bin/startup...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 2:02 PM
To: Tomcat Users List
Subject: RE: Installation problem


Hi angelina,

Tried as told.

set the path in the older windows way, but still finding the same flickering
window.

if i type manually
http://127.0.0.1:8080/;
i get page cannot be displayed message.

Dont know what to do. 

Hoping to recover from this problem

Please help.

Thanks in anticipation

 
 Sometimes we've had problems with older Tomcats on Windows because of 
 the space in the path name for your environment variable. I'd bet it'd 
 help here too.
 
 Try doing it the old Windows way, like this:
 
 c:\Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0
 c:\Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2
 
 BTW, you can double-check these from a Windows command
 prompt by running dir /X.
 
 Good luck!
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 1:30 PM
 To: Tomcat Users List
 Subject: Re: Installation problem
 
 
 Hi Harry,
 
 Did as told.
 
 c:\Set CATALINA_HOME=C:\Program Files\Apache Software 
 Foundation\Tomcat 5.0
 
 c:\Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
 
 Still i am getting this flickering screen.
 
 Please tell me how to solve this problem.
 
 Thanks in anticipation
 
  
  Hello
  
   I changed that path name to
   
   C:\Program Files\j2sdk_nb\j2sdk1.4.2
  
  If you are talking about your $PATH system environment variable, the  
  setting should be:
  
  C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
  
   Til now , I didnt try to create any path for JAVA_HOME AND 
   CATALINA_HOME, do i have to do that?
  
  You need both. JAVA_HOME should be:
  
  C:\Program Files\j2sdk_nb\j2sdk1.4.2
  
  CATALINA_HOME should be the root-installation folder for Tomcat,  
  wherever it is - analogous to JAVA_HOME.
  
  Good luck!
  
  Harry Mantheakis
  London, UK
  
  
   I uninstalled and reinstalled tomcat still
   experiencing the same flickering window error.
   
   While installing tomcat during the JVM path selection
   the default path listed was
   
   C:\Program Files\Oracle\jre\1.1.7
   
   I changed that path name to
   
   C:\Program Files\j2sdk_nb\j2sdk1.4.2
   
   Til now , I didnt try to create any path for JAVA_HOME AND 
   CATALINA_HOME, do i have to do that?
   
   Your help is most appreciated..
   
   Thanks in anticipation.
   
   bfn
   
   Try uninstalling, and then re-installing Tomcat.  It
  should then   pick up your J2SDK install path.  If
  this doesn't work, then try  
 ÊTALINA_HOME%\bin\catalina run
  ,  and post the error messages on the list for more
  help. 
   [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
   Sorry to bother you with this elementary question.
  But being a   neebie I am finding difficulties in installing  
  tomcat 5.0 
   1. I ran the installation file for installing the
  tomcat  5.0.
   2. Then I ran the j2sdk setup file , since tomcat
  was asking for a   JVM. 3.
   i. Now, i clicked the Start Tomcat icon the
  windows  key + Program files + Apache tomcat. I find
  a window  disappearing as soon as it appears.
   
   ii. I tried again by running the catalina.bat or
  startup.exe file   icon in the bin folder of tomcat. Again  , 
  i find the disappearing window.
   
   iii. Even if i run that file in the command prompt i
  am  getting the same response.
   
   I also need to know as to how I could allow a friend
  access my   files via the browser. i.e where should i make  
  the appropriate modifications to allow him to view my  files. 
   
   Your help will be most appreciated.
   
   Thanks for your help inanticipation
  
  
 
 
 --
  --- To unsubscribe, e-mail:
 [EMAIL PROTECTED] For additional
  commands,  

RE: Connection failed from other computers

2003-11-18 Thread Wendell Holmes
Is there a firewall between the other computer and installedTomcat that
might not allow traffic on 8088?  

Does Tomcat not start at all as an NT service, or does it have problems with
.jsp files?

Wendell

-Original Message-
From: LOU, YONGMING (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 11:14 AM
To: 'Tomcat Users List'
Subject: RE: Connection failed from other computers


Ralf,
I changed the port number from 8080 to 8088. everything works fine
locally as long as I start tomcat as an application, not as a NT service.
I did try connect it from another computer use http://ipaddress:8088/
It failed. Connection is refused.
Yongming

-Original Message-
From: Ralf B [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 18, 2003 12:06 PM
To: Tomcat Users List
Subject: Re: Connection failed from other computers


Hi,

are you sure you are running Tomcat on port 8088? For that you need to
modify server.xml. Standard is 8080 and if this port is taken already, the
batch
file will fail. 

If you want to access Tomcat from another computer you will need to use
either its name or its IP address like: http://10.10.2.100:8088/

Ralf



 Hi,
   I installed tomcat 4.1.29 on window 2000 professional. I selected it
 as service. It starts and stops fine. But I can not access it from
 http://localhost:8088/ http://localhost:8088/  (8080 is used by another
 application). However it will work fine when I start tomcat from DOS or
 click start,...
  
 It always failed when I try http://installedTomcat:8088/
 http://installedTomcat:8088/  from other computers. All my configuration
 files are default. Where and how can I change the configuration file to
 make
 tomcat accessible from other computers?
 Thank you very much.
 
 Yongming
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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

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


Tomcat crash from catalina.bat, but not from starting as NT Servi ce

2003-11-17 Thread Wendell Holmes
I have an app that causes a Tomcat crash when I start Tomcat5 from the
command line with 'catalina run'.  I get a native code exception that
follows this explanation.  When I start Tomcat 5 as an NT service (chosen
during install), the app runs okay.  What's causing the difference.  I've
tried following all the suggestions for increasing both stack and heap sizes
in catalina.bat, the registry, jvm.cfg and NT system env variables, all to
no avail. 

If you can offer any suggestions, please use baby steps, as I've been
confused whether to use -mx128m, -Xmx128m, -Dsomethingelse. 

Thanks,
Wendell Holmes

Here's the exception trace:

INFO: Server startup in 3125 ms
WebQueryBean:  executing the WebQueryBean constructor...
An unrecoverable stack overflow has occurred.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_STACK_OVERFLOW (0xc0fd) occurred at
PC=0x1958C857
Function=[Unknown.]
Library=C:\WINNT\system32\edulogWeb.dll

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.


Current Java thread:
at com.edulog.dbms.edulognt.edulogDBMS.GetAttendSchools(Native
Method)
- locked 0x10958b38 (a com.edulog.dbms.edulognt.edulogDBMS)
at
com.edulog.webquery.WebQueryBean.setAttendSchools(WebQueryBean.java:679)
at
com.edulog.webquery.WebQueryBean.verifyAddress(WebQueryBean.java:1517)
at
com.edulog.webquery.WebQueryBean.verifyAddress(WebQueryBean.java:1475)
at
com.edulog.webquery.WebQueryBean.adjustBeanState(WebQueryBean.java:316)
at
org.apache.jsp.webquery.WebQuery_jsp._jspService(WebQuery_jsp.java:87)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:156)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
at java.lang.Thread.run(Unknown Source)

Dynamic libraries:
0x0040 - 0x00406000 C:\Program
Files\Java\j2re1.4.2_02\bin\java.exe
0x77F8 - 0x77FFA000 C:\WINNT\system32\ntdll.dll
0x77DB - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll
0x7C57 - 0x7C623000 C:\WINNT\system32\KERNEL32.dll
0x77D3 - 0x77D9E000 C:\WINNT\system32\RPCRT4.dll
0x7800 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x0800 - 0x08138000

How to set stack size in Tomcat 5 ?

2003-11-16 Thread Wendell Holmes
I can't find an example of setting the stack/heap sizes in Tomcat 5.  I
found references in the docs to setting JAVA_OPTS, and tried that in my
Windows 2000 system env variables, but the stack trace shows the same size
both before and after.  I'm trying to increase the size using '-Xss 1024k'.
Is there a way to do this from the command line?  I used to do it in Tomcat
4 by adding the switch to the default startup command that called java.exe,
but it doesn't work using tomcat.exe.

Thanks for any clues,

Wendell Holmes
Education Logistics, Inc.
http://www.edulog.com
wholmes_at_edulog.com


Jasper error compiling some .jsp files

2003-11-13 Thread Wendell Holmes
Hi,

I'm getting Jasper compile errors on a couple of .jsp files, most run fine.
The identical .jsp files compile okay on another machine.  I'm running
Tomcat 4.1.29 with IIS 5.0 on the problem computer.  Included below are
excerpts from both the /edulogweb and localhost log files.  Please note in
the localhost log file that the third line contains Info: Compile:
javaFileName=C:\tomcat\work\Standalone\localhost\edulogweb\quicklookup\/quic
klookup_jsp.java.  Is the \/ before the filename a problem?  Where could
this have come from?  

Also, 81 lines down, the javac.exe compiler instructions seem to be
truncated after 1010 bytes. Is this a problem with the path being too long,
or might this be a logger limitation?

Thanks,

Wendell Holmes
Education Logistics, Inc.
owh_at_edulog.com

When I try to access one of these .jsp's I get the following error in the
localhost log file:
*** localhost log file 
2003-11-13 13:44:42 Error compiling file:
C:\tomcat\work\Standalone\localhost\edulogweb\quicklookup\/quicklookup_jsp.j
ava [javac] Compiling 1 source file


2003-11-13 13:44:42 Info: Compile:
javaFileName=C:\tomcat\work\Standalone\localhost\edulogweb\quicklookup\/quic
klookup_jsp.java
 
classpath=/C:/tomcat/webapps/edulogweb/WEB-INF/classes/;/C:/tomcat/webapps/e
dulogweb/WEB-INF/classes/;C:/tomcat/shared/classes/;C:/tomcat/shared/lib/edu
log.jar;C:/tomcat/shared/lib/JFreeChart.jar;C:/tomcat/shared/lib/reports.jar
;C:/tomcat/common/classes/;C:/tomcat/common/endorsed/xercesImpl.jar;C:/tomca
t/common/endorsed/xmlParserAPIs.jar;C:/tomcat/common/lib/activation.jar;C:/t
omcat/common/lib/ant.jar;C:/tomcat/common/lib/commons-collections.jar;C:/tom
cat/common/lib/commons-dbcp-1.1.jar;C:/tomcat/common/lib/commons-logging-api
.jar;C:/tomcat/common/lib/commons-pool-1.1.jar;C:/tomcat/common/lib/jasper-c
ompiler.jar;C:/tomcat/common/lib/jasper-runtime.jar;C:/tomcat/common/lib/jdb
c2_0-stdext.jar;C:/tomcat/common/lib/jndi.jar;C:/tomcat/common/lib/jta.jar;C
:/tomcat/common/lib/mail.jar;C:/tomcat/common/lib/naming-common.jar;C:/tomca
t/common/lib/naming-factory.jar;C:/tomcat/common/lib/naming-resources.jar;C:
/tomcat/common/lib/servlet.jar;C:/tomcat/common/lib/tools.jar
 cp=C:\tomcat\webapps\edulogweb\WEB-INF\classes
 cp=C:\tomcat\webapps\edulogweb\WEB-INF\classes
 cp=C:\tomcat\shared\classes
 cp=C:\tomcat\shared\lib\edulog.jar
 cp=C:\tomcat\shared\lib\JFreeChart.jar
 cp=C:\tomcat\shared\lib\reports.jar
 cp=C:\tomcat\common\classes
 cp=C:\tomcat\common\endorsed\xercesImpl.jar
 cp=C:\tomcat\common\endorsed\xmlParserAPIs.jar
 cp=C:\tomcat\common\lib\activation.jar
 cp=C:\tomcat\common\lib\ant.jar
 cp=C:\tomcat\common\lib\commons-collections.jar
 cp=C:\tomcat\common\lib\commons-dbcp-1.1.jar
 cp=C:\tomcat\common\lib\commons-logging-api.jar
 cp=C:\tomcat\common\lib\commons-pool-1.1.jar
 cp=C:\tomcat\common\lib\jasper-compiler.jar
 cp=C:\tomcat\common\lib\jasper-runtime.jar
 cp=C:\tomcat\common\lib\jdbc2_0-stdext.jar
 cp=C:\tomcat\common\lib\jndi.jar
 cp=C:\tomcat\common\lib\jta.jar
 cp=C:\tomcat\common\lib\mail.jar
 cp=C:\tomcat\common\lib\naming-common.jar
 cp=C:\tomcat\common\lib\naming-factory.jar
 cp=C:\tomcat\common\lib\naming-resources.jar
 cp=C:\tomcat\common\lib\servlet.jar
 cp=C:\tomcat\common\lib\tools.jar
 work dir=C:\tomcat\work\Standalone\localhost\edulogweb
srcDir=C:\tomcat\work\Standalone\localhost\edulogweb
include=quicklookup/quicklookup_jsp.java
Exception compiling Error running javac.exe compiler

2003-11-13 13:44:42 Exception: 
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern
alCompile(DefaultCompilerAdapter.java:451)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.
java:81)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline

RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Wendell Holmes
How would I do that?  Add to the query string?  And how can I change to a
new thread for this to not hijack Andrew's question, as this seems to be
getting away from his problem?

Wendell 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 8:55 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)


Have you tried to append jsessionid?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
Sent: November 5, 2003 9:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 losing session (may be related to Win XP)

At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes

justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm wondering if it
 has to do with the fact that this is the first time we've installed
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP
 process where page 1 stuffs (setAttribute) something into the session,
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory included in the
 Tomcat distribution, the pages perform properly.  If I create my own
 context and execute the pages from there, the getAttribute returns null.
 
 I created the context by duplicating the context in the server.xml file
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
 8080 (side note: anyone have info on how to get the flying pig to go
 away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
 And this machine works fine as a client to the server running on any
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com


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


RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Wendell Holmes
I don't think it's a question of cached pages, but proxyserver does seem to
be doing something.  The first page is a login, and when it's submitted, the
request passes a query string that calls the servlet.  Servlet creates a new
session and I can see a new cookie containing JSESSIONID.  The servlet then
displays results from a db query.  Any further requests, whether to scroll
the results, add new record, or view individual record causes the servlet to
create a new session because request.getSession(true) is called and doesn't
find the cookie in the request.  Accessing the web app from inside the proxy
works okay.  

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 11:48 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)



The one that doesn't work is behind a proxy server doing proxypassdir's to
map
a 
URL to an internal IP.  Could this be the problem, or is it an IIS thing?

I am pretty sure the proxy is the problem.  The proxy server is serving the
cached pages for page1, but then when you need to do a GET for page2, a new
session was created on tomcat server because the first session created was
not
on tomcat server. I am not sure why proxy acts this way though. 



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 8:55 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)


Have you tried to append jsessionid?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
Sent: November 5, 2003 9:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 losing session (may be related to Win XP)

At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes

justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm wondering if it
 has to do with the fact that this is the first time we've installed
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP
 process where page 1 stuffs (setAttribute) something into the session,
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory included in the
 Tomcat distribution, the pages perform properly.  If I create my own
 context and execute the pages from there, the getAttribute returns null.
 
 I created the context by duplicating the context in the server.xml file
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
 8080 (side note: anyone have info on how to get the flying pig to go
 away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
 And this machine works fine as a client to the server running on any
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com

RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Wendell Holmes
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL. 
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

Wendell Holmes
Education Logistics, Inc.


-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call 
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com

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



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php



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


RE: Tomcat 4.1.24 error

2003-04-04 Thread Wendell Holmes
I've just done an install on Windows 2000 Pro, with JDK1.4 and Tomcat
4.1.24.  I got the same errors from JasperException 'Unable to compile JSP
class file'. 

I chose to install Tomcat as an NT service during the install.  If I start
Tomcat using 'catalina.bat start' from the command line, this error doesn't
happen.  The startup scripts seem different than in past versions, setting
env variables like 'BINDIR=CLASSPATH'.  Maybe the install is using an older
startup script or something.  In any event, the work *.java files are
created from the .jsp file but are not being compiled into class files,
hence the compile error, which seems to be from environment errors.  

Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: Christopher M. Zinn [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:33 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


I just ran into this problem today.  Here is how it happened to me:

Installed brand new Win2K o/os sp3
Installed Oracle 9.2 Standard on the box
Installed J2SDK1.4.1_02 on the box 
Installed Tomcat 4.1.24 on the box; set it to listen on port 7001
instead of 8080

I got that message when I tried to login

I then added (Added JAVA_HOME=c:\j2sdk1.4.1_02 to system environment
vars and %JAVA_HOME%\BIN to the path)

Still got the message

I then updated the path to put my JAVA_HOME\BIN before Oracele\JRE\BIN.

Uninstalled Tomcat 4.1.24 and re-installed and then it worked.
I guess it had something to do with Tomcat classing with Oracle's 1.3
JRE?


___
Christopher Zinn
Forge-Tech, Inc.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 12:15 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


Howdy,
Out of curiosity: have you tried taking the compiled JSP from tomcat's
work directory and compiling it with javac yourself?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 12:12 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 error

I'm getting the same error since moving to Tomcat 4.1.24.
I've seen the question in google searches but no answers.
I could use help as well!!

-Original Message-
From: Robert R [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 9:37 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.24 error


Hello everybody, can somebody help me.THe tomcat ver
 I
 am running is the latest 4.1.24

 And this is the page I get no matter if I just use
 an
 HTML page or a jsp page with perfectly good java
 code.
 Is it my web.xml file that is in ROOT/WEB_INF/ that
 needs to be changed
 Thanks Robert


 HTTP Status 500 -

 type Exception report
 message
 description The server encountered an internal error
 () that prevented it from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile
 class for JSP

 An error occurred at line: -1 in the jsp file: null

 Generated servlet error:
 [javac] Since fork is true, ignoring compiler
 setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler
 setting.



  at java.lang.Throwable.fillInStackTrace(Native
 Method)
  at java.lang.Throwable.fillInStackTrace(Compiled
 Code)
  at java.lang.Throwable.(Compiled Code)
  at java.lang.Exception.(Compiled Code)
  at javax.servlet.ServletException.(Compiled Code)
  at org.apache.jasper.JasperException.(Compiled
 Code)
  at

org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
 Code)
  at

org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
 Code)
  at

org.apache.jasper.compiler.Compiler.generateClass(Compiled
 Code)
  at
 org.apache.jasper.compiler.Compiler.compile(Compiled
 Code)
  at

org.apache.jasper.JspCompilationContext.compile(Compiled
 Code)
  at

org.apache.jasper.servlet.JspServletWrapper.service(Compiled
 Code)
  at

org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
 Code)
  at

org.apache.jasper.servlet.JspServlet.service(Compiled
 Code)
  at javax.servlet.http.HttpServlet.service(Compiled
 Code)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil
e
 d
 Code)
  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
 Code)
  at

org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
 Code)
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
 nvokeNext(Compiled
 Code)
  at

org.apache.catalina.core.StandardPipeline.invoke(Compiled
 Code)
  at

org.apache.catalina.core.ContainerBase.invoke(Compiled
 Code)
  at

org.apache.catalina.core.StandardContextValve.invoke(Compiled
 Code)
  at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
 nvokeNext(Compiled
 Code)
  at

org.apache.catalina.core.StandardPipeline.invoke(Compiled

RE: setting up hosts file

2003-04-04 Thread Wendell Holmes
Edit the file hosts in c:\winnt\system32\drivers\etc by adding the
following line:

127.0.0.1   www.domain.com


Then, http://www.domain.com/examples should be directed to localhost.  

Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:00 PM
To: Tomcat
Subject: setting up hosts file



How can I set up the hosts file so that Tomcat can pick up jsp files
directly from a call to www.domain.com? I've tried looking for documentation
about that and can not find anything. I've always had to create an
application and then a virtual directory etc. in order for Tomcat to process
jsp's. I'm running Tomcat 4.0.5 and with Win2k.

Any help would be greatly appreciated,

Thanks



-
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more


RE: MY ATTITUDE

2003-02-13 Thread Wendell Holmes
I think he found one of those EARN $$$ from home with ur personal computer
ads that is paying him $$$ for every phrase he puts in quotes.  My
question is, What is he doing with the money, since he's obviously not
needing it to buy clues, having been graciously given many more than his
fair share of excellent ones already?.  Did he use the money to buy a
membership in our little newsgroup from a used bridge salesman?

Wendell Holmes

-Original Message-
From: Barley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 2:59 PM
To: Tomcat Users List
Subject: Re: MY ATTITUDE



LOL...is this fellow serious? You think other people
should have to do the reading for you? Wow, this group
tolerates a lot more ridiculous behavior than most tech
groups I read.


 Thanx jsp. I THINK that you were defending my
honor :-) in telling someone else that I really don't
need at all to RTFM! Ya, you're right that I don't
need to read the manual when there is ready and
plentiful help/assistance for me within the ranks of
this Tomcat group of ours'.


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



RE: who can give me an example to to configure /myapps in tomcat4.1.18

2003-02-13 Thread Wendell Holmes
If you mean the servlet API, it's in the Tomcat
\webapps\tomcat-docs\servletapi dir of your install.

Wendell Holmes, MCSE

-Original Message-
From: Xiongfei Wang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:33 PM
To: Filip Hanik
Cc: Tomcat Users List
Subject: RE: who can give me an example to to configure /myapps in
tomcat4.1.18


Thanks 
Can you give me some hints where i can find  servlet spec?

Thanks again.


On Thu, 13 Feb 2003, Filip Hanik wrote:

 what you can do is to create a WAR file, if you are not familiar with this
concept, you must read the servlet spec. Don't worry, the servlet spec is
short easy to read and you will learn alot.
 
 this way you don't need to specify anything in server.xml, if you have
myapps.war, tomcat will automatically create that context for you.
 
 Filip
 
 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 2:19 PM
 To: Tomcat Users List
 Subject: who can give me an example to to configure /myapps in
 tomcat4.1.18
 
 
 
 I want to put my servlets in myapps, i now i need to put something lile 
 Context path =/myapps
 
 
 
 /Context somewhere  in server.xml
 
 but i am not sure how to it.
 Can some give me a simple example?
 
 Thanks 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: failing installation server.xml file

2003-02-12 Thread Wendell Holmes
Your default context is commented out [line 277 in your server.xml].  As you
have it now, http://localhost:8080/examples should work, as there is a
context for 'examples', but not for http://localhost:8080, the default
context.

Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: Jon Roberts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 12:26 PM
To: [EMAIL PROTECTED]
Subject: failing installation server.xml file


Per an earlier note, I'll attached the server.xml file I get with the 
tomcat 4.1.18 rpm. I tried uncommenting the statement for the root 
context and got slightly different behavior, but still no dice.

Here is what I get when I execute 'tomcat4 run':

Using CATALINA_BASE:   /usr/apps/tomcat4
Using CATALINA_HOME:   /usr/apps/tomcat4
Using CATALINA_TMPDIR: /usr/apps/tomcat4/temp
Using JAVA_HOME:   /usr/java/jdk1.3.1
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=1/233  
config=/usr/apps/tomcat4/conf/jk2.properties

Any more ideas?

Jon Roberts
www.mentata.com



RE: PageContextImpl.handlePageException

2003-02-04 Thread Wendell Holmes
Are you meaning Customer c = Customer.findCustomer(email); or
Customer c=customer.findCustomer(email); ??



Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: jsp [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 4:51 PM
To: 'Tomcat Users List'
Subject: RE: PageContextImpl.handlePageException


Thanks for you help Carl but that didn't work either.
The thing is Im new to jsp. I got this book , .. MYSQL and JSP web
Applications by samspublishing.com . The code should work fine. I think
I've just set up my environment wrong or something. Its funny too, the
last
Three books I've bought, nothing ever works. So maybe its just me.

Thanks for the help


-Original Message-
From: Carl Trusiak [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 04, 2003 3:37 PM
To: Tomcat Users List
Subject: RE: PageContextImpl.handlePageException

Did you add the try to the top?  I threw that in
quick, ensure your brackets matchup properly and try
again.
--- jsp [EMAIL PROTECTED] wrote:
 With your code I get a syntax error it looks like...
 
 org.apache.jasper.JasperException: Unable to compile
 class for JSP
 
 An error occurred at line: 6 in the jsp file:
 /jsp/cust/AutoLogin2.jsp
 
 Generated servlet error:
 [javac] Compiling 1 source file
 
 E:\Program Files\Apache Group\Tomcat

4.1\work\Standalone\localhost\bfg\jsp\cust\AutoLogin2_jsp.java:95:
 'catch' without 'try'
 catch(Throwable t){
 ^
 1 error
 
 
 hm. The pain
 
 -Original Message-
 From: Carl Trusiak [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, February 04, 2003 3:23 PM
 To: Tomcat Users List
 Subject: RE: PageContextImpl.handlePageException
 
 A little much for a jsp page, I'd factor this into a
 class.  However, change this to:
 try
 {
   Cart cart = (Cart)
 pageContext.getAttribute(cart,
 PageContext.SESSION_SCOPE);
   if (cart == null) {
   cart = new Cart();
   pageContext.setAttribute(cart, cart, 
 PageContext.SESSION_SCOPE);
 }
 
 String email = null;
 String password = null;
 Cookie cook;
 
 Customer customer = (Customer)
 pageContext.getAttribute(customer,
 PageContext.SESSION_SCOPE);
   if (customer == null) {
Cookie[] cookies = request.getCookies();
BASE64Decoder dec = new BASE64Decoder();
if (cookies != null) {
  for (int i = 0; i  cookies.length; i++) {
  if
 (cookies[i].getName().equals(bfgUsername)) {
  email = new
 String(dec.decodeBuffer(cookies[i].getValue()));
  }
  if
 (cookies[i].getName().equals(bfgPassword)) {
  password = new
 String(dec.decodeBuffer(cookies[i].getValue()));
  }
  }
}
if ((email != null)  (password != null)) {
  Customer c = Customer.findCustomer(email);
  if ((c != null) 
 (c.getPassword().equals(password))) {
  c.setCart(cart);
  c.fillCart();
  pageContext.setAttribute(customer,c,
 PageContext.SESSION_SCOPE);
  }
} else {
  Customer c = new Customer();
  c.setCart(cart);
  pageContext.setAttribute(customer, c,
 PageContext.SESSION_SCOPE);
}
   }
 }
 catch(Throwable t){
t.printStackTrace(out);
 }
 
 Now what do you get?
 
 
 --- jsp [EMAIL PROTECTED] wrote:
  This is the page causing the error. Im getting
  warmer. Thanks for all
  the help. I think I just need to read more
  
  
  %@ page import=com.bfg.customer.Customer %
  %@ page import=com.bfg.cart.Cart %
  %@ page import=javax.servlet.http.Cookie %
  %@ page import=sun.misc.BASE64Decoder %
  
  
  %
  {
Cart cart = (Cart)
  pageContext.getAttribute(cart,
  PageContext.SESSION_SCOPE);
if (cart == null) {
cart = new Cart();
pageContext.setAttribute(cart, cart,
  PageContext.SESSION_SCOPE);
  }
  
  String email = null;
  String password = null;
  Cookie cook;
  
  Customer customer = (Customer)
  pageContext.getAttribute(customer,
  PageContext.SESSION_SCOPE);
if (customer == null) {
 Cookie[] cookies = request.getCookies();
 BASE64Decoder dec = new BASE64Decoder();
 if (cookies != null) {
 for (int i = 0; i  cookies.length; i++) {
 if
  (cookies[i].getName().equals(bfgUsername)) {
 email = new
  String(dec.decodeBuffer(cookies[i].getValue()));
 }
 if
  (cookies[i].getName().equals(bfgPassword)) {
 password = new
  String(dec.decodeBuffer(cookies[i].getValue()));
 }
 }
 }
 if ((email != null)  (password != null))
 {
 Customer c = Customer.findCustomer(email);
 if ((c != null) 
  (c.getPassword().equals(password))) {
 c.setCart(cart);
 c.fillCart();
 pageContext.setAttribute(customer,c,
  PageContext.SESSION_SCOPE);
 }
 } else {
 Customer c = new Customer