Unable to run tomcat in Eclipse

2008-07-18 Thread KANIKA GUPTA

Hi

I am using tomcat V6.0.16 on openSuse 11.0 along with eclipse 3.4.0 genameyde.
The tomcat starts and stop normally when i do the same on command line, but 
when i try to start the server through eclipse... it gives me the following 
error:

'Starting Tomcat v6.0 Server at localhost has encountered a problem.
Could not load the Tomcat server configuration at /Servers/Tomcat v6.0 Server 
at localhost-config. The configuration may be corrupt or incomplete.

I am running the server at port 8085. I changed it to same in the server.xml 
file located in the installation directory of tomcat in conf folder. This was 
done because i am using was ce at 8080.

I have jdk5 as well as jdk6 installed bt currently working with jdk5.

Please help what to do...

Kanika


  


  

Re: Disable password checking for Manager app

2008-07-18 Thread André Warnier

dracus wrote:

Greetings, all


I have a web app server that has Apache in front of Tomcat.  Apache is
handling user authentication and security checking (through an experimental
X.509 <-> Kerberos gateway service being developed by others in my group,
but that is neither here nor there), and passes the username (as either
REMOTE_USER or Shib-InetOrgPerson-mail) to Tomcat.  To get that to work, we
had to include the 'request.tomcatAuthentication="false"' directive in the
AJP block of server.xml.  Unfortunately, this kills the Tomcat manager, as
it will no longer allow us to log into it.  We use it extensively to deploy
new versions of our web apps, etc.  I have tried putting my authenticated
username into tomcat-users.xml as a user with the manager role, and it still
does not allow me to use the manger, with error "403: Access to the
requested resource has been denied".  I check the tomcat-users.xml file, and
it has added a password entry (password="null") to my user define.  So what
I want to know is, can I get tomcat to accept the username passed in from
Apache without a password (the only connection allowed into Tomcat is AJP)
so that I can put the users allowed to access the manager app into
tomcat-users.xml, and let Apache do all of the authentication?  Any pointers
would be greatly appreciated, thanks in advance.  

JDK 1.6.0  
Tomcat 5.5.23  
mod-jk 1.2.21  
http 2.2.4 RHEL 5  
shibboleth sp 1.3.1


Just to add that I am also interested in the question above, or more 
generally to learn if there exists a way to pass, from Apache through 
mod_jk to Tomcat, some form of "Tomcat role" for a user already 
authenticated by Apache.


On the other hand, might it not be possible to modify the 
 section of the web.xml of the manager application, so 
that instead of requiring a "role = manager", it would instead require a 
specific authenticated user (which could then be the one passed from 
Apache) ?



André

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



Disable password checking for Manager app

2008-07-18 Thread dracus

Greetings, all


I have a web app server that has Apache in front of Tomcat.  Apache is
handling user authentication and security checking (through an experimental
X.509 <-> Kerberos gateway service being developed by others in my group,
but that is neither here nor there), and passes the username (as either
REMOTE_USER or Shib-InetOrgPerson-mail) to Tomcat.  To get that to work, we
had to include the 'request.tomcatAuthentication="false"' directive in the
AJP block of server.xml.  Unfortunately, this kills the Tomcat manager, as
it will no longer allow us to log into it.  We use it extensively to deploy
new versions of our web apps, etc.  I have tried putting my authenticated
username into tomcat-users.xml as a user with the manager role, and it still
does not allow me to use the manger, with error "403: Access to the
requested resource has been denied".  I check the tomcat-users.xml file, and
it has added a password entry (password="null") to my user define.  So what
I want to know is, can I get tomcat to accept the username passed in from
Apache without a password (the only connection allowed into Tomcat is AJP)
so that I can put the users allowed to access the manager app into
tomcat-users.xml, and let Apache do all of the authentication?  Any pointers
would be greatly appreciated, thanks in advance.  

JDK 1.6.0  
Tomcat 5.5.23  
mod-jk 1.2.21  
http 2.2.4 RHEL 5  
shibboleth sp 1.3.1
-- 
View this message in context: 
http://www.nabble.com/Disable-password-checking-for-Manager-app-tp18537331p18537331.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Tomcat6 map subdomain to particular directory under web root

