Re: Tomcat configuration under webApp

2011-10-19 Thread ettoregia



Pid * wrote:
 
 On 18/10/2011 23:29, Tim Watts wrote:
 Sorry I meant  /tomcat/apps/myAppName/conf/ and under conf all the files
  mentioned above
 That is a strange layout. Is it possible that the IT people are running
 each webapp in a separate JVM and pointing CATALINA_BASE
 to /tomcat/apps/appName ? 
 
 That makes sense actually, I'll ask the IT if that's what they do.
 
 
 
   What is in the server.xml file?
 
 Question still stands...
 
 
 p
 
 SERVER.XML--
 ?xml version='1.0' encoding='utf-8'?
 Server port=1${tomcat.server.port} shutdown=SHUTDOWN
 
   Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on /
   Listener className=org.apache.catalina.core.JasperListener /
   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 /
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
 
   GlobalNamingResources
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
  
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
   /GlobalNamingResources
 
   Service name=Catalina
 Connector port=${tomcat.server.port} protocol=HTTP/1.1
connectionTimeout=2
redirectPort=8443 /
 
 Engine name=Catalina defaultHost=localhost
 
 Realm className=org.apache.catalina.realm.JNDIRealm
 connectionURL=ldap://pinot-nero.energiaspa.it:389;
 alternateURL=ldap://pinot-grigio.energiaspa.it:389;
 connectionName=ENERGIASPA\ldapbrowser
 connectionPassword=drc4Fv9CGqIzWewX9nO3
 userBase=DC=ENERGIASPA,DC=IT
 referrals=follow
 userSubtree=true
   userSubtree=true
 userSearch=(amp;(sAMAccountName={0})(objectClass=user))
 roleBase=OU=linux-group,OU=Linux,DC=ENERGIASPA,DC=IT
 roleName=cn
 roleSearch=(member={0})
 /
 
   Host name=localhost  appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 
   Context path=/lambdaprobe
 docBase=${catalina.home}/webapps/probe privileged=true
  antiResourceLocking=false antiJARLocking=false
 
   /Context
 
   /Host
 /Engine
   /Service
 /Server
 ---
 
 
  
 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32680389.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat configuration under webApp

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ettore,

On 10/19/2011 3:38 AM, ettoregia wrote:
 SERVER.XML-- ?xml
 version='1.0' encoding='utf-8'? Server
 port=1${tomcat.server.port} shutdown=SHUTDOWN

You might want to consider using two different properties for the
shutdown and connector ports: port 1xxx might not be available all the
time, and you might want to configure it explicitly and independently
of tomcat.server.port.

 GlobalNamingResources Resource name=UserDatabase
 auth=Container type=org.apache.catalina.UserDatabase 
 description=User database that can be updated and saved
 
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory 
 pathname=conf/tomcat-users.xml / /GlobalNamingResources

You should remove that Resource if you're not using it.

 Service name=Catalina Connector port=${tomcat.server.port}
 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443
 /
 
 Engine name=Catalina defaultHost=localhost
 
 Realm className=org.apache.catalina.realm.JNDIRealm 
 connectionURL=ldap://pinot-nero.energiaspa.it:389; 
 alternateURL=ldap://pinot-grigio.energiaspa.it:389; 
 connectionName=ENERGIASPA\ldapbrowser 
 connectionPassword=drc4Fv9CGqIzWewX9nO3

Whoops. Time to change your password.

 Host name=localhost  appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
 
 Context path=/lambdaprobe 
 docBase=${catalina.home}/webapps/probe privileged=true 
 antiResourceLocking=false antiJARLocking=false

A Host with appBase=webapps and a Context with a docBase in
webapps will result in Lambda Probe (time to upgrade to Psi Probe!)
being deployed twice. (Unless you are using CATALINA_HOME and
CATALINA_BASE, in which case, you should be okay with this).

Okay, I don't see any reason why you couldn't have everything
contained in your webapp: either you use the Realm specified at the
Engine level and don't need to specify it in your
META-INF/context.xml or you use a different Realm and *do* need to
specify it in your META-INF/context.xml.

So... why can't you use the manager webapp to deploy your WAR?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6e3+oACgkQ9CaO5/Lv0PAxNwCgn6tBSZDtt8Bu04dXNOZL+2eN
pZQAn289rvJm5fkETltiDMfsfY80KmvQ
=9Mkp
-END PGP SIGNATURE-

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



Re: Tomcat configuration under webApp

