tomcat6

Remove jsessionid from URL

ε祈祈猫儿з 提交于 2020-01-20 14:21:12
问题 I'm working on a project with the following technologies: Spring ShiroFilter PrettyFaces Tomcat server While I'm deploying it on tomcat server, I'm getting a "JSESSIONID 456jghd787aa" added at the end of the URL. I was trying to resolve this but I'm not able to do that. 回答1: For tomcat 7 add this to web.xml <session-config> <!-- Disables URL-based sessions (no more 'jsessionid' in the URL using Tomcat) --> <tracking-mode>COOKIE</tracking-mode> </session-config> 回答2: The following filter may

Is there a way to enforce a deployment order in tomcat6?

只愿长相守 提交于 2020-01-19 01:25:48
问题 I have 3 wars in my webapp folder. Two of them are built on services of the third one. I'm in a testing environment, i.e. I don't have control over their architectures, so I'm no able to change a thing. So... Question : Is there a way to enforce a deployment order in tomcat? I've ran into one question here in stackoverflow, but there's no solution. Well, actually the guy suggests that changing the name of the webapps to an alphabetical order would help. However, I'm not willing to do that

Is there a way to enforce a deployment order in tomcat6?

走远了吗. 提交于 2020-01-19 01:25:26
问题 I have 3 wars in my webapp folder. Two of them are built on services of the third one. I'm in a testing environment, i.e. I don't have control over their architectures, so I'm no able to change a thing. So... Question : Is there a way to enforce a deployment order in tomcat? I've ran into one question here in stackoverflow, but there's no solution. Well, actually the guy suggests that changing the name of the webapps to an alphabetical order would help. However, I'm not willing to do that

Tomcat 6.0.35 Windows 32b Service useSystemProxies

狂风中的少年 提交于 2020-01-17 05:46:06
问题 I've been trying the whole day to make Tomcat6 use system proxy settings. Tried various ways, about 200 different Versions of tomcat6 //US/Tomcat6 ++JvmOptions "-Djava.net.useSystemProxies=true" I tried to set the property in service.bat in the "install" section like this (also many similar versions): ... :foundJvm echo Using JVM: "%PR_JVM%" "%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams

Runtime.exec() from tomcat6 succeeds, but cannot access any files

女生的网名这么多〃 提交于 2020-01-17 03:04:28
问题 I'm moving our servlets (pure Java, running in Tomcat 6) from CentOS to Debian, and faced the problem with executing commands with Runtime.exec() . (The command should be ImageMagick's convert in production, but I have simplified the calls to find the source of problems, so all the following code with echo is tested and not working as well). String command = "echo test123 > /tmp/tomcat6-tmp/1"; Runtime runtime = Runtime.getRuntime(); Process process = runtime.exec(command); int exitVal =

YourKit Profile On Remote Grails App

烈酒焚心 提交于 2020-01-17 01:20:30
问题 I am trying to track down a memory leak that I am having with a Grails application and am using the Yourkit Profiler, but am running into a problem. I have the Grails application running in Tomcat6 on the Production server and have unpacked the YourKit profiler and ran it according to the documentation using sudo bin/yjp.sh -attach , but I am getting the error: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect

Jenkins deploy plugin deletes app context xml file

痴心易碎 提交于 2020-01-15 07:08:30
问题 I am using Jenkins (v1.4.87) and have the deploy plugin (v1.10) to create a job that deploys a built war file into tomcat 6. The deployment is running successfully, the war is being deployed ok. Here is the plugin configuration part of the job: (I have not included the real server details for obvious reasons) The problem is that somewhere along the way, the application context file is renamed to appname.xml.bak and left in that state. Therefore the application fails to start because tomcat

Jenkins deploy plugin deletes app context xml file

老子叫甜甜 提交于 2020-01-15 07:08:29
问题 I am using Jenkins (v1.4.87) and have the deploy plugin (v1.10) to create a job that deploys a built war file into tomcat 6. The deployment is running successfully, the war is being deployed ok. Here is the plugin configuration part of the job: (I have not included the real server details for obvious reasons) The problem is that somewhere along the way, the application context file is renamed to appname.xml.bak and left in that state. Therefore the application fails to start because tomcat

Tomcat doesn't return image resources

点点圈 提交于 2020-01-11 07:47:31
问题 I'm using eclipse and run my jsp/servlet using tomcat6 from eclipse. My servlet creates for me an image that i store in to a directory in my webapps. But when i try to access to this image from my JSP it returns me that the resource is not available. What's the problem? Servlet store image in "myapp/images/saved.png" 回答1: You need to move the images directory into the WebContent directory. That will make it work. 来源: https://stackoverflow.com/questions/12770989/tomcat-doesnt-return-image

Tomcat servlet-api.jar problem

有些话、适合烂在心里 提交于 2020-01-11 07:06:49
问题 I am running a web application using Tomcat and Java Servlets, JSP's, etc. I am aware that in order to use Servlets, it is dependent on the Servlet-api.jar file. Initially I placed this jar file in the WEB-INF/lib/ directory. This has worked fine for me for months during the developmental phase. When we put the application onto the server space we are using, we started seeing wierd problems showing up in the Catalina.out file telling us that there was dependency problems with the servlet-api