2008-07-18 Thread kazukin6


Caldarale, Charles R wrote:
> 
> You can use Tuckey's URL rewrite filter (http://tuckey.org/urlrewrite/) or
> you could use virtual hosts: instead of the , define a second
>  with an appBase pointing to the desired directory.
>  - Chuck
> 

Chuck, thanks a lot!
1)  I didnt manage to get the second host working, tomcat just won't find
any pages/resources and returns empty pages. Adding context element
  seems to fix that
problem, but in this case it looks like it's working in separate context
(none of the java classes from WEB-INF/classes can be used)
2) Tuckey's URL rewrite  does work! But I'm not sure about performance
overheads, compared to using Apache WebServer with Virtual Hosts.
For those who concern, here is the sample rule (from urlrewrite.xml)


subdomains redirect

w1.localhost
/admin/(.*)
/w1/(.*)
^/(.*)
/w1/$1



-- 
View this message in context: 
http://www.nabble.com/Tomcat6-map-subdomain-to-particular-directory-under-web-root-tp18531402p18536559.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: logging of "response time"

2008-07-18 Thread Rainer Jung

Tony Anecito schrieb:

I have asked on this group but have never gotten an answer. My guess
is it means socket connect time. What that means is the real
question. Again, I have a theory that the amount of time is not just
the response time (taking into account the chatter of the signaling)
of the app but how long it takes before the client responds to close
the socket and the signal to propagate.

My 2cents worth. When I look at my logs on Windows the response time
as measured at Apache for requests that gets passed to Tomcat
(embedded in JBoss 4.2.2) is typically 0msec. Sometimes I see 15msec
even with -D or microsecond resolution (windows OS timer issue).




For http SOAP requests I get from all over the world from my RIA I
typically see 0msec in Apache and I am curious what is measured
elsewhere.


--- On Thu, 7/17/08, ywtsang <[EMAIL PROTECTED]> wrote:

i log the response time by the following option:

%D - Time taken to process the request, in millis

does this mean that the time includes the sum of:

- start of request - application logic - streaming the whole
response (html text) back to client

?


The time is taken at the beginning of the AccessLogValve invoke as part 
of the valves chain, and at the end, directly before formatting the log 
file and writing it out.


So it will not contain connection setup and I think also not receiving 
the request headers. It will include everything from then until writing 
the final response data to the socket.


Regards,

Rainer

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



Apache 2.2.8+tomcat 6.0.16+Window vista & http 404

2008-07-18 Thread rangeli nepal
Recently I installed apache and tomcat. Environment is depicted int subject
line. They both work nice and fine independently.

I am trying to integrate them with mod_jk.

I belive I followed all the steps suggested by document.

1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory
and added following in line httpd.conf

LoadModule jk_module modules/mod_jk.so

2. Went to tomcat Installation, changed server.xml. Added following lines.



 
Afte the line
 

Then Added

 
After the line



started the tomcat mod_jk.conf was created.

3. Went back to http.conf Added following line at the end

Include
C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto

Also added following lines after LoadModules

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

Restarted whole thing. Still I can not go to follwoing web page.
http://localhost/examples/jsp/index.html

4. Created workers.properties file in ./con/jk ( in tomcat installation). It
looks like follwoing
# Define 1 real worker using ajp13
worker.list=ajp13
# Set properties for ajp13 (ajp13)
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009

After Reading couple of messages on newsgroup, I thought it will solve the
issue if I move the  Section from mod_jk.conf to httpd.conf
but no avail.
my mod_jk.conf looks like somthing like this:

  LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"

JkWorkersFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties"
JkLogFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log"
JkLogLevel trace

am I missing something? Worst thing I can not see mod_jk log
Thank you.
rn


export and Tomcat?

2008-07-18 Thread buters

Hi,