2011-10-19 Thread ettoregia



Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Ettore,
 
 On 10/19/2011 3:38 AM, ettoregia wrote:
 SERVER.XML-- ?xml
 version='1.0' encoding='utf-8'? Server
 port=1${tomcat.server.port} shutdown=SHUTDOWN
 
 Just to let you know, I'm trying to figure out something out of what has
 been done by someone else, that is, sometimes I don't know why those
 things are there.
 
 You might want to consider using two different properties for the
 shutdown and connector ports: port 1xxx might not be available all the
 time, and you might want to configure it explicitly and independently
 of tomcat.server.port.
 
 OK
 
 GlobalNamingResources Resource name=UserDatabase
 auth=Container type=org.apache.catalina.UserDatabase 
 description=User database that can be updated and saved
 
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory 
 pathname=conf/tomcat-users.xml / /GlobalNamingResources
 
 You should remove that Resource if you're not using it.
 
 
 
 Service name=Catalina Connector port=${tomcat.server.port}
 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443
 /
 
 Engine name=Catalina defaultHost=localhost
 
 Realm className=org.apache.catalina.realm.JNDIRealm 
 connectionURL=ldap://pinot-nero.energiaspa.it:389; 
 alternateURL=ldap://pinot-grigio.energiaspa.it:389; 
 connectionName=ENERGIASPA\ldapbrowser 
 connectionPassword=drc4Fv9CGqIzWewX9nO3
 
 Whoops. Time to change your password.
 You're def right, even if those tools are inside the intranet and the pwd
 are old ones, but still...thanks
 
 Host name=localhost  appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
 
 Context path=/lambdaprobe 
 docBase=${catalina.home}/webapps/probe privileged=true 
 antiResourceLocking=false antiJARLocking=false
 
 A Host with appBase=webapps and a Context with a docBase in
 webapps will result in Lambda Probe (time to upgrade to Psi Probe!)
 being deployed twice. (Unless you are using CATALINA_HOME and
 CATALINA_BASE, in which case, you should be okay with this).
 
 Okay, I don't see any reason why you couldn't have everything
 contained in your webapp: either you use the Realm specified at the
 Engine level and don't need to specify it in your
 META-INF/context.xml or you use a different Realm and *do* need to
 specify it in your META-INF/context.xml.
 
 So... why can't you use the manager webapp to deploy your WAR?
 
 Well because I've no permission to access the manager webApp since there
 are other applications under the container that I don't own. 
 
 Btw dou you understand why I have server.xml and the others mentioned
 before under Tomcat/webApps/myWebApp/conf/, aren't they files that should
 just be stored under Tomcat/conf ??
 
 Thanks a lot for your time, really apprecciate!
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk6e3+oACgkQ9CaO5/Lv0PAxNwCgn6tBSZDtt8Bu04dXNOZL+2eN
 pZQAn289rvJm5fkETltiDMfsfY80KmvQ
 =9Mkp
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32683725.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat configuration under webApp

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ettore,

On 10/19/2011 1:21 PM, ettoregia wrote:
 So... why can't you use the manager webapp to deploy your WAR?
 
 Well because I've no permission to access the manager webApp since
 there are other applications under the container that I don't own.
 
So, your IT department will give you access to neither the deployment
directory, nor the conf/ directory for deployment, nor will they give
you access to the manager app to deploy webapps?

Sounds like your IT department doesn't want you to deploy webapps.

Maybe you should discuss this with them.

 Btw do you understand why I have server.xml and the others
 mentioned before under Tomcat/webApps/myWebApp/conf/, aren't they
 files that should just be stored under Tomcat/conf ??

Your layout seems ... non-standard. Perhaps /Tomcat/webApps/myWebApp
is supposed to be a CATALINA_BASE for multi-instance Tomcat use. This
is what Tim suggested, yesterday. You said you were going to as your
IT dept... did you do that, yet? Only they can tell you what's going on.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6fIXAACgkQ9CaO5/Lv0PACqwCdFtw7m9KLHu992erfgovXqMwa
kcEAn0v/nBK+IXbh5Z4gIWaOGrvx+R1w
=rCgo
-END PGP SIGNATURE-

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



Re: Tomcat configuration under webApp

2011-10-18 Thread Pid *
On 18 Oct 2011, at 16:12, ettoregia ettore...@gmail.com wrote:


 My system: Tomcat 6.0.18 --- Linux Red Hat 4 -- Java 6

 Hi folk,

 does anyone of you knows where I can get some materials in order to
 understand how Tomcat works with sub-directories within an exploded-war
 file?

