Все вопросы: [tomcat]

793 вопросов

1
голосов
3ответов
1537 просмотров

long-running operations in Tomcat

Are there any suggested practices for implementing long-running operations in Tomcat? e.g. is it better to just run the operation and not yield a response until the operation is complete? Or is it better to return immediately with some kind of ticket that can be used to poll for completion? (is ...

0
голосов
1ответов
441 просмотров

Testing: is there a framework allowing embedding Tomcat to simulate request/response cycles without involving HTTP?

For automated functional testing purposes, I would like to run a servlet container from my test driver without actually issuing HTTP requests over the network. The main goal is to test fairly elaborate conditions of servlet filtering, forwarding, and includes. I would like a system that embeds t...

2
голосов
1ответов
730 просмотров

Tomcat does not undeploy one jar

I am using Tomcat 5. And I am using manager application to undeploy a war file from remote. It deletes war file and all extracted files. But it does not delete one jar (lib/struts.jar) file. I do not know what the reason is. I need to delete all the files even if Tomcat is running. Thanks.

6
голосов
3ответов
24909 просмотров

Tomcat Client Authentication using SSL

I'm at a loss, since I'm not a Tomcat person. I need to use a 3rd party's web service and they require Client Authentication via SSL, so they generated and issued me an SSL certificate. Unfortunately this is as far as they support it and cannot give me any direction on how to actually use it. I'm...

1
голосов
1ответов
724 просмотров

How can I profile tomcat on mac os X?

I am running an independent (I mean not inside any IDE) tomcat instance. I want to profile my application because it seams to respond really slow in a particular use case. So, I tried installing TPTP on my mac os x 10.4 (tiger) but it seams that there is no version available. Then I tried to ju...

2
голосов
3ответов
917 просмотров

Threads in a Java EE application

I have a Java EE application that has two components: First is a service that scrapes some information from internet and fills it into database. Second is a web interface (deployed on tomcat) from where user can browse that information. What could be the best approach to implement the first comp...

2
голосов
3ответов
1564 просмотров

Debugging problems shutting down Apache Tomcat

I have a Tomcat installed as a Windows service, and sometimes it hangs when I try to shut it down (through services.msc). I tried attaching to it with a debugger, but I don't seem to be able to understand why it's hanging. When I try to look at one of the threads by doing "Thread.getThreads()[0]...

0
голосов
1ответов
1301 просмотров

Using Tomcats(in an apache-tomcat cluster) as reverse-proxies to apache servers behind

I'm writing a small web service(like a content server) to search and serve content. Basically it has 2 parts - one dynamic part performing client authentication and providing search functionality over the content. The second part involves serving static content to the authenticated client. What ...

0
голосов
2ответов
2473 просмотров

Tomcat, HTTP, OPTIONS

Note: I am new to Tomcat... I am getting this message in the Tomcat localhost_access_log: 127.0.0.1 - - [09/Oct/2009:09:37:30 -0700] "OPTIONS /stl/foo HTTP/1.1" 200 - Can anyone explain to me where the OPTIONS comes from? I am using a 3rd party library (DirectJngine) but in perusing the source...

1
голосов
1ответов
2304 просмотров

proxy classes of web-service using WSDL

I am getting the following exception whenever trying to create proxy classes using WSDL. Few observations :- 1) My WSDL points out/imports following xsd http://200.123.23.196:9090/TOOLBOX/WSDL/temp/temparature.xsd. If i use the tempratue.xsd in wsdl from above URL, It always fails and throws fo...

6
голосов
4ответов
8370 просмотров

Java server cpu usage at 100% after two days continous running with about 110 users

I have a tomcat 6.0.20, apr 1.2, jdk 1.6.0_15 with mysql 5.1.38 running on a rhel box with 4 GB ram. There is one simple jsp/servlet application on it with 5 users, one struts 1.2.0.9 with 64 users on it and one struts 2.0 application with 35 users on it. The struts 2.0 users make an entry every...

1
голосов
2ответов
2867 просмотров

Tomcat - "Directory Listing" or serving static pages

I am new to Tomcat and web development so please forgive me. I am on a Linux box with Tomcat 6 running. I need a directory on the box exposed and browsable via a web browser. I can get it to work by creating an xml file (path and docBase) in the Catalina/localhost/ directory and enabling "direc...

6
голосов
2ответов
10182 просмотров

IntelliJ "Debug info unavailable" - how to fix?

I have a Java Tomcat web application built in IntelliJ that calls code in another module called "Stuff". I've attached the source of the relevant code to "Stuff" so I can step into it and hit breakpoints, but I cannot see variables or their values. Watches don't work either. All I get is "Debu...

1
голосов
3ответов
1394 просмотров

User initiated background process in a web application

I have a java web application wired using Spring on Tomcat. I need a way for a user to initiate a background process in the server and return a response to the user without waiting for the background process to complete. The background process is programmed in java and integrated with my applic...

1
голосов
1ответов
3086 просмотров

AccessControlException when connecting to HTTP server from Tomcat servlet

I'm trying to make my tomcat servlet download a number of files, but I have apache and tomcat running on the same server, so I assume that is why it doesn't work. I've tested on servers not running apache, and all is well. Here's the exception I'm getting when I try to use new Url( fileUrl ).ope...

