Re: [Fwd: Session expiration...]

2001-02-08 Thread Doug Ferguson

I'd like to know too!!!

Merwin Yap wrote:

   

 Subject: Session expiration...
 Date: Sat, 03 Feb 2001 16:18:38 +0800
 From: Merwin Yap [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]

 Hi! I want to ask about sessions in tomcat. How do you change the
 elapsed time for the session to expire.

 Thanks!

 Merwin

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


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




CLASSPATH

2001-02-01 Thread Doug Ferguson

If I have a helper class that I would like to make visible to all my
servlets.
Where should I place this file?

I have been running tomcat from the directory where these helper classes

are located. ("." is in my classpath) and that works.

However I want a more robust solution. I don't think it works if I place

the helper classes in my WEB-INF/classes directory.

Is there a location that I can use that is only visible to in specific
contexts?
Is there a location that I can use that is visible to all contexts?

thanks.
d.


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




forward throws null pointer exception

2001-02-01 Thread Doug Ferguson

Why would this throw a remote exception?

 ServletContext sc = getServletContext();
 RequestDispatcher rd =
sc.getRequestDispatcher("http://www.yahoo.com");
 rd.forward(request, response);





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




Re: CLASSPATH

2001-02-01 Thread Doug Ferguson

Is there somewhere that I can place a class so that it is only visible to a
certain context

Pete Ehli wrote:

 I have a couple of guesses - in the tomcat docs it states you can add a
 classes directory at C:\Tomcat\classes - this is for all contexts to use -
 what ever classes you put there i.e. helper classes can be utilized by all
 contexts. If this is correct let me know [EMAIL PROTECTED] - again this
 is a guess and I know it is in the docs somewhere.
 -- Pete --

 - Original Message -
 From: "Doug Ferguson" [EMAIL PROTECTED]
 To: "tomcat" [EMAIL PROTECTED]
 Sent: Thursday, February 01, 2001 1:22 PM
 Subject: CLASSPATH

  If I have a helper class that I would like to make visible to all my
  servlets.
  Where should I place this file?
 
  I have been running tomcat from the directory where these helper classes
 
  are located. ("." is in my classpath) and that works.
 
  However I want a more robust solution. I don't think it works if I place
 
  the helper classes in my WEB-INF/classes directory.
 
  Is there a location that I can use that is only visible to in specific
  contexts?
  Is there a location that I can use that is visible to all contexts?
 
  thanks.
  d.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 

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


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




Re: session variables in a server farm

2001-01-31 Thread Doug Ferguson

 Our application is completely stateless except for login information.
  We do load balancing with a hardware load balancer which I believe
   is a Foundry Server Iron?
  I now considering keep our login state in a stateful session bean(ejb)
  And store the home handle to this bean in a session cookie on the client
  I think I might store the same info in a tomcat session variable just for
  performance optimization, If it ain't in the session get it from the
 appserver.
  if it ain't in the app server, send them to the login page. ?

  Does this sound ridiculous?




 I don't know anything about your app, but I would simplify the problem by
 keeping session affinity with a single server, i.e. load-balance at the
 session level rather than at the request level. If you don't tie a session
 to a single server, you aren't just looking at unitary login problems but
 also at server-side session cache consistency issues.

 If you really need failover, though, you probably have to solve those
 problems anyway.

 At 10:35 AM 1/31/01, you wrote:
 Is there an elegant way to implement session variables in a load balancing
 senario? If I understand correcty everything is stored on the
 server and a sessionID is store in the users browser so that the
 server can look it up. But what happens when the user gets routed
 to another server which doesn't have their info stored in the session,
 we wouldn't want them to log in again.  We though about placing this
 info in our ejb layer. But we'd like to not have to do a remote call
 just for authentication purposes.

 -
 Dennis Doubleday  email: [EMAIL PROTECTED]
 yourfit.com, Inc.   web: http://www.yourfit.com/

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


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




Tomcat/Xalan

2001-01-30 Thread Doug Ferguson

Sorry if this post isn't a problem with tomcat but xml.apache.org sux.
Please respond directly of cc: [EMAIL PROTECTED] I am not on the
list

Does anybody know if there is anything special you have to do with xalan
to
get it to work in a server/tomcat.

I took one the the simple examples and made it a servlet and now it
doesn't work.
I was getting a namespace error. I added  the following system
properties which
I found in an extremely cryptic servlet example that comes with xalan.

   System.setProperty("javax.xml.transform.TransformerFactory",
   "org.apache.xalan.processor.TransformerFactoryImpl");
   System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
 "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
System.setProperty("javax.xml.parsers.SAXParserFactory",
  "org.apache.xerces.jaxp.SAXParserFactoryImpl");

Now I am getting a  no such mehtod exception
which is pasted at the bottom.

java.lang.NoSuchMethodError
 at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326)
 at
org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471)
 at
org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528)

 at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:432)

 at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)

 at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2083)

 at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:1981)

 at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1151)

 at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2811)

 at java.lang.Thread.run(Thread.java:484)




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




Xalan Tomcat: Please HELP!!!!!!!!!!!!!!!!!!!!

2001-01-30 Thread Doug Ferguson

I have figured out that my problem is directly related to Tomcat.

I believe there is a descrepancy with the xml parser that tomcat is
loading
ant the one that xalan would like to see.

Is there a way to provide a different classpath for the serlvet and/or
context
that is different from the classpath that tomcat runs with?

Or does anybody no of any of solution?


PS Please cc: or respond directly: [EMAIL PROTECTED]

Thanks.
d.


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




buiding mod_jk

2001-01-27 Thread Doug Ferguson

Hi,

I am reinstalling tomcat and I am building mod_jk.so. When I try to run
make it generates the following error.

Any ideas?

PS. please cc: me directly @ [EMAIL PROTECTED]

[root@thedug apache1.3]# make
/usr/sbin/apxs -I ../jk -I /include -I /include/linux -c -o mod_jk.so
mod_jk.c ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c
../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c
../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c
../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c mod_jk.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c ../jk/jk_ajp12_worker.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c ../jk/jk_connect.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c ../jk/jk_msg_buff.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c ../jk/jk_util.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c ../jk/jk_ajp13.c
gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DEAPI -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk
-I/include -I/include/linux  -c ../jk/jk_jni_worker.c
../jk/jk_jni_worker.c:67:17: jni.h: No such file or directory
../jk/jk_jni_worker.c:764:6: warning: #warning
---
../jk/jk_jni_worker.c:765:6: warning: #warning NO JAVA 2 HEADERS!
SUPPORT FOR JAVA 2 FEATURES DISABLED
../jk/jk_jni_worker.c:766:6: warning: #warning
---
apxs:Break: Command failed with rc=1
make: *** [mod_jk.so] Error 1
[root@thedug apache1.3]#


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




CLASSPATH.

2001-01-21 Thread Doug Ferguson

Hi,

I am using tomcat and communication with an application server.
jBoss. I am not using jBoss embedded tomcat, I am using standalone
tomcat with apache redirecting. I have a jar file with my ejb
interfaces and my "helper classes" that I have placed in my lib
dir. Tomcat loads this jar and has no problem using the helper 
classes. However, when I attempt to call and ejb on jBoss. It
screams about NoClassDef. However, if I stop tomcat and explicitly
put the jar with the ejb interfaces in my classpath and restart
tomcat everything works fine. Any ideas?

 Please respond directly to my. I am not on the tomcat lists
 [EMAIL PROTECTED]

Thanks.
d.

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