http://tomcat.apache.org/ ?


 I clarify the question: I have the below structure and what I don't
 understand is why those xml files that are also under /Tomcat/conf/ are put
 under such a webApp folder. My understanding is that having them under one
 own folder they can be customized for any specific war, am I right?

 /tomcat/apps/webAppName{
 Catalina catalina.properties  log4j.properties  tomcat-users.xml
 catalina.policy  context.xml  server.xmlweb.xml }

The above is not a standard file layout and I don't understand what
the braces mean.

What is in the server.xml file?


p


 I'm asking this because the IT department of the Company where I work as
 consultant, is not giving me any write privileges to modify some files,
 neither they're allowing me to copy, by myself, a .war file under webApp.

 In the end, with those files I can customize the catalina.properties,
 tomcat-users to deploy my webApp from the browser, the context and the
 like.. Do you think is this the point?

 Probably the qeustion is trivial but I'm on my own and have no one else to
 ask.

 Thanks in advance,
 Ettore.
 --
 View this message in context: 
 http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32675490.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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



Re: Tomcat configuration under webApp

2011-10-18 Thread ettoregia



Pid * wrote:
 
 On 18 Oct 2011, at 16:12, ettoregia ettore...@gmail.com wrote:
 

 My system: Tomcat 6.0.18 --- Linux Red Hat 4 -- Java 6

 Hi folk,

 does anyone of you knows where I can get some materials in order to
 understand how Tomcat works with sub-directories within an exploded-war
 file?
 
 http://tomcat.apache.org/ ?
 
 
 I clarify the question: I have the below structure and what I don't
 understand is why those xml files that are also under /Tomcat/conf/ are
 put
 under such a webApp folder. My understanding is that having them under
 one
 own folder they can be customized for any specific war, am I right?

 /tomcat/apps/webAppName{
 Catalina catalina.properties  log4j.properties  tomcat-users.xml
 catalina.policy  context.xml  server.xmlweb.xml }
 
 The above is not a standard file layout and I don't understand what
 the braces mean.
 
 Sorry I meant  /tomcat/apps/myAppName/conf/ and under conf all the files
 mentioned above
 
 What is in the server.xml file?
 
 
 p
 

 I'm asking this because the IT department of the Company where I work as
 consultant, is not giving me any write privileges to modify some files,
 neither they're allowing me to copy, by myself, a .war file under webApp.

 In the end, with those files I can customize the catalina.properties,
 tomcat-users to deploy my webApp from the browser, the context and the
 like.. Do you think is this the point?

 Probably the qeustion is trivial but I'm on my own and have no one else
 to
 ask.

 Thanks in advance,
 Ettore.
 --
 View this message in context:
 http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32675490.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32676068.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat configuration under webApp

2011-10-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ettore,

On 10/18/2011 11:12 AM, ettoregia wrote:
 I'm asking this because the IT department of the Company where I
 work as consultant, is not giving me any write privileges to modify
 some files, neither they're allowing me to copy, by myself, a .war
 file under webApp.
 
 In the end, with those files I can customize the
 catalina.properties, tomcat-users to deploy my webApp from the
 browser, the context and the like.. Do you think is this the
 point?

If you can deploy webapps through the web interface, that should be
all you need.

None of the files you mentioned (Catalina, catalina.properties,
log4j.properties, tomcat-users.xml, catalina.policy, context.xml,
server.xml, web.xml) make sense to be directly in your webapp's
deployment directory. The file web.xml should be in your webapp's
WEB-INF directory, the file context.xml should be in your webapp's
META-INF directory, and the file log4j.properties should probably be
in WEB-INF/classes.

catalina.properties and catalina.policy are only useful at the
server-level, and if the IT admins don't want you to have access to
them, you'll have to ask them to make whatever changes you require to
those files.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6d8a4ACgkQ9CaO5/Lv0PBjvgCeMten3Hbrg9CEG5M87NZn/nEx
pYUAoJVlDW43JDobcCsbWaSWMLu7JprC
=ONsl
-END PGP SIGNATURE-

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



Re: Tomcat configuration under webApp

