tomcat7

Tomcat 7 - where do I set 'system properties'?

删除回忆录丶 提交于 2019-12-28 05:31:30
问题 My webapp is having an issue since upgrading to Tomcat 7. My session will go null after I login and try to do anything (submitting a request). I've read that setting the following may help: org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR=false Does anyone know where to set this? Should this be set in web.xml , context.xml or somewhere else? The other thing I want to check is the following: org.apache.catalina.STRICT_SERVLET_COMPLIANCE 回答1: You can set any of the system

What is the correct way for a java heavy client to authenticate with an OpenAM protected servlet?

非 Y 不嫁゛ 提交于 2019-12-25 13:26:51
问题 What is the correct way for a java heavy client to authenticate with an OpenAM protected servlet? Java openAM sdk exists, which I have used and it does provide access to the SSO Token. Where things break down is when this same heavy Java client attempts to send serialized objects to a protected tomcat 7 (tomee+) servlet using this SSO Token id as a cookie . The OpenAM filter uses redirection with an embedded / hidden form containing credentials. This breaks the serialized object

How can a war not unpack although unpackWar is set to true?

吃可爱长大的小学妹 提交于 2019-12-25 09:31:03
问题 this is puzzling me : although unpackWARs is set to 'true' in /etc/tomcat7/server.xml, and unpackWAR cannot be found anywhere else (including context.xml), the WAR keeps remaining packed. It does never unpack! <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> The VM is a clone from another one where the war unpacks as soon as tomcat starts. Thus, the configuration should be exactly the same... and I cannot understand why it acts differently there! Is there another

Webapp behaves as expected when run from eclipse while when exported as war fails

懵懂的女人 提交于 2019-12-25 08:17:52
问题 This has been driving me nuts. So I have a (very simple vanilla servlet 3) web app. When I run it in eclipse all is fine. Among others I am able to register an account with Unicode (greek) username and then log in as site admin and visit the user's profile alright. When I export war to $CATALINA_HOME\webapps , launch $CATALINA_HOME\bin\startup.bat , open the site in the browser, login as admin and try to visit the user profile the username etc display as blank. The files in ...\apache-tomcat

Server has failed to start

為{幸葍}努か 提交于 2019-12-25 06:56:10
问题 I have different eclipse versions and in every version the server(Tomcat v6) starts without a problem. For one version I get this errors: java.lang.ClassNotFoundException: org.eclipse.stardust.ide.wst.server.tomcat.EmbeddedDerbyLifecycleListener at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass

Can't deploy Grails War file in tomcat - results in 404

倖福魔咒の 提交于 2019-12-25 06:26:08
问题 I have a GrailsApplication.war file with me, and i added that into the webapps folder (tomcat 7). When i tried to access the url ( <ipaddress>:8080/GrailsApplication ) it gives me a 404 error. What have i done wrong deploying the grails war file ? Grails version : 2.2.4 Tomcat : 7 Server : Ubuntu 回答1: In Grails 2 apps, there should be a config setting present in Config.groovy as below, verify if that is present: environments { production { grails.serverURL = "http://<youripaddress>:8080/$

Login and XML Orbeon

扶醉桌前 提交于 2019-12-25 05:04:44
问题 I have two new questions: 1) I configure the orbeon Form to restrict the access to users (with tomcat). This works good. But the Page for login is in english (I need view this page in Spanish) and the style from this page is bad. So, it's possible configure this page? I thinked update the orbeon-form-runner.jar, descompress and edit the login.xhtml and compress to new orbeon-form-runner.jar but i recibe a error when i start the orbeon: this is the error: At least one JAR was scanned for TLDs

Tomcat LDAP User Auth

点点圈 提交于 2019-12-25 04:44:09
问题 What I need to know: is it possible to authenticate my Tomcat-Users via two completly different Acitve Directories? So that my Tomcat looks for the credentials in both ADs at the same time? And if its possible, how? Can I just configure them as two realms? What I tried: Googled a lot, didn't get a satisfying answer. Sadly I do not have a testing environment 回答1: Yes. Define a JAAS realm, with two LoginModules, either of which is 'sufficient', in the language of JAAS. Each LoginModule should

maven tomcat deployment producing error

谁说胖子不能爱 提交于 2019-12-25 04:11:57
问题 I wanted to deploy my java webapp into my tomcat server using tomcat7:deploy goal. But i am getting following error enter code[INFO] Deploying war to http://localhost:8080/CounterWebApp Uploading: http://localhost:8080/manager/text/deploy?path=%2FCounterWebApp 2500/5423 KB [INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error [INFO] Retrying request Uploading: http://localhost:8080/manager/text/deploy?path=%2FCounterWebApp

ClassNotFoundException: com.ibm.mq.jms.MQConnectionFactory (Websphere MQ 7.5 + spring jms + maven tomcat 7 plugin)

橙三吉。 提交于 2019-12-25 03:39:22
问题 I am trying to create simple Webapp to demonstrate the using WMQ 7.5 in Servlet Container (tomcat). My webbap is based on standalone WMQ sample app. My standalone app works good. The testcase is also good. @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = AppConfig.class) public class MQMessageTest { /** * Message count fot test */ private static final int MESSAGE_COUNT = 25; /** * Setting Environment for getting properties */ @Autowired private Environment environment;