Re: install war with xml and define environment values
On Nov 30, 2013, at 2:29 PM, Philipp Kraus wrote: > Hello, > > I have got a war file and I would like to install it with a XML file under > Catalina/localhost. The content is > > allowLinking="true" crossContext="true"> > > > > The war uses always ${user.home}, how can I change this in mywar.xml ? What exactly do you mean? How is the app using this? Setting an tag here is just going to expose the value through JNDI. Your application will need to be looking for the value through JNDI, to pick this up. > At next I would like to get access of this servlet with > https://myserver/mywar, at the moment I > must use https://myserver/mywar-0.0.1 how can I change the URL? The name of the context path is determined by the name of your WAR file or XML deployment descriptor. So rename the appropriate file (war file or xml file). Based on your example above, if you have the file "conf/Catalina/localhost/mywar.xml", you should have the application available at https://:/mywar. Dan > > Thanks a lot > > Phil - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
install war with xml and define environment values
Hello, I have got a war file and I would like to install it with a XML file under Catalina/localhost. The content is The war uses always ${user.home}, how can I change this in mywar.xml ? At next I would like to get access of this servlet with https://myserver/mywar, at the moment I must use https://myserver/mywar-0.0.1 how can I change the URL? Thanks a lot Phil signature.asc Description: Message signed with OpenPGP using GPGMail
Re: wifi access to tomcat on wired mc
Thanks Chuck. Back to playing with Windows firewalls. DaveP On 30 November 2013 14:49, Caldarale, Charles R wrote: >> From: Dave Pawson [mailto:dave.paw...@gmail.com] >> Subject: Re: wifi access to tomcat on wired mc > >> Am I right in thinking that tomcat (as installed) only allows access >> to localhost, >> using server.xml / options? > > No, you are incorrect. Out of the box, Tomcat allows access from any client, > anywhere. Your platform, router, or ISP might not. > > - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: wifi access to tomcat on wired mc
> From: Dave Pawson [mailto:dave.paw...@gmail.com] > Subject: Re: wifi access to tomcat on wired mc > Am I right in thinking that tomcat (as installed) only allows access > to localhost, > using server.xml / options? No, you are incorrect. Out of the box, Tomcat allows access from any client, anywhere. Your platform, router, or ISP might not. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: org.apache.catalina.filters.CorsFilter
> From: spr...@gmx.eu [mailto:spr...@gmx.eu] > Subject: RE: org.apache.catalina.filters.CorsFilter > > There aren't any. Without the details of how you configured > > the filter, > > where you put the class file and the stack trace of the exception we > > can't help you. > Class is in WEB-INF/classes of the webapp. Exactly where? The full path is needed here. Rather than mucking about with an old Tomcat version, just throw away the 3rd-party repackaged crap and install the current one from tomcat.apache.org; it will make everyone's life simpler. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: SSL question
> From: Joan Balagueró Ventus Proxy [mailto:joan.balagu...@ventusproxy.com] > Subject: SSL question > When I shutdown Tomcat, I see this message in catalina.out (ssl debug > enabled): > main, called close() > main, called closeInternal(true) > main, SEND TLSv1 ALERT: warning, description = close_notify > main, WRITE: TLSv1 Alert, length = 18 > main, called closeSocket(selfInitiated) None of those messages are generated by Tomcat itself - look inside your webapp. > Is this normal? That's up to you to decide. > Does Tomcat maintain any kind of https connection pool and > what I'm seeing is Tomcat closing this pool? Tomcat does not contain _any_ HTTP[S] client code - it's all in your webapp or libraries your webapp is using. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: org.apache.catalina.filters.CorsFilter
> There aren't any. Without the details of how you configured > the filter, > where you put the class file and the stack trace of the exception we > can't help you. Class is in WEB-INF/classes of the webapp. SEVERE: Exception starting filter CorsFilter java.lang.ClassNotFoundException: org.apache.catalina.filters.CorsFilter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceMan ager.java:522) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(Def aultInstanceManager.java:514) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceM anager.java:133) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:256) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:382) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon fig.java:103) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:46 50) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java: 5306) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:15 59) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:15 49) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11 10) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6 03) at java.lang.Thread.run(Thread.java:722) CorsFilter org.apache.catalina.filters.CorsFilter cors.allowed.origins * cors.allowed.methods GET,POST,HEAD,OPTIONS,PUT,DELETE cors.allowed.headers X-Requested-With, accept-language, accept, cache-control, if-modified-since, if-none-match, content-type, Origin, Access-Control-Request-Method, Access-Control-Request-Headers cors.exposed.headers date, location, Access-Control-Allow-Origin,Access-Control-Allow-Credentials cors.support.credentials true cors.preflight.maxage 84600 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
SSL question
Hello, I have an application that sends https requests with client authentication from a servlet running on tomcat. Its working fine. When I shutdown Tomcat, I see this message in catalina.out (ssl debug enabled): main, called close() main, called closeInternal(true) main, SEND TLSv1 ALERT: warning, description = close_notify main, WRITE: TLSv1 Alert, length = 18 main, called closeSocket(selfInitiated) If I send 8 https request from tomcat, this message appears 8 times when shutting down tomcat. Is this normal? Does Tomcat maintain any kind of https connection pool and what Im seeing is Tomcat closing this pool? Thanks, Joan.
Re: wifi access to tomcat on wired mc
On 27 November 2013 18:24, Christopher Schultz wrote: ... A little progress. Clarification please. Am I right in thinking that tomcat (as installed) only allows access to localhost, using server.xml / options? http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Remote_Address_Filter My local network on 192.168.1.xxx I want to give access to other mc's on this net. Isn't working - Is that the right attribute value for @allow please (I'll change it to a range if this is the right regex syntax) TiA -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org