Re: Different behavior between Tomcat service installation Tomcat console mode

2011-08-04 Thread Alexandre Terrasson
Hi,

thanks guys, I finally resolved the problem, thanks to Mladen Turk : I tried
to run the service with my local account (which is a admin account) instead
of the Local Service account and it works!!

Thansk guys for your help :)

Alex.

2011/8/3 Mladen Turk mt...@apache.org

 On 08/03/2011 07:03 AM, Alexandre Terrasson wrote:

 Hi, thanks guys,

 2/ The Jar of my driver is located in the Tomcat lib folders. The driver
 is
 not only a jar, I had to installed it as an odbc source, with some dll and
 some entries in windows registry.


 So you must ensure that LOCAL_SERVICE account has access both to the
 registry and to the files in the folder where odbc .dlls are installed
 Might even require modifying System Environment PATH

 You can try running the service with Administrator account
 or the one you are using wen running in console mode
 (given that it has permission to 'Run As a Service') and
 then search for the permission problems or missing variables
 for the local service account.


 Regards
 --
 ^TM


 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Different behavior between Tomcat service installation Tomcat console mode

2011-08-02 Thread Alexandre Terrasson
Hi, thanks guys,

@Konstantin Kolinko :
1/ In the log, the error I get is a SQLException : Listener Error. I got
this only with service version of Tomcat, not with the console mode, that's
my problem ...
2/ The Jar of my driver is located in the Tomcat lib folders. The driver is
not only a jar, I had to installed it as an odbc source, with some dll and
some entries in windows registry.
3/ I'm admin on the machine where Tomcat is installed so I don't think is a
rights problem.
4/ Problem is still present while firewalls are off.
5/ Yes, but I would like to use Tomcat as a service, so I can configured it
to restart automatically at startup. Moreover, I don't know how to configure
logs file with the console mode of Tomcat ... but I'll go this way if I
don't find another solution.

@ld20349
Yes the two configuration are exactly the sames.

Alex.

2011/8/2 刘铎 ld20...@gmail.com

 Are the two tomcat configurations the same? Check the
 server.xml,web.xml,context.xml and other configuration files of the
 tomcat.

 2011/8/1 Alexandre Terrasson alexandre.terras...@gmail.com:
  Hi guys,
  here my problem :
 
  I have a web application that use a Jdbc driver/connection to connect to
 a
  proprietary application.
  I did my developments and tests on a Tomcat 6.0.32 with scripts startup
  (startup.bat) and all works fine. But when I tried to test the web app on
  the production server where a Tomcat 6.0.32 is installed as a service, it
  don't work 
 
  I don't get a ClassNotFoundException, the class of the driver is well
  configured, but I don't know, may be not really well loaded.
 
  What intrigate me is why the two ways of using Tomcat has not the same
  behavior ? And how to acquieve that the service mode having the same way
 of
  working as the script ways (console mode) ?
  I tend to say that could be a problem of classpath but don't really know
 ...
 
  I'm working on Windows 7 x64 or Windows Server 2008 x64 with Apache
 Tomcat
  x86 in Service mode or scripts mode (console mode). I have no classpath
  environment variable, and use a Jdk 1.6.0_19.
 
  Any help would be greatly appreciated.
 
  Thanks :)
 
  Alex.
 

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Different behavior between Tomcat service installation Tomcat console mode

2011-08-01 Thread Alexandre Terrasson
Hi guys,
here my problem :

I have a web application that use a Jdbc driver/connection to connect to a
proprietary application.
I did my developments and tests on a Tomcat 6.0.32 with scripts startup
(startup.bat) and all works fine. But when I tried to test the web app on
the production server where a Tomcat 6.0.32 is installed as a service, it
don't work 

I don't get a ClassNotFoundException, the class of the driver is well
configured, but I don't know, may be not really well loaded.

What intrigate me is why the two ways of using Tomcat has not the same
behavior ? And how to acquieve that the service mode having the same way of
working as the script ways (console mode) ?
I tend to say that could be a problem of classpath but don't really know ...

I'm working on Windows 7 x64 or Windows Server 2008 x64 with Apache Tomcat
x86 in Service mode or scripts mode (console mode). I have no classpath
environment variable, and use a Jdk 1.6.0_19.

Any help would be greatly appreciated.

Thanks :)

Alex.