My tomcat runs as a service on Linux system.
Earlier another person set $JAVA_OPTS as
"=-Dartifactory.home=/srv/artifactory-1.2.5"
I would change it with "export
JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3". If I execute echo
$JAVA_OPTS, I see "=-Dartifactory.home=/srv/artifactory-1.3". Also it is
correct. But tomcat sees it as earlier i.e.
"=-Dartifactory.home=/srv/artifactory-1.2.5" (info from localhost.log). I
insert "export JAVA_OPTS=-Dartifactory.home=/srv/artifactory-1.3" in
.bashrc, but it was unsuccessful. My $JAVA_OPTS points on
-Dartifactory.home=/srv/artifactory-1.3, but tomcat won't watch it so. Where
should I it change, that tomcat can find it?

Thanks beforehand,
regards, buters
-- 
View this message in context: 
http://www.nabble.com/export-and-Tomcat--tp18534223p18534223.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Artifactory with Tomcat in Linux

2008-07-18 Thread buters

Thank you very much, David, for your fast reply.

Sorry I was some time busy with other things. 

I've looked in the localhost.log and I've found the error:
java.lang.IllegalArgumentException: Could not create or access artifactory
main directory Unable to create directory
/usr/share/artifactory-1.3.0-beta-2/work

Then I've changed the permitions for artifactory-1.3.0-beta-2 folder to rwx
for other and wham, it works.

Another problem was to find where log folder of tomcat is. Another person
has installed tomcat. He prefers all folder to scatter on the file system.
E.g. tomcat is in usr/share and tomcat log files are in var/log/tomcat-6.

Best Regards, buters


David Smith-2 wrote:
> 
> What's in your logs when you start tomcat?  If you check the manager 
> app, does it show artifactory running?
> 
> --David
> 
> buters wrote:
>> Hi,
>>
>> on the site
>> http://www.theserverside.com/tt/articles/article.tss?l=SettingUpMavenRepository
>> is described how Artifactory can be set up as webapplication for Tomcat
>> in
>> Linux . I'm using Tomcat-6.0. It runs as a service. It has successful
>> deployed Artifactory. But I get 404 error with
>> http://localhost:8080/artifactory: The requested resource (/artifactory/)
>> is
>> not available.
>>
>> If I'm executing 'set' command in the console, I can see 
>> CATALINA_HOME=/usr/share/tomcat-6
>> JAVA_OPTS=-Dartifactory.home=/srv/artifactory
>>
>> My another webapplications run with tomcat. I've looked at permissions of
>> artifactory folder in the webapps folder of tomcat. They are the same as
>> for
>> another webapplications. My artifactory.home folder has permissions
>> drwxr-xr-x.
>>
>> Thanks beforehand,
>> regards, buters
>>   
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Artifactory-with-Tomcat-in-Linux-tp18527120p18533582.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Tomcat6 map subdomain to particular directory under web root

