Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Charl Gerber
Turns out datasource configuration is not possible
using Plesk as a shared tomcat server, the guys at
Plesk themselves told me.

That sucks. Means I have to create and manage the
Datasource in my app... minor refactoring, but not a
nice way of doing it. I also use hibernate and could
only get that working by defining its own connection
pooling. So now I have two pools :((


--- Pid [EMAIL PROTECTED] wrote:

 Charl Gerber wrote:
  Hi,
  
  I just moved my hosting from a provider where I
 had a
  private Tomcat server with complete control over
 it to
  a provider that uses Plesk and I share the Tomcat
  server with other users. The provider has no
 Tomcat
  knowledge in house and the Tomcat service is
 rarely
  used, so they couldn't help me with this problem.
 
 which version of tomcat?
 
  I want to create a jdbc datasource for my
 application.
  If we manually create it in server.xml, the
 provider
  claims that the changes are overwritten and
 removed
  every time someone uploads a new .war file. (Is
 this
  true?) 
 
 AFAIK, server.xml is not altered by war file
 deployments.
 Tomcat would need to be restarted in order that
 those alterations to
 server.xml are evaluated.
 
 I also do not want to define the datasource as
  eg a global resource, as it would mean the other
 users
  of the tomcat server can get access to my
 database.
  
  I tried to configure the datasource in the
 context.xml
  of my application and put it in my .war file. This
  works fine on my development server, but when
 uploaded
  to the Tomcat server with Plesk, a server.xml
 entry
  for my application is created without the
 datasource
  settings and I cannot access my database.
 
 What are the details of the entry being made in
 server.xml?
 Is Plesk making these alterations?
 What process are you using to upload the WAR?
 
  How and where can I properly define a datasource
 for
  my application so that Plesk will set the Tomcat
  configuration correctly?
 
 META-INF/context.xml is the best location I think.
 
 Please provide more details about the tomcat version
 and the answer to
 the questions above.
 
 
 p
 
 
 
  CG
  
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread David Delbecq
What about putting a listener in your web.xml that create a connection
pool and link it to jndi?

En l'instant précis du 03/10/07 14:01, Charl Gerber s'exprimait en ces
termes:
 Turns out datasource configuration is not possible
 using Plesk as a shared tomcat server, the guys at
 Plesk themselves told me.

 That sucks. Means I have to create and manage the
 Datasource in my app... minor refactoring, but not a
 nice way of doing it. I also use hibernate and could
 only get that working by defining its own connection
 pooling. So now I have two pools :((


 --- Pid [EMAIL PROTECTED] wrote:

   
 Charl Gerber wrote:
 
 Hi,

 I just moved my hosting from a provider where I
   
 had a
 
 private Tomcat server with complete control over
   
 it to
 
 a provider that uses Plesk and I share the Tomcat
 server with other users. The provider has no
   
 Tomcat
 
 knowledge in house and the Tomcat service is
   
 rarely
 
 used, so they couldn't help me with this problem.
   
 which version of tomcat?

 
 I want to create a jdbc datasource for my
   
 application.
 
 If we manually create it in server.xml, the
   
 provider
 
 claims that the changes are overwritten and
   
 removed
 
 every time someone uploads a new .war file. (Is
   
 this
 
 true?) 
   
 AFAIK, server.xml is not altered by war file
 deployments.
 Tomcat would need to be restarted in order that
 those alterations to
 server.xml are evaluated.

 I also do not want to define the datasource as
 
 eg a global resource, as it would mean the other
   
 users
 
 of the tomcat server can get access to my
   
 database.
 
 I tried to configure the datasource in the
   
 context.xml
 
 of my application and put it in my .war file. This
 works fine on my development server, but when
   
 uploaded
 
 to the Tomcat server with Plesk, a server.xml
   
 entry
 
 for my application is created without the
   
 datasource
 
 settings and I cannot access my database.
   
 What are the details of the entry being made in
 server.xml?
 Is Plesk making these alterations?
 What process are you using to upload the WAR?

 
 How and where can I properly define a datasource
   
 for
 
 my application so that Plesk will set the Tomcat
 configuration correctly?
   
 META-INF/context.xml is the best location I think.

 Please provide more details about the tomcat version
 and the answer to
 the questions above.


 p



 
 CG


   
 -
   
 To start a new topic, e-mail:
   
 users@tomcat.apache.org
 
 To unsubscribe, e-mail:
   
 [EMAIL PROTECTED]
 
 For additional commands, e-mail:
   
 [EMAIL PROTECTED]
 
   

 
 -
   
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]


 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   


-- 
http://www.devlog.be (a belgian developer's logs)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Ken Bowen

Why not move your hosting to an isp who provides a vps?
Then you get complete control of your own tomcat; the whole thing looks and
feels like you have your own server, even though you are sharing the 
physical machine.:w


The prices I've seen are comparable to those where you have to share 
your tomcat.


My 2 cents...

Ken Bowen

Charl Gerber wrote:

Turns out datasource configuration is not possible
using Plesk as a shared tomcat server, the guys at
Plesk themselves told me.

That sucks. Means I have to create and manage the
Datasource in my app... minor refactoring, but not a
nice way of doing it. I also use hibernate and could
only get that working by defining its own connection
pooling. So now I have two pools :((


--- Pid [EMAIL PROTECTED] wrote:

  

Charl Gerber wrote:


Hi,

I just moved my hosting from a provider where I
  

had a


private Tomcat server with complete control over
  

it to


a provider that uses Plesk and I share the Tomcat
server with other users. The provider has no
  

Tomcat


knowledge in house and the Tomcat service is
  

rarely


used, so they couldn't help me with this problem.
  

which version of tomcat?



I want to create a jdbc datasource for my
  

application.


If we manually create it in server.xml, the
  

provider


claims that the changes are overwritten and
  

removed


every time someone uploads a new .war file. (Is
  

this

true?) 
  

AFAIK, server.xml is not altered by war file
deployments.
Tomcat would need to be restarted in order that
those alterations to
server.xml are evaluated.

I also do not want to define the datasource as


eg a global resource, as it would mean the other
  

users


of the tomcat server can get access to my
  

database.


I tried to configure the datasource in the
  

context.xml


of my application and put it in my .war file. This
works fine on my development server, but when
  

uploaded


to the Tomcat server with Plesk, a server.xml
  

entry


for my application is created without the
  

datasource


settings and I cannot access my database.
  

What are the details of the entry being made in
server.xml?
Is Plesk making these alterations?
What process are you using to upload the WAR?



How and where can I properly define a datasource
  

for


my application so that Plesk will set the Tomcat
configuration correctly?
  

META-INF/context.xml is the best location I think.

Please provide more details about the tomcat version
and the answer to
the questions above.


p





CG


  

-
  

To start a new topic, e-mail:
  

users@tomcat.apache.org


To unsubscribe, e-mail:
  

[EMAIL PROTECTED]


For additional commands, e-mail:
  

[EMAIL PROTECTED]

  




-
  

To start a new topic, e-mail:
users@tomcat.apache.org
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Charl Gerber
I currently DO have my own Tomcat server, but the
application is now moved to South Africa (site for a
business over there, makes it a lot faster for the
users who will 99% be based in SA) and Tomcat hosting
alone is difficult, leave alone a private JVM.


--- Ken Bowen [EMAIL PROTECTED] wrote:

 Why not move your hosting to an isp who provides a
 vps?
 Then you get complete control of your own tomcat;
 the whole thing looks and
 feels like you have your own server, even though you
 are sharing the 
 physical machine.:w
 
 The prices I've seen are comparable to those where
 you have to share 
 your tomcat.
 
 My 2 cents...
 
 Ken Bowen
 
 Charl Gerber wrote:
  Turns out datasource configuration is not possible
  using Plesk as a shared tomcat server, the guys at
  Plesk themselves told me.
 
  That sucks. Means I have to create and manage the
  Datasource in my app... minor refactoring, but not
 a
  nice way of doing it. I also use hibernate and
 could
  only get that working by defining its own
 connection
  pooling. So now I have two pools :((
 
 
  --- Pid [EMAIL PROTECTED] wrote:
 

  Charl Gerber wrote:
  
  Hi,
 
  I just moved my hosting from a provider where I

  had a
  
  private Tomcat server with complete control over

  it to
  
  a provider that uses Plesk and I share the
 Tomcat
  server with other users. The provider has no

  Tomcat
  
  knowledge in house and the Tomcat service is

  rarely
  
  used, so they couldn't help me with this
 problem.

  which version of tomcat?
 
  
  I want to create a jdbc datasource for my

  application.
  
  If we manually create it in server.xml, the

  provider
  
  claims that the changes are overwritten and

  removed
  
  every time someone uploads a new .war file. (Is

  this
  
  true?) 

  AFAIK, server.xml is not altered by war file
  deployments.
  Tomcat would need to be restarted in order that
  those alterations to
  server.xml are evaluated.
 
  I also do not want to define the datasource as
  
  eg a global resource, as it would mean the other

  users
  
  of the tomcat server can get access to my

  database.
  
  I tried to configure the datasource in the

  context.xml
  
  of my application and put it in my .war file.
 This
  works fine on my development server, but when

  uploaded
  
  to the Tomcat server with Plesk, a server.xml

  entry
  
  for my application is created without the

  datasource
  
  settings and I cannot access my database.

  What are the details of the entry being made in
  server.xml?
  Is Plesk making these alterations?
  What process are you using to upload the WAR?
 
  
  How and where can I properly define a datasource

  for
  
  my application so that Plesk will set the Tomcat
  configuration correctly?

  META-INF/context.xml is the best location I
 think.
 
  Please provide more details about the tomcat
 version
  and the answer to
  the questions above.
 
 
  p
 
 
 
  
  CG
 
 

 

-

  To start a new topic, e-mail:

  users@tomcat.apache.org
  
  To unsubscribe, e-mail:

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

  [EMAIL PROTECTED]
  

 
  
 

-

  To start a new topic, e-mail:
  users@tomcat.apache.org
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
  
 
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Charl Gerber
How? I tried that, but kept on getting messages that
the comp:env thingey was read-only and I couldn't set
up a jndi datasource that could be used by my
application, jstl and hibernate in one go.

I'd be delighted if someone could give me a working
example.


 What about putting a listener in your web.xml that
 create a connection
 pool and link it to jndi?
 
 En l'instant précis du 03/10/07 14:01, Charl Gerber
 s'exprimait en ces
 termes:
  Turns out datasource configuration is not possible
  using Plesk as a shared tomcat server, the guys at
  Plesk themselves told me.
 
  That sucks. Means I have to create and manage the
  Datasource in my app... minor refactoring, but not
 a
  nice way of doing it. I also use hibernate and
 could
  only get that working by defining its own
 connection
  pooling. So now I have two pools :((
 
 
  --- Pid [EMAIL PROTECTED] wrote:
 

  Charl Gerber wrote:
  
  Hi,
 
  I just moved my hosting from a provider where I

  had a
  
  private Tomcat server with complete control over

  it to
  
  a provider that uses Plesk and I share the
 Tomcat
  server with other users. The provider has no

  Tomcat
  
  knowledge in house and the Tomcat service is

  rarely
  
  used, so they couldn't help me with this
 problem.

  which version of tomcat?
 
  
  I want to create a jdbc datasource for my

  application.
  
  If we manually create it in server.xml, the

  provider
  
  claims that the changes are overwritten and

  removed
  
  every time someone uploads a new .war file. (Is

  this
  
  true?) 

  AFAIK, server.xml is not altered by war file
  deployments.
  Tomcat would need to be restarted in order that
  those alterations to
  server.xml are evaluated.
 
  I also do not want to define the datasource as
  
  eg a global resource, as it would mean the other

  users
  
  of the tomcat server can get access to my

  database.
  
  I tried to configure the datasource in the

  context.xml
  
  of my application and put it in my .war file.
 This
  works fine on my development server, but when

  uploaded
  
  to the Tomcat server with Plesk, a server.xml

  entry
  
  for my application is created without the

  datasource
  
  settings and I cannot access my database.

  What are the details of the entry being made in
  server.xml?
  Is Plesk making these alterations?
  What process are you using to upload the WAR?
 
  
  How and where can I properly define a datasource

  for
  
  my application so that Plesk will set the Tomcat
  configuration correctly?

  META-INF/context.xml is the best location I
 think.
 
  Please provide more details about the tomcat
 version
  and the answer to
  the questions above.
 
 
  p
 
 
 
  
  CG
 
 

 

-

  To start a new topic, e-mail:

  users@tomcat.apache.org
  
  To unsubscribe, e-mail:

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

  [EMAIL PROTECTED]
  

 
  
 

-

  To start a new topic, e-mail:
  users@tomcat.apache.org
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
  
 
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]

 
 
 -- 
 http://www.devlog.be (a belgian developer's logs)
 
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Gabe Wong
I am not sure how a private JVM on a VPS or on a regular shared OS can 
be more difficult than the challenges you are
facing with the present shared JVM. A shared JVM is good for a very 
basic JSP/Servlet application. However by its nature
(shared), you will not be able to do certain configurations required for 
more complex applications because that is only possible
on your own private installation or instance. Remember on a shared JVM, 
you as well as others are using the same application server instance and 
JVM.
So image if everyone is able to make changes on the global configuration 
file e.g. server.xml,etc.




Charl Gerber wrote:

I currently DO have my own Tomcat server, but the
application is now moved to South Africa (site for a
business over there, makes it a lot faster for the
users who will 99% be based in SA) and Tomcat hosting
alone is difficult, leave alone a private JVM.


--- Ken Bowen [EMAIL PROTECTED] wrote:

  

Why not move your hosting to an isp who provides a
vps?
Then you get complete control of your own tomcat;
the whole thing looks and
feels like you have your own server, even though you
are sharing the 
physical machine.:w


The prices I've seen are comparable to those where
you have to share 
your tomcat.


My 2 cents...

Ken Bowen

Charl Gerber wrote:


Turns out datasource configuration is not possible
using Plesk as a shared tomcat server, the guys at
Plesk themselves told me.

That sucks. Means I have to create and manage the
Datasource in my app... minor refactoring, but not
  

a


nice way of doing it. I also use hibernate and
  

could


only get that working by defining its own
  

connection


pooling. So now I have two pools :((


--- Pid [EMAIL PROTECTED] wrote:

  
  

Charl Gerber wrote:



Hi,

I just moved my hosting from a provider where I
  
  

had a



private Tomcat server with complete control over
  
  

it to



a provider that uses Plesk and I share the
  

Tomcat


server with other users. The provider has no
  
  

Tomcat



knowledge in house and the Tomcat service is
  
  

rarely



used, so they couldn't help me with this
  

problem.

  
  

which version of tomcat?




I want to create a jdbc datasource for my
  
  

application.



If we manually create it in server.xml, the
  
  

provider



claims that the changes are overwritten and
  
  

removed



every time someone uploads a new .war file. (Is
  
  

this


true?) 
  
  

AFAIK, server.xml is not altered by war file
deployments.
Tomcat would need to be restarted in order that
those alterations to
server.xml are evaluated.

I also do not want to define the datasource as



eg a global resource, as it would mean the other
  
  

users



of the tomcat server can get access to my
  
  

database.



I tried to configure the datasource in the
  
  

context.xml



of my application and put it in my .war file.
  

This


works fine on my development server, but when
  
  

uploaded



to the Tomcat server with Plesk, a server.xml
  
  

entry



for my application is created without the
  
  

datasource



settings and I cannot access my database.
  
  

What are the details of the entry being made in
server.xml?
Is Plesk making these alterations?
What process are you using to upload the WAR?




How and where can I properly define a datasource
  
  

for



my application so that Plesk will set the Tomcat
configuration correctly?
  
  

META-INF/context.xml is the best location I


think.


Please provide more details about the tomcat


version


and the answer to
the questions above.


p






CG


  
  

-
  
  
  

To start a new topic, e-mail:
  
  

users@tomcat.apache.org



To unsubscribe, e-mail:
  
  

[EMAIL PROTECTED]



For additional commands, e-mail:
  
  

[EMAIL PROTECTED]


  
  



-
  
  
  

To start a new topic, e-mail:
users@tomcat.apache.org
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






  

-
  

To start a new topic, e-mail:
  

users@tomcat.apache.org


To unsubscribe, e-mail:
  

[EMAIL PROTECTED]


For additional 

Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Charl Gerber
Costs - the only way I can get a private Tomcat JVM in
South Africa, is dedicated hosting. Ie, renting a
complete machine. Costs are about 10x as much as
shared VM.

As I said, I have a private VM at a US based account
and it works beautifully, but in South Africa (where
the app MUST be hosted), we do not have that option
without very high costs.


--- Gabe Wong [EMAIL PROTECTED] wrote:

 I am not sure how a private JVM on a VPS or on a
 regular shared OS can 
 be more difficult than the challenges you are
 facing with the present shared JVM. A shared JVM is
 good for a very 
 basic JSP/Servlet application. However by its nature
 (shared), you will not be able to do certain
 configurations required for 
 more complex applications because that is only
 possible
 on your own private installation or instance.
 Remember on a shared JVM, 
 you as well as others are using the same application
 server instance and 
 JVM.
 So image if everyone is able to make changes on the
 global configuration 
 file e.g. server.xml,etc.
 
 
 
 Charl Gerber wrote:
  I currently DO have my own Tomcat server, but the
  application is now moved to South Africa (site for
 a
  business over there, makes it a lot faster for the
  users who will 99% be based in SA) and Tomcat
 hosting
  alone is difficult, leave alone a private JVM.
 
 
  --- Ken Bowen [EMAIL PROTECTED] wrote:
 

  Why not move your hosting to an isp who provides
 a
  vps?
  Then you get complete control of your own tomcat;
  the whole thing looks and
  feels like you have your own server, even though
 you
  are sharing the 
  physical machine.:w
 
  The prices I've seen are comparable to those
 where
  you have to share 
  your tomcat.
 
  My 2 cents...
 
  Ken Bowen
 
  Charl Gerber wrote:
  
  Turns out datasource configuration is not
 possible
  using Plesk as a shared tomcat server, the guys
 at
  Plesk themselves told me.
 
  That sucks. Means I have to create and manage
 the
  Datasource in my app... minor refactoring, but
 not

  a
  
  nice way of doing it. I also use hibernate and

  could
  
  only get that working by defining its own

  connection
  
  pooling. So now I have two pools :((
 
 
  --- Pid [EMAIL PROTECTED] wrote:
 


  Charl Gerber wrote:
  
  
  Hi,
 
  I just moved my hosting from a provider where
 I


  had a
  
  
  private Tomcat server with complete control
 over


  it to
  
  
  a provider that uses Plesk and I share the

  Tomcat
  
  server with other users. The provider has no


  Tomcat
  
  
  knowledge in house and the Tomcat service is


  rarely
  
  
  used, so they couldn't help me with this

  problem.
  


  which version of tomcat?
 
  
  
  I want to create a jdbc datasource for my


  application.
  
  
  If we manually create it in server.xml, the


  provider
  
  
  claims that the changes are overwritten and


  removed
  
  
  every time someone uploads a new .war file.
 (Is


  this
  
  
  true?) 


  AFAIK, server.xml is not altered by war file
  deployments.
  Tomcat would need to be restarted in order that
  those alterations to
  server.xml are evaluated.
 
  I also do not want to define the datasource as
  
  
  eg a global resource, as it would mean the
 other


  users
  
  
  of the tomcat server can get access to my


  database.
  
  
  I tried to configure the datasource in the


  context.xml
  
  
  of my application and put it in my .war file.

  This
  
  works fine on my development server, but when


  uploaded
  
  
  to the Tomcat server with Plesk, a server.xml


  entry
  
  
  for my application is created without the
 
=== message truncated ===


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-03 Thread Gabe Wong
Thanks for clarifying. Sound like you are caught between a rock and a 
hard place.

Good luck.

Charl Gerber wrote:

Costs - the only way I can get a private Tomcat JVM in
South Africa, is dedicated hosting. Ie, renting a
complete machine. Costs are about 10x as much as
shared VM.

As I said, I have a private VM at a US based account
and it works beautifully, but in South Africa (where
the app MUST be hosted), we do not have that option
without very high costs.


--- Gabe Wong [EMAIL PROTECTED] wrote:

  

I am not sure how a private JVM on a VPS or on a
regular shared OS can 
be more difficult than the challenges you are

facing with the present shared JVM. A shared JVM is
good for a very 
basic JSP/Servlet application. However by its nature

(shared), you will not be able to do certain
configurations required for 
more complex applications because that is only

possible
on your own private installation or instance.
Remember on a shared JVM, 
you as well as others are using the same application
server instance and 
JVM.

So image if everyone is able to make changes on the
global configuration 
file e.g. server.xml,etc.




Charl Gerber wrote:


I currently DO have my own Tomcat server, but the
application is now moved to South Africa (site for
  

a


business over there, makes it a lot faster for the
users who will 99% be based in SA) and Tomcat
  

hosting


alone is difficult, leave alone a private JVM.


--- Ken Bowen [EMAIL PROTECTED] wrote:

  
  

Why not move your hosting to an isp who provides


a


vps?
Then you get complete control of your own tomcat;
the whole thing looks and
feels like you have your own server, even though


you

are sharing the 
physical machine.:w


The prices I've seen are comparable to those


where

you have to share 
your tomcat.


My 2 cents...

Ken Bowen

Charl Gerber wrote:



Turns out datasource configuration is not
  

possible


using Plesk as a shared tomcat server, the guys
  

at


Plesk themselves told me.

That sucks. Means I have to create and manage
  

the


Datasource in my app... minor refactoring, but
  

not

  
  

a



nice way of doing it. I also use hibernate and
  
  

could



only get that working by defining its own
  
  

connection



pooling. So now I have two pools :((


--- Pid [EMAIL PROTECTED] wrote:

  
  
  

Charl Gerber wrote:




Hi,

I just moved my hosting from a provider where
  

I

  
  
  

had a




private Tomcat server with complete control
  

over

  
  
  

it to




a provider that uses Plesk and I share the
  
  

Tomcat



server with other users. The provider has no
  
  
  

Tomcat




knowledge in house and the Tomcat service is
  
  
  

rarely




used, so they couldn't help me with this
  
  

problem.


  
  
  

which version of tomcat?





I want to create a jdbc datasource for my
  
  
  

application.




If we manually create it in server.xml, the
  
  
  

provider




claims that the changes are overwritten and
  
  
  

removed




every time someone uploads a new .war file.
  

(Is

  
  
  

this



true?) 
  
  
  

AFAIK, server.xml is not altered by war file
deployments.
Tomcat would need to be restarted in order that
those alterations to
server.xml are evaluated.

I also do not want to define the datasource as




eg a global resource, as it would mean the
  

other

  
  
  

users




of the tomcat server can get access to my
  
  
  

database.




I tried to configure the datasource in the
  
  
  

context.xml




of my application and put it in my .war file.
  
  

This



works fine on my development server, but when
  
  
  

uploaded




to the Tomcat server with Plesk, a server.xml
  
  
  

entry




for my application is created without the
  

=== message truncated ===


-
To start a new topic, e-mail: 

Tomcat/Plesk datasource setup problems

2007-10-01 Thread Charl Gerber
Hi,

I just moved my hosting from a provider where I had a
private Tomcat server with complete control over it to
a provider that uses Plesk and I share the Tomcat
server with other users. The provider has no Tomcat
knowledge in house and the Tomcat service is rarely
used, so they couldn't help me with this problem.

I want to create a jdbc datasource for my application.
If we manually create it in server.xml, the provider
claims that the changes are overwritten and removed
every time someone uploads a new .war file. (Is this
true?) I also do not want to define the datasource as
eg a global resource, as it would mean the other users
of the tomcat server can get access to my database.

I tried to configure the datasource in the context.xml
of my application and put it in my .war file. This
works fine on my development server, but when uploaded
to the Tomcat server with Plesk, a server.xml entry
for my application is created without the datasource
settings and I cannot access my database.

How and where can I properly define a datasource for
my application so that Plesk will set the Tomcat
configuration correctly?

CG

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-01 Thread Pid
Charl Gerber wrote:
 Hi,
 
 I just moved my hosting from a provider where I had a
 private Tomcat server with complete control over it to
 a provider that uses Plesk and I share the Tomcat
 server with other users. The provider has no Tomcat
 knowledge in house and the Tomcat service is rarely
 used, so they couldn't help me with this problem.

which version of tomcat?

 I want to create a jdbc datasource for my application.
 If we manually create it in server.xml, the provider
 claims that the changes are overwritten and removed
 every time someone uploads a new .war file. (Is this
 true?) 

AFAIK, server.xml is not altered by war file deployments.
Tomcat would need to be restarted in order that those alterations to
server.xml are evaluated.

I also do not want to define the datasource as
 eg a global resource, as it would mean the other users
 of the tomcat server can get access to my database.
 
 I tried to configure the datasource in the context.xml
 of my application and put it in my .war file. This
 works fine on my development server, but when uploaded
 to the Tomcat server with Plesk, a server.xml entry
 for my application is created without the datasource
 settings and I cannot access my database.

What are the details of the entry being made in server.xml?
Is Plesk making these alterations?
What process are you using to upload the WAR?

 How and where can I properly define a datasource for
 my application so that Plesk will set the Tomcat
 configuration correctly?

META-INF/context.xml is the best location I think.

Please provide more details about the tomcat version and the answer to
the questions above.


p



 CG
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/Plesk datasource setup problems

2007-10-01 Thread Charl Gerber
Tomcat 5.0.something. (I wanted 5.5 or 6.0, but alas)

I wanted to create a JDBC Resource in the
GlobalNamingResources to start with. Plesk puts the
application into the server.xml something like this:

Host deployXML=true name=ammetersforafrica.co.za
debug=0
appBase=psa-webapps/ammetersforafrica.co.za
unpackWARs=false autoDeploy=true
liveDeploy=true
Context crossContext=false
reloadable=false useNaming=true debug=0
swallowOutput=false privileged=true
displayName=Tomcat Manager Application
docBase=/usr/share/tomcat5/server/webapps/manager
cookies=true path=/manager cachingAllowed=true/
Realm
className=org.apache.catalina.realm.MemoryRealm
debug=0
pathname=psa-users/ammetersforafrica.co.za.xml
validate=true/
  /Host

So in the Context definition, I would want to put a
ResourceLink setting to the Global Resource. But, as I
said, it would mean everyone has access to it.

I do have the Resource in my META-INF/context.xml, but
it seems like Plesk/Tomcat just ignores whatever is it
in, Tomcat probably reads the server.xml configuration
for the app and doesn't look at the context.xml after
that?



--- Pid [EMAIL PROTECTED] wrote:

 Charl Gerber wrote:
  Hi,
  
  I just moved my hosting from a provider where I
 had a
  private Tomcat server with complete control over
 it to
  a provider that uses Plesk and I share the Tomcat
  server with other users. The provider has no
 Tomcat
  knowledge in house and the Tomcat service is
 rarely
  used, so they couldn't help me with this problem.
 
 which version of tomcat?
 
  I want to create a jdbc datasource for my
 application.
  If we manually create it in server.xml, the
 provider
  claims that the changes are overwritten and
 removed
  every time someone uploads a new .war file. (Is
 this
  true?) 
 
 AFAIK, server.xml is not altered by war file
 deployments.
 Tomcat would need to be restarted in order that
 those alterations to
 server.xml are evaluated.
 
 I also do not want to define the datasource as
  eg a global resource, as it would mean the other
 users
  of the tomcat server can get access to my
 database.
  
  I tried to configure the datasource in the
 context.xml
  of my application and put it in my .war file. This
  works fine on my development server, but when
 uploaded
  to the Tomcat server with Plesk, a server.xml
 entry
  for my application is created without the
 datasource
  settings and I cannot access my database.
 
 What are the details of the entry being made in
 server.xml?
 Is Plesk making these alterations?
 What process are you using to upload the WAR?
 
  How and where can I properly define a datasource
 for
  my application so that Plesk will set the Tomcat
  configuration correctly?
 
 META-INF/context.xml is the best location I think.
 
 Please provide more details about the tomcat version
 and the answer to
 the questions above.
 
 
 p
 
 
 
  CG
  
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]