Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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



RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

I spent a long time trying to manually setup Tomcat to run as a service.  Finally 
ended up re-installing and checking the little checkbox that makes it usable as a 
service.  It is unchecked by default. Once it is installed, you can change the account 
it executes as in the services thingy in control panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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]



RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat, Source etc) 
if you scroll down, there is and unchecked item that says to install it as a service.  
You must check this one to get it installed.  If you are re-installing you also need 
to make sure it installs in the same directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the service and 
use the startup.bat in the bin directory to start it from a command prompt.  Sometimes 
this is desirable when debugging things that go wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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]



RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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]

-
To unsubscribe, e-mail

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and images saved.  
Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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

Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Ian Hunter
Also note that you have to adjust the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters\JVM Library -- you have to make sure that's pointing to a
real copy of jvm.dll -- the default is c:\program
files\Java\j2rex.x.x\bin\client\jvm.dll and if that's not where you have
Java installed, all kinds of weird things will happen.


- Original Message - 
From: Goehring, Chuck Mr., RCI - San Diego
[EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:37 PM
Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() )
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





-
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

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego


I got a mail loop error??

-Original Message-
From: Goehring, Chuck Mr., RCI - San Diego 
Sent: Tuesday, October 21, 2003 10:49 AM
To: 'Jose Euclides da Silva Junior - DATAPREVRJ'; 'Tomcat Users List'
Subject: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and images saved.  
Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides

Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread epyonne
Just a thought.  You can reinstall Tomcat to a different port, with the NT
Service checked.  Or better yet, go ahead and install the Tomcat 4.1.2x to a
different port.  This is a great opportunity to upgrade.  Put some of your
apps there for test runs.  If there is no issue, then move everything over
to the new installation.  After that, you can change the port number back.


- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 12:45 PM
Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() )
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.





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

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I will tried it, but i am afraid of unknowed changes done by Tcservcfg on
Windows register.
Since Tomcat isnt running anyway, i will reinstall it to the same port. One
question: Do you know how could i remove the remained Tomcat service?
Euclides.
-Mensagem original-
De: epyonne [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 15:13
Para: Tomcat Users List; [EMAIL PROTECTED]
Assunto: Re: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Just a thought.  You can reinstall Tomcat to a different port, with the NT
Service checked.  Or better yet, go ahead and install the Tomcat 4.1.2x to a
different port.  This is a great opportunity to upgrade.  Put some of your
apps there for test runs.  If there is no issue, then move everything over
to the new installation.  After that, you can change the port number back.


- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 12:45 PM
Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() )
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and images saved.  
Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select * FROM DICAS WHERE ID_TOPICO =  + topico2;
  pstmt = con.prepareStatement(query);
  rs = pstmt.executeQuery();
  if ( !rs.next() ) 
 {   // -- THIS IS LINE 413 --
fechaconection( pstmt,rs,con);
chamadevolta =
getServletContext().getRequestDispatcher(/semconteudo.jsp);
chamadevolta.forward(request,response);
 }

5 - I ve tried to find something about permission but i didnt find anything.
6 - THE WORST: I stopped the service and tried to work as before --
starting TomCat by running startup.bat file. Unfortunatelly, TomCat doesnt
starts up ANYMORE !!!
7- Then, i ve disabled all TomCat's services
8- Tried step 6 again - FAILURE AGAIN
9 - Finally, i ve removed the Registry key of TomCat service.
10 -  Tried step 6 again - FAILURE AGAIN - it is a loop, isnt it...

Really, any single help will be appreciated...
Euclides.


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



Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread epyonne
The Tomcat download site has an executable file which is built with
InstallShield.  If you install Tomcat using that executable file, you should
have an Uninstall Tomcat option on your Start|Programs menu.  Or you can
always go to the Add/Remove Programs to remove it.

Hope this helps.


- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 01:55 PM
Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


I will tried it, but i am afraid of unknowed changes done by Tcservcfg on
Windows register.
Since Tomcat isnt running anyway, i will reinstall it to the same port. One
question: Do you know how could i remove the remained Tomcat service?
Euclides.
-Mensagem original-
De: epyonne [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 15:13
Para: Tomcat Users List; [EMAIL PROTECTED]
Assunto: Re: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Just a thought.  You can reinstall Tomcat to a different port, with the NT
Service checked.  Or better yet, go ahead and install the Tomcat 4.1.2x to a
different port.  This is a great opportunity to upgrade.  Put some of your
apps there for test runs.  If there is no issue, then move everything over
to the new installation.  After that, you can change the port number back.


- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 12:45 PM
Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Chuck and friends,
here is all steps taken:
1 - disable old tomcat's service
2 - download new tomcat 4.1.17
3 - install it as a NT service
4 - process of app configuration ( server.xml, web.xml and adding folders )
AGAIN, the old big problem still alive: only the static pages are
availables, so whenever my app tries to use ResultSet, I get that known
error message:
  
HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)