2008-07-18 Thread Caldarale, Charles R
> From: kazukin6 [mailto:[EMAIL PROTECTED]
> Subject: Tomcat6 map subdomain to particular directory under web root
>
> server.xml
>unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> w1.localhost
>   
>
> Using alias "w1.localhost" maps subdomain to web root directory
> Is there any trick to map w1.localhost to localhost/w1 directory?

You can use Tuckey's URL rewrite filter (http://tuckey.org/urlrewrite/) or you 
could use virtual hosts: instead of the , define a second  with an 
appBase pointing to the desired directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Tomcat6 map subdomain to particular directory under web root

2008-07-18 Thread kazukin6

server.xml
  
w1.localhost
  

Using alias "w1.localhost" maps subdomain to web root directory
Is there any trick to map w1.localhost to localhost/w1 directory?
-- 
View this message in context: 
http://www.nabble.com/Tomcat6-map-subdomain-to-particular-directory-under-web-root-tp18531402p18531402.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Changing content type on reload

2008-07-18 Thread Dola Woolfe
Just as a quick follow up, this works in Firefox, but not in IE.


--- On Thu, 7/17/08, Dola Woolfe <[EMAIL PROTECTED]> wrote:

> From: Dola Woolfe <[EMAIL PROTECTED]>
> Subject: Changing content type on reload
> To: "Tom Cat" <[EMAIL PROTECTED]>
> Date: Thursday, July 17, 2008, 10:51 PM
> Hi,
> 
> I'm going to attempt asking a question by giving
> incomplete information but I am still hoping to get an
> answer. The complete story would be too cumbersome to
> describe.
> 
> Basically here's a snippet of my code:
> 
> <[EMAIL PROTECTED] errorPage="ErrorPage.jsp"
> contentType="application/x-java-jnlp-file"%>
> <[EMAIL PROTECTED] file="InitializePage.jsp"%>
> <%
>if (user == null) 
>  throw new servlets.Authentication.Exception("User
> is null");
>else if (!user.belongsTo(1L)) {
>  throw new
> servlets.Authentication.Exception("Insufficient
> access");
>}
>  %>
>   
>  encoding="utf-8"?>
> 
>  >
>
> Info Flow System Application
> 
> 
> // ETC
> 
> WHen the exception is fielded by the error page, the user
> is presented with a login form and when he/she logs in, the
> page is reloaded (with javascript). The problem is that the
> xml code, rather than invoking jnlp, is displayed as if it
> were HTML and jnlp kicks in only when the user reloads.
> This is with IExplorer.
> 
> Anything I can do about this from the tomcat point of view?
> 
> Thanks much in advance!
> 
> Dola
> 
> 
> 
>   
> 
> -
> 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]



Precompiling .tag files containing Java 5 syntax?

2008-07-18 Thread Jess Holle
Tomcat's JSP precompiler does not seem to be able to handle tag files 
containing Java 5 syntax -- it acts as if it were in "-source 1.4" [or 
"-source 1.3", we don't use asserts much] mode.


Is this a known issue?  Is there something to be done about this?

I'm doing:

   

where jasper2 is taskdef'ed to org.apache.jasper.JspC.  sourceVer and 
targetVer are both 1.5.


And, yes, of course, my  specifies target and source versions as 
well ala:


   

   [Note the Tomcat docs should be updated to state that
   encoding="UTF-8" should be used as that's the default output of JspC
   and /not/ the default input of ...]

Am I missing something here?

Note that the tag files in question work fine at runtime -- they just 
won't precompile.


--
Jess Holle



Tomcat does not start

2008-07-18 Thread georgiu marius
Hi !

I'm working with a cluster application and I want to use session replication. 
Here is my server.xml :





  
  
  
  
  
  
    
  

 
  
  
    
    
   
    

  
    

  
    
    
    
   
 
    
    
    
    
    
  

  
  

  

  
  
    
  

  
  
 
  
    
  


If a set in context.xml  or in web.xml 
,  when I start tomcat an UnsupportedOperationException is 
thrown :

18.07.2008 15:52:00 org.apache.catalina.ha.tcp.SimpleTcpCluster createManager
SEVERE: Unable to clone cluster manager, defaulting to 
org.apache.catalina.ha.session.DeltaManager
java.lang.UnsupportedOperationException
    at 
org.apache.catalina.ha.session.SimpleTcpReplicationManager.cloneFromTemplate(SimpleTcpReplicationManager.java
:682)
    at 
org.apache.catalina.ha.tcp.SimpleTcpCluster.createManager(SimpleTcpCluster.java:506)
    at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4259)
    at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
    at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
    at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
    at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

This happens on tomcat-6.0.14 and tomcat-6.0.16
 also. My JDK is jdk1.5.0_06. How can I start tomcat and having distributable 
flag set ?

Thanks in advance !



  

Re: Setting context in tomcat6

2008-07-18 Thread Charles Caldarale

On Jul 18, 2008, at 2:12, "vibhuti" <[EMAIL PROTECTED]> wrote:


This is mentioned in tomcat documentation and I just followed what was
written there. Here is the link:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html



If this is erroneous then renaming or using filter are the only ways?


It's neither erroneous nor inconsistent with what you've already been  
told. Besides the section of the doc that you quoted, read the  
descriptions of the path and docBase attributes. Note that you must  
not use a path attribute here, and the docBase attribute is redundant  
(ignored, at best) when the app is located in the  appBase  
directory.


 - Chuck


-
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: Artifactory with Tomcat in Linux

2008-07-18 Thread David Smith
What's in your logs when you start tomcat?  If you check the manager 
app, does it show artifactory running?


--David

buters wrote:

Hi,

on the site
http://www.theserverside.com/tt/articles/article.tss?l=SettingUpMavenRepository
is described how Artifactory can be set up as webapplication for Tomcat in
Linux . I'm using Tomcat-6.0. It runs as a service. It has successful
deployed Artifactory. But I get 404 error with
http://localhost:8080/artifactory: The requested resource (/artifactory/) is
not available.

If I'm executing 'set' command in the console, I can see 
CATALINA_HOME=/usr/share/tomcat-6

JAVA_OPTS=-Dartifactory.home=/srv/artifactory

My another webapplications run with tomcat. I've looked at permissions of
artifactory folder in the webapps folder of tomcat. They are the same as for
another webapplications. My artifactory.home folder has permissions
drwxr-xr-x.

Thanks beforehand,
regards, buters
  


-
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 giving a response without parsing the header at all

2008-07-18 Thread André Warnier

tomcat tom wrote:

webDAV scenario

i have to authenticate an incoming url with the "settings" in the access
control list on the server

while doing so, i should get an 403 error, because of not having 'write'
permissions

so the user authentication happens at the acl itself, before even the header
parsing happens...



Hi.
It sounds like there is a logical thinking issue here.

1. Something is sending a request asking Tomcat something.
2. In order to know what is asked, Tomcat has to read and parse the request.
3. Once the request (including the headers) is parsed, *then* Tomcat 
knows that the requester maybe wants to put a file somewhere, via DAV.
4. Only then can Tomcat and DAV look at the target directory and figure 
out that there is no permission to write there (because of ACLs or 
whatever).
5. Once they have figured that out, then they can send a "permission 
denied" error response.


It would be great if Tomcat and DAV would somehow guess in advance what 
it is you really want, and anticipate a response without even reading 
the question, but that is not how it currently works.  You can always 
file a request to the developers for future enhancements though, maybe 
for Tomcat 7; I'm sure they'll think of something.


André

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



Artifactory with Tomcat in Linux

2008-07-18 Thread buters

Hi,

on the site
http://www.theserverside.com/tt/articles/article.tss?l=SettingUpMavenRepository
is described how Artifactory can be set up as webapplication for Tomcat in
Linux . I'm using Tomcat-6.0. It runs as a service. It has successful
deployed Artifactory. But I get 404 error with
http://localhost:8080/artifactory: The requested resource (/artifactory/) is
not available.

If I'm executing 'set' command in the console, I can see 
CATALINA_HOME=/usr/share/tomcat-6
JAVA_OPTS=-Dartifactory.home=/srv/artifactory

My another webapplications run with tomcat. I've looked at permissions of
artifactory folder in the webapps folder of tomcat. They are the same as for
another webapplications. My artifactory.home folder has permissions
drwxr-xr-x.

Thanks beforehand,
regards, buters
-- 
View this message in context: 
http://www.nabble.com/Artifactory-with-Tomcat-in-Linux-tp18527120p18527120.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



does tomcat cache any data in its "intermediate state"

2008-07-18 Thread tomcat tom
like, can it cache ejb in "transition"


Re: tomcat giving a response without parsing the header at all

2008-07-18 Thread tomcat tom
webDAV scenario

i have to authenticate an incoming url with the "settings" in the access
control list on the server

while doing so, i should get an 403 error, because of not having 'write'
permissions

so the user authentication happens at the acl itself, before even the header
parsing happens...


On 7/16/08, Mark Thomas <[EMAIL PROTECTED]> wrote:
>
> tomcat tom wrote:
>
>> scenarion
>>
>> client sends a http request to tomcat
>> nos, is there anytime tomcat sends a response without parsing the header
>> at
>> all
>>
>
> No.
>
> Mark
>
>
>
> -
> 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: Doubt on lifecycle of a class in "shared" folder

2008-07-18 Thread java_is_everything

So, it means my code and "intentions" are alright, it's GWT that seems the
culprit, since I have not touched the default conf/properties file.


Regards
Ajay Garg


Caldarale, Charles R wrote:
> 
> 
> 
> What, pray tell, is a "static instance" in Java terminology?
> 
> If the class file of interest is being loaded by separate classloaders,
> then there will be separate java.lang.Class instances for each, despite
> originating from the same .class file.  However, the OP claims that the
> class is in the shared library, and should therefore be loaded by Tomcat's
> shared class loader - once.
> 
> Since independent testing verifies the proper operation of a normally
> configured Tomcat, the OP's environment is either non-standard (e.g.,
> someone's been mucking around with conf/catalina.properties), or the
> framework is using its own classloader, or the OP doesn't really know
> where his classes are.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Doubt-on-lifecycle-of-a-class-in-%22shared%22-folder-tp18502300p18526565.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Apache/mod_jk serves random files from tomcat

2008-07-18 Thread Rainer Jung

Tim Redding wrote:
Just checked the the mod_jk log file.  


2 other files were requested at 12:31:42 in addition to the /css/global.css
file.  One was index.html which just happened to be 2352 bytes in size. 
Exactly the same as the mysterious global.css file we got served.


I have full debug level log files for mod_jk if interested.


Very interested. You can send it or post a download URL to me directly, 
if you think there are private things in there.


Regards,

Rainer

-
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: Method or function to be executed on tomcat startup

2008-07-18 Thread Mikolaj Rydzewski

Edoardo Panfili wrote:

"xx.ServerInit" is a regular servlet the code is in
init(ServletConfig config) method

Use of ServletContextListener is preferred.

To OP: put properties Map in ServletContext and it will be accessible 
for both servlets and JSPs (which are the servlets anyway).


--
Mikolaj Rydzewski <[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: Method or function to be executed on tomcat startup

2008-07-18 Thread Edoardo Panfili

Yves Glodt ha scritto:

Hello,

this is probably a FAQ, but I failed to find ti anyway...

Where can I declare a static method that I want to be executed on tomcat or 
webapp startup?

I use this in web.xml


  Env init
  ServiziServerInit
  xx.ServerInit
  1


  ServiziServerInit
  /SI


"xx.ServerInit" is a regular servlet the code is in
init(ServletConfig config) method

edoardo


I have a properties file which I would like to read into a Map on startup, and 
have this Map available throughout my servlets and jsps.


How would I access this Map while the webapp is running?

I use a static variable, but maybe that someone can describe a more 
polite method.


Edoardo

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



Method or function to be executed on tomcat startup

2008-07-18 Thread Yves Glodt
Hello,

this is probably a FAQ, but I failed to find ti anyway...

Where can I declare a static method that I want to be executed on tomcat or 
webapp startup?

I have a properties file which I would like to read into a Map on startup, and 
have this Map available throughout my servlets and jsps.

How would I access this Map while the webapp is running?

Best regards,
Yves

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



Rotate stdout_xxx.log without Restart Tomcat

2008-07-18 Thread Alexander Diedler
Hello,

It is possible to implement a log rotation for the Tomcat Default logs
(Stdout, stderr,localhost,Jakarta_service etc) ?

It is a Tomcat 6.0.14 x64 on Windows 2003 Std Ed.

 

Greetings

Alex

 

 



RE: Setting context in tomcat6

2008-07-18 Thread vibhuti
This is mentioned in tomcat documentation and I just followed what was
written there. Here is the link:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

It says 
Context elements may be explicitly defined: 

 - in individual files (with a ".xml" extension) in the
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name of the file
(less the .xml extension) will be used as the context path. Multi-level
context paths may be defined using #, e.g. context#path.xml. The default web
application may be defined by using a file called ROOT.xml.

If this is erroneous then renaming or using filter are the only ways? 

Thanks

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2008 7:44 PM
To: Tomcat Users List
Subject: RE: Setting context in tomcat6

> From: vibhuti [mailto:[EMAIL PROTECTED]
> Subject: RE: Setting context in tomcat6
>
> why is it that in tomcat5 we define a context descriptor
> file myapp.xml in /tomcat/conf/Catalina/localhost folder
> and a default context could be set but in tomcat6 it
> doesn't work.

Depends on what you mean by "doesn't work".  The configuration you were
using was invalid for all levels, but it just happened to do something that
you decided was useful.  That erroneous and accidental behavior has been
fixed in more recent levels.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.


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