Tomcat for RedHat Enterprise Linux

2003-12-20 Thread Sarika Inamdar
Hi,
 
We are using tomcat 4.1.2 version with our application running on RedHat
Linux 7.3. We are migrating our application from RH 7.3 to RedHat
Enterprise Linux.
 
I could not find anything on Jakarta site which mentions the tomcat
version support for RedHat Enterprise, hence posting the question here.
 
Could anyone please let me know which tomcat version is supported with
RH Enterprise Linux.
 
Thanks in Advance,
Sarika



Extracting ROOT.war

2003-09-16 Thread Sarika Inamdar
Hi,

When we run tomcat, the ROOT.war should be extracted automatically. With
tomcat 4.1.24, when I run tomcat, its unable to extract ROOT.war

We have set the unpackWARs=true in server.xml.

Am I missing any other configuration ?

Please help me on this.

Thanks,
Sarika


The server.xml looks like :

!-- DAS_WEB_INTERNAL_PORT --Server port=8007 shutdown=SHUTDOWN
debug=0

  Service name=Tomcat-Standalone
!-- DAS_WEB_PORT --Connector
className=org.apache.catalina.connector.http.Ht
tpConnector port=8080 minProcessors=5 maxProcessors=75
enableLookups=tru
e redirectPort=8443 acceptCount=10 debug=0
connectionTimeout=6/

!-- DAS_WEB_SECURE_PORT --Connector
className=org.apache.catalina.connector.
http.HttpConnector port=8443 minProcessors=5 maxProcessors=75
enableLooku
ps=true acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS
   keystoreFile=conf/keystore/
/Connector

Engine name=Standalone defaultHost=localhost debug=0

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

  Host name=localhost debug=0 appBase=webapps
unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common/

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

Context path= docBase=ROOT debug=0
 Manager
className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
  Store className=org.apache.catalina.session.FileStore/
  /Manager
/Context
  /Host
/Engine
  /Service
/Server



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



Could any one help me with this : Extracting ROOT.war

2003-09-16 Thread Sarika Inamdar
 Hi,
 
 When we run tomcat, the ROOT.war should be extracted 
 automatically. With tomcat 4.1.24, when I run tomcat, its 
 unable to extract ROOT.war
 
 We have set the unpackWARs=true in server.xml.
 
 Am I missing any other configuration ?
 
 Please help me on this.
 
 Thanks,
 Sarika
 
 
 The server.xml looks like :
 
 !-- DAS_WEB_INTERNAL_PORT --Server port=8007 
 shutdown=SHUTDOWN debug=0
 
   Service name=Tomcat-Standalone
 !-- DAS_WEB_PORT --Connector 
 className=org.apache.catalina.connector.http.Ht
 tpConnector port=8080 minProcessors=5 maxProcessors=75 
 enableLookups=tru e redirectPort=8443 acceptCount=10 
 debug=0 connectionTimeout=6/
 
 !-- DAS_WEB_SECURE_PORT --Connector 
 className=org.apache.catalina.connector.
 http.HttpConnector port=8443 minProcessors=5 
 maxProcessors=75 enableLooku ps=true acceptCount=10 
 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile=conf/keystore/
 /Connector
 
 Engine name=Standalone defaultHost=localhost debug=0
 
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true/
 
   Host name=localhost debug=0 appBase=webapps 
 unpackWARs=true
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  
 prefix=localhost_access_log. suffix=.txt
  pattern=common/
 
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. 
 suffix=.txt
 timestamp=true/
 
 Context path= docBase=ROOT debug=0
  Manager 
 className=org.apache.catalina.session.PersistentManager
   debug=0
   saveOnRestart=false
   maxActiveSessions=-1
   minIdleSwap=-1
   maxIdleSwap=-1
   maxIdleBackup=-1
   Store 
 className=org.apache.catalina.session.FileStore/
   /Manager
 /Context
   /Host
 /Engine
   /Service
 /Server
 
 
 
 -
 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]



Server.xml

2003-08-20 Thread Sarika Inamdar
Hi,

We are using tomcat 4.1.24. The server.xml has configuration for http
and https.

Now if user wants to disable http and use only https, is there a way to
do that in server.xml.