Really, what is wrong with this procedure? Let me remind you: since i have
runned  this fucking tcservcfg ( to turn tomcat a service), my app have
never been running correctly anymore.Probably, some NT internal
configuration was wrongly mismatched by tcservcfg.
Any last hint? 

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 16:00
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Apache. Org (E-mail)
Assunto: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and
images saved.  Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i guess...
Isnt it?
Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products (Tomcat,
Source etc) if you scroll down, there is and unchecked item that says to
install it as a service.  You must check this one to get it installed.  If
you are re-installing you also need to make sure it installs in the same
directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that go
wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally ended up re-installing and checking the little checkbox that makes
it usable as a service.  It is unchecked by default. Once it is installed,
you can change the account it executes as in the services thingy in control
panel.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: Bugs and weakness when Tomcat works a NT Service (tcservcfg)


Hi all,
there have been a nightmare since i ve decided to make TomCat 4.1.18 be a
Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a
program which could make it for me. So,  i found the nightmare main actor
-- tcservcfg and the second one -- windows!!!
Thus, i made the following steps:
1 - ...runned the main actor ( tcservcfg ) - OK!
2 -  started up the service - OK!
3 - test the environment - FAILURE!
NOW, THE NIGHTMARE begins
4 - Only the static pages are availables, so whenever my app tries to use
Result Sets, I get this error message:  

HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
at BancoServlet.service(BancoServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tion
FilterChain.java:247)

LINE 413 points to a  resultset statement, see below:

ring query = Select

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Wade Chandler
The first thing I would look into is logging some info about the
ResultSet you are getting back.  Is the ResultSet from execute query
null?  It probably is.  Then pin point the problem to
Statement.executeQuery.  If this is the problem, then I think since the
error you are receiving is in a JDBC method and this is a method in the
Oracle driver you may want to try a different database (just make some
simple tables and things for testing) make some simple pages and test
the Oracle Driver and the other Database.  

If the other driver works fine, and the Oracle Driver is the one having
the problem; then you need to contact Oracle about the issue.  Explain
that with one users permissions you can do this  Show them an
example.  Then, with this users this happens.  Also, show them code
using a different driver.  Working with Oracle on issues is never fun,
and it is never fast, and they always want someone else to front the
cost...even if it is their fault.  But, at the end of the day, the code
in the JDBC driver is their responsibility.  I would go that route.  It
will pin point you to the source of the problem with proof that X works
and Y doesn't.  Y happens to be Oracles thin db driver.  Find out what
it may be accessing in the file system or other things that could be
causing this problem.  Hope that helps you some.

Wade

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 4:40 PM
To: 'Tomcat Users List'; '[EMAIL PROTECTED]';
'[EMAIL PROTECTED]'
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Dear Chuck and friends,
here is all steps taken:
1 - disable old tomcat's service
2 - download new tomcat 4.1.17
3 - install it as a NT service
4 - process of app configuration ( server.xml, web.xml and adding
folders ) AGAIN, the old big problem still alive: only the static pages
are availables, so whenever my app tries to use ResultSet, I get that
known error message:
  
HTTP Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

java.lang.NullPointerException
at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)

Really, what is wrong with this procedure? Let me remind you: since i
have runned  this fucking tcservcfg ( to turn tomcat a service), my app
have never been running correctly anymore.Probably, some NT internal
configuration was wrongly mismatched by tcservcfg. Any last hint? 

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 16:00
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Apache. Org (E-mail)
Assunto: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Yes.  I'd rename the top level dir so you have your servlets, jsps and
images saved.  Otherwise, I'd zip it and copy it somewhere.

Chuck

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Thank you, Chuck. I will do it! So, i should keep saved the existing
server.xml and web.xml files before the new installation starts, i
guess... Isnt it? Euclides

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:37
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

Uninstall Tomcat.
Start the installer and one of the screens has a list of products
(Tomcat, Source etc) if you scroll down, there is and unchecked item
that says to install it as a service.  You must check this one to get it
installed.  If you are re-installing you also need to make sure it
installs in the same directory to prevent other problems.  

Once the installer completes you can run it as a service or disable the
service and use the startup.bat in the bin directory to start it from a
command prompt.  Sometimes this is desirable when debugging things that
go wrong at startup.

Chuck


-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:28 AM
To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
Subject: RES: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Where is this checkbox? How can i reach there? I am talking about TomCat
4.1.18...