5
голосов
1ответов
2956 просмотров

shutdown / undeploy tomcat from Servlet

I have an init servlet in Tomcat that loads critical data. Sometimes it is necessary to abort startup on certain errors. how do i gracefully shutdown the deployed app/ the whole app server without calling System.exit(1) i want to avoid calling the shutdown servlet via port, since this is not ...

4
голосов
3ответов
10396 просмотров

"Error invoking method check" when deploying a WAR on Tomcat

When I deploy my WAR generated with Ant on my local system (copy/paste under /webapps), everything works fine. The thing is, when I deploy the WAR on a remote server for test purposes, I got this error message: There was an error thrown by Tomcat during deployment: "Error invoking method che...

3
голосов
6ответов
759 просмотров

Can java/scala/etc code tell when it is being run by tomcat?

I have the data for my webapp in a database that is accessed differently from different places. There is no generic code that can just do it for both. So I want to know at run time which env I am in. In fact, the code to run really depends on whether it is run within or without tomcat, so I wo...

3
голосов
4ответов
3440 просмотров

Multiple appbase directories for Tomcat 5.5

I have machine with an installed tomcat 5.5 it serves various application from the default appbase. I also have a bunch of directories which should get turned into WEBDAV applications, by configuring the common root as appbase, which of course is completely different from the appbase mentioned a...

20
голосов
4ответов
35524 просмотров

Logging Payload of POSTs to Tomcat

I've managed to enable access logging in Tomcat by editing the conf/server.xml and uncommenting the entry for the org.apache.catalina.valves.AccessLogValve Valve. I'd like to be able to dump the contents of POST's payload. It doesn't seem like any of the options in the pattern will do this. Is th...

2
голосов
1ответов
249 просмотров

sharing sessions accross browsers and flex air

Is there any way to share a session between a java web app and an AIR app that uses blazeDS? The goal is some kind of single sign on, so when either one of the apps is logged into that the user would not need to log into the other. They're both running in the same tomcat, but they are different...

0
голосов
1ответов
272 просмотров

What does tomcat's ResourceCache Do? What is the difference between hitsCount and accessCount?

I am trying to monitor tomcat with the MBeanUtil class,I came accross the ResourceCache and its statistics. what exactly does a resourcecache do? I found few stats related to the Cache 1)hitsCount 2)accessCount 3) cacheSize What does each of the above stats specify.

7
голосов
4ответов
11633 просмотров

where/how to setup configuration resources for Tomcat .war files

I have a source tree for a .war file that I need to modify so that I can add some application-specific configuration info (in this case a jdbc connection string, but I may have other properties-like resources). What are the best practices for where to put configuration info and how to access this...

23
голосов
2ответов
60827 просмотров

Getting JSTL to run within Tomcat and Eclipse

I've been trying to get this to run, but I can't. I'm using Eclipse Galileo, Tomcat 5.5.23 and have several JSTLs around. My latest try was to use the GlassFish jar file "jstl-impl-1.2.jar". I placed it in Tomcat's shared lib, added it as external jar into my Eclipse project and exported it. Co...

14
голосов
5ответов
11449 просмотров

Reducing information disclosure in Tomcat error pages

By default, Tomcat's error pages disclose both the existence of Tomcat and the exact version of the container that's handling the requests. This is nice for development, but in a production context this information is a potential security hole and it would be nice to disable it. Thus I would li...

0
голосов
3ответов
1151 просмотров

Mismatching JVM versions in deploying web-app between Eclipse and Tomcat

I have a web-app, built and compiled in Eclipse, which I want to deploy to my Tomcat 6 (I want to do it manually) and I get a UnsupportedClassVersionError exception which means the JVM tomcat is running is older than the one my eclipse is running. After some checking I see that in the tomcat mana...

1
голосов
3ответов
164 просмотров

Setting up Dev environment for Java development (Q.1)

1st part Never worked on team who uses different IDE for one project.. (But our team right now does that) Never tweaked Ant Script of IDE, or wrote any Ant script.. I am Netbeans user, (since last 2 years) and ultimately want to become independent of IDEs (except for coding and code completio...

1
голосов
4ответов
18772 просмотров

Tomcat Logging while running as a windows service

I have a web application running under Tomcat. Logging for various features is implemented using java.util.logging. When running tomcat via startup.bat the logging files are created and record the logging as expected. When running as a windows service using the same war file the output from lo...

2
голосов
3ответов
2447 просмотров

How to direct subdomains to the correct JBoss App?

new to JBoss and am configuring some applications. I know how to do this in apache webserver, but not using Jboss. I have successfully deployed 3 applications on a redhat box, JBoss 4.2. If my server is called fruit.mycompany.com, I can access the three apps this way: http://fruit.mycompany.c...

0
голосов
2ответов
2112 просмотров

Tomcat sometimes chokes on my new war file

My build process builds and copies a .war file to $TOMCAT_HOME/webapps. 75% or more of the time, this works fine. But every now and then, the catalina.log file will show the following, and then all the apps deployed on Tomcat are totally stuck: Oct 1, 2009 3:33:30 PM org.apache.catalina.startu...