One way is to comment the config of http is server.xml But we don't want
to pursure in this direction.

Is there any property we can set in server.xml to disable htpp or https
based on user preferece.

Please help me on this.

Thanks Much in Advance,
Sarika


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



RE: Behaviour of JSP with tomcat 4.1.24

2003-08-14 Thread Sarika Inamdar
Hi,

Thanks for the clarifications.

In server.xml, I put in the following configuration :

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager

Its given that 
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart 
Catalina.

With the above configuration also, am unable to get the desired
behaviour ie, the index.jsp is not prompting for password.

Is there any other configuration I need to do ? Please help me on this.

Thanks,
Sarika


 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 06, 2003 7:36 PM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: Behaviour of JSP with tomcat 4.1.24
 
 
 You are experiencing valid behaviour, as Tomcat 4x will 
 persist sessions to disk.  This is supposed to allow sessions 
 to survive between server restarts ( a desirable situation in 
 most cases) When you clear out the work directory, the 
 sessions stored on disk are cleared.  
  
 There is a way to turn off the persistent sessions... check 
 for any Manager tags in server.xml
 
  -Original Message-
  From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 06, 2003 12:16 AM
  To: [EMAIL PROTECTED]
  Subject: Behaviour of JSP with tomcat 4.1.24
  
  
  Hi All,
  
  When we start tomcat and connect to the server, the index.jsp
  page is displayed . When I key in a password, it validates 
  the password and goes to the next jsp page(login.jsp)
  
  I stop tomcat and restart it again. Now when I connect to the
  server, the index.jsp directly takes me to the login.jsp page 
  without asking for password. This should not happen. 
  Everytime the tomcat is stopped 'n started we should get the 
  password validation.
  
  But when I stop tomcat and clear the contents of
  $CATALINA_HOME/work/StandAlone/, When tomcat is started, it 
  displays the index.jsp which asks for password validation.
  
  This behaviour was not seen in tomcat 3.2.3.
  
  Please let me know if am missing something.  Am attaching the
  code snippet of index.jsp and validateLogin.jsp which is 
  called from index.jsp
  
  Thanks in Advance for the help,
  Sarika
  
  
  Here is code snippet of index.jsp :
  
  %@ include file=header.jsp %
  %@ include file=validateLogin.jsp %
  
  %@ page import=com.cisco.das.core.* %
  
  bHome/b
  brHost: %= InetAddress.getLocalHost() %
  brCurrent time: %= new Date() %
  
  %
  try {
String s = DAS.status();
ByteArrayInputStream bs = new
  ByteArrayInputStream(s.getBytes());
  
Properties prop = new Properties();
prop.load(bs);
  
out.println(brStatus: Running);
  
out.println(brCNS name:  + prop.getProperty(name));
out.println(brCNS group:  +
  prop.getProperty(group, ));
  
out.println(brStart time:  +
new
  Date(Long.parseLong(prop.getProperty(startTime))
  ));
out.println(brVersion:  +
  prop.getProperty(package.version));
out.println(brBuild date:  + 
  prop.getProperty(package.date));
  
%
br
br
form method=post action=stop.jsp
  input type=submit value=Stop process
/form
%
  } catch (Exception e) {
   out.println(input type=\hidden\ name=\debug\
  value=\ + e.toStr
  ing() + \);
  
String configdir = System.getProperty(user.dir) +
  /config;
File pidFile = new File(configdir, pid);
if (pidFile.exists()) {
  out.println(brStatus: Initializing...);
  %
  br
  form method=post action=stop.jsp
input type=submit value=Stop Process
  /form
  %
}
else {
  out.println(brStatus: Stopped);
  %
  br
  form method=post action=start.jsp
input type=submit value=Start process
  /form
  %
}
  }
  %
  
  %@ include file=footer.jsp %
  
  Snippet of  validateLogin.jsp :
  
  %
  String value = (String)session.getValue(das.login);
  if (value == null) {
  %
  Login password:
  form method=post action=login.jsp?url=%=
  request.getServletPath() % name= login
  input type=password size=20 name=password
  input type=submit value=submit
  /form
  %
  return;
  }
  %
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

Making the session non-persistant in server.xml

2003-08-14 Thread Sarika Inamdar
Hi All,