-Mensagem original-
De: Goehring, Chuck Mr., RCI - San Diego
[mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 21 de outubro de 2003 14:22
Para: Tomcat Users List
Assunto: RE: Bugs and weakness when Tomcat works a NT Service
(tcservcfg)


Jose,

I spent a long time trying to manually setup Tomcat to run as a service.
Finally

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread mike jackson
Tomcat (as far as I know) doesn't use the registry settings.  The service
side of things probably would, but tomcat should be looking at it's config
files.  

Check your oracle driver version, you want to make sure that you're either
on the current driver for your version of the database, or the latest
driver.  Either or, doesn't matter to much either way.

Another thing I've seen is when working with servlets and dispatching to a
jsp that the url for the dispatch which works on one server may not work on
another.  You could be barking up the wrong tree with the result set, even
though the error says that it's the line with the result set.  I've had a
couple of times where the line number from the error didn't exactly match up
with the line that it should have been.  I usually find that it's helpful to
put in debug output when I'm seriously stumped.

--mikej
-=--
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 12:40 PM
 To: 'Tomcat Users List'; '[EMAIL PROTECTED]';
 '[EMAIL PROTECTED]'
 Subject: RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)
 
 Dear Chuck and friends,
 here is all steps taken:
 1 - disable old tomcat's service
 2 - download new tomcat 4.1.17
 3 - install it as a NT service
 4 - process of app configuration ( server.xml, web.xml and adding folders
)
 AGAIN, the old big problem still alive: only the static pages are
 availables, so whenever my app tries to use ResultSet, I get that known
 error message:
 
 HTTP Status 500 -
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented
 it from fulfilling this request.
 
 exception
 
 java.lang.NullPointerException
   at BancoServlet.recuperaTopicoAssunto(BancoServlet.java:413)
 
 Really, what is wrong with this procedure? Let me remind you: since i have
 runned  this fucking tcservcfg ( to turn tomcat a service), my app have
 never been running correctly anymore.Probably, some NT internal
 configuration was wrongly mismatched by tcservcfg.
 Any last hint?
 
 -Mensagem original-
 De: Goehring, Chuck Mr., RCI - San Diego
 [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 21 de outubro de 2003 16:00
 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Apache. Org (E-mail)
 Assunto: RES: Bugs and weakness when Tomcat works a NT Service
 (tcservcfg)
 
 
 Jose,
 
 Yes.  I'd rename the top level dir so you have your servlets, jsps and
 images saved.  Otherwise, I'd zip it and copy it somewhere.
 
 Chuck
 
 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 10:45 AM
 To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
 Subject: RES: Bugs and weakness when Tomcat works a NT Service
 (tcservcfg)
 
 
 Thank you, Chuck. I will do it! So, i should keep saved the existing
 server.xml and web.xml files before the new installation starts, i
guess...
 Isnt it?
 Euclides
 
 -Mensagem original-
 De: Goehring, Chuck Mr., RCI - San Diego
 [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 21 de outubro de 2003 14:37
 Para: Tomcat Users List
 Assunto: RE: Bugs and weakness when Tomcat works a NT Service
 (tcservcfg)
 
 
 Jose,
 
 Uninstall Tomcat.
 Start the installer and one of the screens has a list of products (Tomcat,
 Source etc) if you scroll down, there is and unchecked item that says to
 install it as a service.  You must check this one to get it installed.  If
 you are re-installing you also need to make sure it installs in the same
 directory to prevent other problems.
 
 Once the installer completes you can run it as a service or disable the
 service and use the startup.bat in the bin directory to start it from a
 command prompt.  Sometimes this is desirable when debugging things that go
 wrong at startup.
 
 Chuck
 
 
 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 10:28 AM
 To: 'Tomcat Users List'; Goehring, Chuck Mr., RCI - San Diego
 Subject: RES: Bugs and weakness when Tomcat works a NT Service
 (tcservcfg)
 
 
 Where is this checkbox? How can i reach there? I am talking about TomCat
 4.1.18...
 
 -Mensagem original-
 De: Goehring, Chuck Mr., RCI - San Diego
 [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 21 de outubro de 2003 14:22
 Para: Tomcat Users List
 Assunto: RE: Bugs and weakness when Tomcat works a NT Service
 (tcservcfg)
 
 
 Jose,
 
 I spent a long time trying to manually setup Tomcat to run as a service.
 Finally ended up re-installing and checking the little checkbox that makes
 it usable as a service.  It is unchecked by default. Once it is installed,
 you can change the account it executes as in the services thingy in
 control
 panel.
 
 Chuck
 
 -Original Message-
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [mailto

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose,

Regarding the service installed by the tcservcfg - don't know anything about what it 
did.  But, since you installed the service outside of the Tomcat installer, it 
probably won't uninstall it.  Could be that tool will remove it also, don't know.

There is no GUI command to remove services that I know of. Generically, to remove a 
service, you have to go into the registry with regedit by using the run command on the 
start menu.  This is generally considered dangerous so you must pay attention and be 
carefull.  And backup anything that is important first.  Don't do this if your not 
used to using regedit.exe to fix things.

Use run conmmand or Command prompt to execute regedit.exe.
Go to HKEY_LOCAL_MACHINE
Under that, go to SYSTEM
Under that, go to CurrentControlSet
Under that, go to Services

There you should see Apache Tomcat listed on the left side.  When you clisk it, you 
will see DisplayName on the right with Apache Tomcat as the value.  Make sure the 
Apache Tomcat on the left is selected by clicking it again and use the menu to 
select Edit/Delete.  That should remove the Apache Tomcat from the left and values 
for it from the right.

Close regedit and reboot.

That should do it.

Chuck



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