Re: AW: servlet error..

2001-06-01 Thread Krishna Kishore Thotakura

Ralf,
 There is X server running on the machine running the WEb Server. I'm running
Red Hat 7.0. The servlet runs fine when i am logged onto the WEb server m/c. 

I think that the Servlet is able to access the X-Server while i am logged in but
it is unable to access it after i log out. 

Please let me know if i need to make any changes in the configuration files
of X11-library in order to allow, tomcat-java process that i started in the
background, to access the X-Server.

thanks.



Tuukk4 |[:)-| p4s4n3n wrote:
 
 hei
 Java AWT really needs X (Stupid) to run but using Pure Java AWT (can be found at 
http://www.eteks.com/pja/en/) you can make it go away:)
 I have used this for pruduct succesfully.. before it i was sooo frustrated
 
 Tuukka
 
 ps. eteks server is slow:P
 
 ---
 --Me olemme keskella jotain. jossa olemme totaalisen ulkopuolisia--
 
 On Wed, 30 May 2001 08:51:45
  Ralph Einfeldt wrote:
 The AWT classes need an x-server to work with images.
 
 Can it be that there isn't one running, when this error happens ?
 
  -Ursprüngliche Nachricht-
  Von: Krishna Kishore Thotakura [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 30. Mai 2001 01:05
  An: [EMAIL PROTECTED]
  Betreff: servlet error..
 
 
  Hi,
   i am trying to write an image to the outputstream of a
  servlet. The image is
  actually obtained from an invisible awt Canvas.
  I'm using Jimi package to encode the Image into JPEG format
  and writing this
  out to the ServletOutputStream. Sometimes this works fine and
  i see a nice
  image in the browser but at times, i get the following error:
  in tomcat.log
  Xlib: connection to :0.0 refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
 
  in browser ---
  Error: 500
  Location: /wms/servlet/WmsServlet
  Internal Servlet Error:
 
  java.lang.NoClassDefFoundError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:120)
   at java.awt.Toolkit$2.run(Toolkit.java:498)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
   at java.awt.Component.getToolkitImpl(Component.java:657)
   at java.awt.Component.getToolkit(Component.java:641)
   at java.awt.Component.createImage(Component.java:2265)
   at stt.View.ViewJava3D.initMem(ViewJava3D.java:190)
   at stt.View.ViewJava3D.(ViewJava3D.java:214)
   at stt.Display.DisplayManager.initView(DisplayManager.java:126)
   at stt.Display.DisplayManager.(DisplayManager.java:64)
   at sttx.Display.GeoDisplayManager.(GeoDisplayManager.java:79)
   at WmsServlet.init(WmsServlet.java:49)
 
  Any comments,suggestions,explanations would be greatly appreciated.
 
 
 
 Get 250 color business cards for FREE!
 http://businesscards.lycos.com/vp/fastpath/

-- 
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927



tomcat process dies out...

2001-05-28 Thread Krishna Kishore Thotakura

hello,
 I am trying to setup multiple JVMs using mod_jk. the JVM running at port 8080
is okay. I'm having problem with the JVM running at port 8090. whenever, i log
out of my server machine(the machine where i am starting my apache and tomcat),
the tomcat process stops listening to the port 8090. Actually, the Tomcat(java)
threads are getting killed when i log out.

 Please let me know where i am going wrong?  i am starting tomcat1 
as ./startup.sh -f server_1.xml

thanks,
kishore.



Re: tomcat process dies out...

2001-05-28 Thread Krishna Kishore Thotakura

Hi,
 thanks for your quick response.

 But my server is a unix box running Red Hat 6.2.


Pernica, Jan wrote:
 
 this is a known bug of JDK 1.3 on NT
 
 On Monday, May 28, 2001 4:52 PM, Krishna Kishore Thotakura
 [SMTP:[EMAIL PROTECTED]] wrote:
  hello,
   I am trying to setup multiple JVMs using mod_jk. the JVM running at port
 8080
  is okay. I'm having problem with the JVM running at port 8090. whenever, i
 log
  out of my server machine(the machine where i am starting my apache and
 tomcat),
  the tomcat process stops listening to the port 8090. Actually, the
 Tomcat(java)
  threads are getting killed when i log out.
 
   Please let me know where i am going wrong?  i am starting tomcat1
  as ./startup.sh -f server_1.xml
 
  thanks,
  kishore.
 
 __
 Tato komunikace je urcena vyhradne pro adresata a je duverna.
 This communication is intended solely for the addressee and is confidential.

-- 
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927



Re: tomcat process dies out...

2001-05-28 Thread Krishna Kishore Thotakura

It still doesnt work. I was under the impression that tomcat would run in the 
background automatically. Also, i use the same command to start the
tomcat process on my other port(8080), and it works just fine.

Milt Epstein wrote:
 
 On Mon, 28 May 2001, Mathew Clark wrote:
 
  You may need to try
 
  nohup ./startup.sh -f server_1.xml 
 
  This starts the process in the background and ignores hangups -
  output is to a non-tty.
 
 It was my impression that for most/all non-basic shells (e.g. anything
 but sh :-), backgrounding a job effectively nohup'ed it.  I use csh
 and tcsh, and have never ever had to use nohup, simple backgrounding
 was sufficient.  I thought such was the case for ksh (and its
 derivatives) as well, but upon checking out a few things, it appears
 that may not be the case.  So perhaps if one is using ksh et al, one
 needs to use nohup.
 
  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: 28 May 2001 16:22
  To: [EMAIL PROTECTED]
  Subject: RE: tomcat process dies out...
 
 
  On Mon, 28 May 2001, Pernica, Jan wrote:
 
   this is a known bug of JDK 1.3 on NT
 
  But from the command he shows as how he's starting tomcat, it looks
  like he's on a UNIX machine.
 
  I'd say that probably all he needs to do is start it in the
  background, a la:
 
  ./startup.sh -f server_1.xml 
 
  Might want to redirect to capture stdout and stderr to files as well.
 
 
   On Monday, May 28, 2001 4:52 PM, Krishna Kishore Thotakura
   [SMTP:[EMAIL PROTECTED]] wrote:
hello,
I am trying to setup multiple JVMs using mod_jk. the JVM running
at port 8080 is okay. I'm having problem with the JVM running at
port 8090. whenever, i log out of my server machine(the machine
where i am starting my apache and tomcat), the tomcat process
stops listening to the port 8090. Actually, the Tomcat(java)
threads are getting killed when i log out.
   
Please let me know where i am going wrong?  i am starting tomcat1
as ./startup.sh -f server_1.xml
   
thanks,
kishore.
  
 
  Milt Epstein
  Research Programmer
  Software/Systems Development Group
  Computing and Communications Services Office (CCSO)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]