When we re-start tomcat, we want a new session. We don't want the
persistant behaviour of tomcat.

In server.xml, we made the added the following :

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager

Is this the correct configuration ? With this , we still are un able to
disable the persistancy. The sessions get stored on the hard disk.

Please let us know on how to disable sessions being saved on to the
memory.

Thanks in Advance,
Sarika


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



Behaviour of JSP with tomcat 4.1.24

2003-08-08 Thread Sarika Inamdar
Hi All,

When we start tomcat and connect to the server, the index.jsp page is
displayed . When I key in a password, it validates the password and goes
to the next jsp page(login.jsp)

I stop tomcat and restart it again. Now when I connect to the server,
the index.jsp directly takes me to the login.jsp page without asking for
password. This should not happen. Everytime the tomcat is stopped 'n
started we should get the password validation.

But when I stop tomcat and clear the contents of
$CATALINA_HOME/work/StandAlone/,
When tomcat is started, it displays the index.jsp which asks for
password validation.

This behaviour was not seen in tomcat 3.2.3.

Please let me know if am missing something.  Am attaching the code
snippet of index.jsp and validateLogin.jsp which is called from
index.jsp

Thanks in Advance for the help,
Sarika


Here is code snippet of index.jsp :

%@ include file=header.jsp %
%@ include file=validateLogin.jsp %

%@ page import=com.cisco.das.core.* %

bHome/b
brHost: %= InetAddress.getLocalHost() %
brCurrent time: %= new Date() %

%
try {
  String s = DAS.status();
  ByteArrayInputStream bs = new
ByteArrayInputStream(s.getBytes());

  Properties prop = new Properties();
  prop.load(bs);

  out.println(brStatus: Running);

  out.println(brCNS name:  + prop.getProperty(name));
  out.println(brCNS group:  + prop.getProperty(group,
));

  out.println(brStart time:  +
  new
Date(Long.parseLong(prop.getProperty(startTime))
));
  out.println(brVersion:  +
prop.getProperty(package.version));
  out.println(brBuild date:  +
prop.getProperty(package.date));

  %
  br
  br
  form method=post action=stop.jsp
input type=submit value=Stop process
  /form
  %
} catch (Exception e) {
 out.println(input type=\hidden\ name=\debug\ value=\ +
e.toStr
ing() + \);

  String configdir = System.getProperty(user.dir) + /config;
  File pidFile = new File(configdir, pid);
  if (pidFile.exists()) {
out.println(brStatus: Initializing...);
%
br
form method=post action=stop.jsp
  input type=submit value=Stop Process
/form
%
  }
  else {
out.println(brStatus: Stopped);
%
br
form method=post action=start.jsp
  input type=submit value=Start process
/form
%
  }
}
%

%@ include file=footer.jsp %

Snippet of  validateLogin.jsp :

%
String value = (String)session.getValue(das.login);
if (value == null) {
%
Login password:
form method=post action=login.jsp?url=%= request.getServletPath()
% name=
login
input type=password size=20 name=password
input type=submit value=submit
/form
%
return;
}
%


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



RE: Error when using Tomcat 4.1.24

2003-07-31 Thread Sarika Inamdar
Hi,

Thanks for the suggestion. When we made Password.class as part of
package, everything seems to work.

Thanks Yoav :-)

-Sarika

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 6:40 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Error when using Tomcat 4.1.24
 
 
 
 Howdy,
 Put Password.class under WEB-INF/classes, not WEB-INF/lib.  
 Only .jar files go under the lib directory.
 
 Additionally, I strongly suggest you put Password.class in a 
 package, e.g. com.yourcompany (and then in 
 WEB-INF/classes/com/yourcompany).
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 4:00 AM
 To: 'Tomcat Users List'
 Subject: Error when using Tomcat 4.1.24
 
 Hi All,
 
 We are using tomcat 4.1.24 to connect to web. The 
 application GUI comes 
 up when we connect to web using http://hostname:8080/index.jsp.
 
 The next window after this is the Login.jsp page. We use 
 Password.class to check for password integrity to go thru the 
 Login.jsp page. But I get the following error when I give 
 password, and 
 press enter :
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 3 in the jsp file: /login.jsp
 
 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] 
 /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo
 gin_jsp.ja
 v
 a:57: cannot resolve symbol
 [javac] symbol  : variable Password
 [javac] location: class org.apache.jsp.login_jsp
 [javac]  InputStream is = Password.getPasswordsFromDB();
 
 
 We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.
 
 Am I missing some configuration ? Please help me on this.
 
 Thanks,
 Sarika
 
 
 -
 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]