2011-10-18 Thread Tim Watts
On Tue, 2011-10-18 at 09:15 -0700, ettoregia wrote:
 
 
 Pid * wrote:
  
  On 18 Oct 2011, at 16:12, ettoregia ettore...@gmail.com wrote:
  
 
  My system: Tomcat 6.0.18 --- Linux Red Hat 4 -- Java 6
 
  Hi folk,
 
  does anyone of you knows where I can get some materials in order to
  understand how Tomcat works with sub-directories within an exploded-war
  file?
  
  http://tomcat.apache.org/ ?
  
  
  I clarify the question: I have the below structure and what I don't
  understand is why those xml files that are also under /Tomcat/conf/ are
  put
  under such a webApp folder. My understanding is that having them under
  one
  own folder they can be customized for any specific war, am I right?
 
  /tomcat/apps/webAppName{
  Catalina catalina.properties  log4j.properties  tomcat-users.xml
  catalina.policy  context.xml  server.xmlweb.xml }
  
  The above is not a standard file layout and I don't understand what
  the braces mean.
  
 Sorry I meant  /tomcat/apps/myAppName/conf/ and under conf all the files
 mentioned above

That is a strange layout. Is it possible that the IT people are running
each webapp in a separate JVM and pointing CATALINA_BASE
to /tomcat/apps/appName ? 


  What is in the server.xml file?
  
  
  p
  
 
  I'm asking this because the IT department of the Company where I work as
  consultant, is not giving me any write privileges to modify some files,
  neither they're allowing me to copy, by myself, a .war file under webApp.
 
  In the end, with those files I can customize the catalina.properties,
  tomcat-users to deploy my webApp from the browser, the context and the
  like.. Do you think is this the point?
 
  Probably the qeustion is trivial but I'm on my own and have no one else
  to
  ask.
 
  Thanks in advance,
  Ettore.
  --
  View this message in context:
  http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32675490.html
  Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
  
  
  
 



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



Re: Tomcat configuration under webApp

2011-10-18 Thread Pid
On 18/10/2011 23:29, Tim Watts wrote:
 On Tue, 2011-10-18 at 09:15 -0700, ettoregia wrote:


 Pid * wrote:

 On 18 Oct 2011, at 16:12, ettoregia ettore...@gmail.com wrote:


 My system: Tomcat 6.0.18 --- Linux Red Hat 4 -- Java 6

 Hi folk,

 does anyone of you knows where I can get some materials in order to
 understand how Tomcat works with sub-directories within an exploded-war
 file?

 http://tomcat.apache.org/ ?


 I clarify the question: I have the below structure and what I don't
 understand is why those xml files that are also under /Tomcat/conf/ are
 put
 under such a webApp folder. My understanding is that having them under
 one
 own folder they can be customized for any specific war, am I right?

 /tomcat/apps/webAppName{
 Catalina catalina.properties  log4j.properties  tomcat-users.xml
 catalina.policy  context.xml  server.xmlweb.xml }

 The above is not a standard file layout and I don't understand what
 the braces mean.

 Sorry I meant  /tomcat/apps/myAppName/conf/ and under conf all the files
 mentioned above
 
 That is a strange layout. Is it possible that the IT people are running
 each webapp in a separate JVM and pointing CATALINA_BASE
 to /tomcat/apps/appName ? 

If they are, then it might make a bit more sense.  I wonder if the OP
was given more precise deployment instructions that are being
misunderstood...


p


 What is in the server.xml file?


 p


 I'm asking this because the IT department of the Company where I work as
 consultant, is not giving me any write privileges to modify some files,
 neither they're allowing me to copy, by myself, a .war file under webApp.

 In the end, with those files I can customize the catalina.properties,
 tomcat-users to deploy my webApp from the browser, the context and the
 like.. Do you think is this the point?

 Probably the qeustion is trivial but I'm on my own and have no one else
 to
 ask.

 Thanks in advance,
 Ettore.
 --
 View this message in context:
 http://old.nabble.com/Tomcat-configuration-under-webApp-tp32675490p32675490.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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




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




signature.asc
Description: OpenPGP digital signature


Re: Tomcat configuration under webApp

2011-10-18 Thread Pid
On 18/10/2011 23:29, Tim Watts wrote:
 Sorry I meant  /tomcat/apps/myAppName/conf/ and under conf all the files
  mentioned above
 That is a strange layout. Is it possible that the IT people are running
 each webapp in a separate JVM and pointing CATALINA_BASE
 to /tomcat/apps/appName ? 
 
 
   What is in the server.xml file?

Question still stands...


p



signature.asc
Description: OpenPGP digital signature