-- 
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927



Re: tomcat process dies out...

2001-05-28 Thread Krishna Kishore Thotakura

yeah..now, it works.

nohup ./startup.sh -f server_1.xml 1 

could u please explain how it made a difference? 
What does redirection to '1' mean? sorry, i am not a unix pro.

Jan Labanowski wrote:
 
 The commands can also look like:
 
 Under /bin/sh, /bin/ksh, /bin/bash, etc:
 
   nohup ./startup.sh -f server_1.xml  /tmp/mytomcat.log 21 
 
 Under /bin/csh or /bin/tcsh
 
   nohup ./startup.sh -f server_1.xml ! 
 
 Jan
 [EMAIL PROTECTED]
 
 On Mon, 28 May 2001, Krishna Kishore Thotakura wrote:
 
  It still doesnt work. I was under the impression that tomcat would run in the
  background automatically. Also, i use the same command to start the
  tomcat process on my other port(8080), and it works just fine.
 
  Milt Epstein wrote:
  
   On Mon, 28 May 2001, Mathew Clark wrote:
  
You may need to try
   
nohup ./startup.sh -f server_1.xml 
   
 
 Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
 Columbus, OH 43212-1163  |http://www.osc.edu/

-- 
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927



Re: URL

2001-05-28 Thread Krishna Kishore Thotakura

I had seen the same question in the Tomcat FAQ. The solution is:
1. In web.xml
servlet-mapping
.
.
url-pattern
/whatever/*
/url-pattern
/servlet-mapping

2. Tell Apache to mount /whatever to Tomcat.
Add to your .conf file:
ApJServMount /whatever /ROOT

3.restart both tomcat and apache.

that should do it.



Brian Kejser wrote:
 
 Hi
 
 Is it possible to change the \servlet\ portion of the URL to something else?
 
 For example,
 
 www.domain.com/somepath/servlet/test to
 www.domain.com/somepath/whatever/test
 
 Thanks

-- 
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927