Help with Tomcat 4.1.24

2003-07-31 Thread Sarika Inamdar
Hi All,

We have migrated to tomcat 4.1.24 from tomcat 3.2.23. Thanks to the
tomcat-user list, we were able to deploy the tomcat successfully :-)

We have one issue however !!!

The tomcat 4.1.24, requires that we place all the jars which is used by
the jsp's under TOMCAT_HOME/webapps/WEB-INF/lib directory.

In our deployment, we use lot of 3rd party software like AdventSNMP jar,
tibco jar and our own application jar.

These jars are already present under our tools directory. But with
4.1.24 migration, we have to place all these jars under WEB-INF/lib.
This will destroy our directory structure in case we want to mv all of
them.

To avoid this, we created soft links for the required jars under
/WEB-INF/lib.

The problem is tomcat server is able to DEPLOY some of the jars, and is
cribbing for some jars.

For Example, for AdventNetSNMP jar, tomcat throws the following error :

2003-07-31 16:07:25 ContextConfig[] Exception processing JAR at resource
path /WE
B-INF/lib/AdventNetSnmp.jar
javax.servlet.ServletException: Exception processing JAR at resource
path /WEB-IN
F/lib/AdventNetSnmp.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.jav
a:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:8
68)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647
)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig
.java:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
Support.java:166)

Is it possible that some jars get deployed and some don't ? 
Please lend me your inputs and suggesstions.

Thanks in Advance,
Sarika 


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



Error when using Tomcat 4.1.24

2003-07-30 Thread Sarika Inamdar
Hi All,

We are using tomcat 4.1.24 to connect to web. The application GUI comes
up when we connect to web using
http://hostname:8080/index.jsp.

The next window after this is the Login.jsp page. We use
Password.class to check for password integrity to go thru the
Login.jsp page. But I get the following error when I give password, and
press enter :

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /login.jsp

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac]
/export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/login_jsp.jav
a:57: cannot resolve symbol
[javac] symbol  : variable Password 
[javac] location: class org.apache.jsp.login_jsp
[javac] InputStream is = Password.getPasswordsFromDB();


We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.

Am I missing some configuration ? Please help me on this.

Thanks,
Sarika


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



RE: Error when using Tomcat 4.1.24

2003-07-30 Thread Sarika Inamdar
I've tried putting the Password.class under WEB-INF/classes also. But
its gives the same error.

I also tried to jar the class file and place under WEB-INF/lib. But no
luck.

Thanks,
Sarika

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 6:40 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Error when using Tomcat 4.1.24
 
 
 
 Howdy,
 Put Password.class under WEB-INF/classes, not WEB-INF/lib.  
 Only .jar files go under the lib directory.
 
 Additionally, I strongly suggest you put Password.class in a 
 package, e.g. com.yourcompany (and then in 
 WEB-INF/classes/com/yourcompany).
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 30, 2003 4:00 AM
 To: 'Tomcat Users List'
 Subject: Error when using Tomcat 4.1.24
 
 Hi All,
 
 We are using tomcat 4.1.24 to connect to web. The 
 application GUI comes 
 up when we connect to web using http://hostname:8080/index.jsp.
 
 The next window after this is the Login.jsp page. We use 
 Password.class to check for password integrity to go thru the 
 Login.jsp page. But I get the following error when I give 
 password, and 
 press enter :
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 3 in the jsp file: /login.jsp
 
 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] 
 /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo
 gin_jsp.ja
 v
 a:57: cannot resolve symbol
 [javac] symbol  : variable Password
 [javac] location: class org.apache.jsp.login_jsp
 [javac]  InputStream is = Password.getPasswordsFromDB();
 
 
 We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.
 
 Am I missing some configuration ? Please help me on this.
 
 Thanks,
 Sarika
 
 
 -
 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]



RE: Error when using Tomcat 4.1.24

2003-07-30 Thread Sarika Inamdar
The Password.class is not a part of the package. Hence I cannot import
it :-(

Thanks,
Sarika

 -Original Message-
 From: EXT / ALTIOR CABOU Carl (DRT) 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 30, 2003 7:03 PM
 To: 'Tomcat Users List'
 Subject: RE: Error when using Tomcat 4.1.24
 
 
 Maybe an import statement is missing ?
 
 Carl.
 
 -Message d'origine-
 De : Sarika Inamdar [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 30 juillet 2003 15:21
 À : 'Tomcat Users List'
 Objet : RE: Error when using Tomcat 4.1.24
 
 
 I've tried putting the Password.class under WEB-INF/classes 
 also. But its gives the same error.
 
 I also tried to jar the class file and place under 
 WEB-INF/lib. But no luck.
 
 Thanks,
 Sarika
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 6:40 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: RE: Error when using Tomcat 4.1.24
  
  
  
  Howdy,
  Put Password.class under WEB-INF/classes, not WEB-INF/lib.
  Only .jar files go under the lib directory.
  
  Additionally, I strongly suggest you put Password.class in a
  package, e.g. com.yourcompany (and then in 
  WEB-INF/classes/com/yourcompany).
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Sarika Inamdar [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 30, 2003 4:00 AM
  To: 'Tomcat Users List'
  Subject: Error when using Tomcat 4.1.24
  
  Hi All,
  
  We are using tomcat 4.1.24 to connect to web. The
  application GUI comes
  up when we connect to web using http://hostname:8080/index.jsp.
  
  The next window after this is the Login.jsp page. We use
  Password.class to check for password integrity to go thru the 
  Login.jsp page. But I get the following error when I give 
  password, and
  press enter :
  
  org.apache.jasper.JasperException: Unable to compile class for JSP
  
  An error occurred at line: 3 in the jsp file: /login.jsp
  
  Generated servlet error:
  [javac] Since fork is true, ignoring compiler setting.
  [javac] Compiling 1 source file
  [javac] Since fork is true, ignoring compiler setting.
  [javac]
  /export/spare/CSCOPerfE/tomcat/work/Standalone/localhost/_/lo
  gin_jsp.ja
  v
  a:57: cannot resolve symbol
  [javac] symbol  : variable Password
  [javac] location: class org.apache.jsp.login_jsp
  [javac]InputStream is = 
 Password.getPasswordsFromDB();
  
  
  We have placed the Password.class under /webapps/ROOT/WEB-INF/lib/.
  
  Am I missing some configuration ? Please help me on this.
  
  Thanks,
  Sarika
  
  
  
 -
  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]
 
 -
 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]



Ugrade document - tomcat 3.2.23 to 4.1.24

2003-07-24 Thread Sarika Inamdar
Hi All,

We are upgrading tomcat from 3.2.23 to tomcat 4.1.24. Is there any
upgrade document which we could refer  to?

We see a lot of changes from 3.2 version to 4.1.24 .

Please help us on this.

Thanks,
Sarika



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



Help needed in configuring tomcat 4.1.24

2003-07-23 Thread Sarika Inamdar
Hi All,

We need to start tomcat with a user-defined port. To enable the same ,
in server.xml, we give the following 

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
!-- WEB_PORT --port=8080  
   minProcessors=5 maxProcessors=75


In our start script, we grep for WEB_PORT and replace the default port
value with a user-defined port.

With this modification, tomcat starts properly. But when I give
shutdown.sh command to stop tomcat , I get the following parse exception
:
bash-2.03# ./shutdown.sh 
Using CATALINA_BASE:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_HOME:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24
Using CATALINA_TMPDIR:
/export/spare/users/sinamdar/jakarta-tomcat-4.1.24/temp
Using JAVA_HOME:   /export/spare/CSCOPerfE/tools/jdk
Jul 23, 2003 3:12:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 93 column 5: Element type Connector
must be followed by either attribute specifications,  or /.
org.xml.sax.SAXParseException: Element type Connector must be followed
by either attribute specifications,  or /.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)

Is there anyway we can avoid this exception ? Any help in this regard
would be useful.

Thanks in Advance,
Sarika







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