Re: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
I actually think I got it up and running. I have assigned 2 addresses to the same ethernet card and added 2 ssl connectors to server.xml and tomcat did not crash. So I guess it was my lack of knowledge that did this. I must have an mx record for the new ipaddress to know for a fact but thanks al

Re: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Yes thanks for pointing that out Is there anyway of testing this using local servers? -- View this message in context: http://www.nabble.com/Share-war-file---virtual-hosts-tp19605902p19616056.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Ok! I tested with port 8080 and 8443 as ssl port with no luck. I only have 2 domains but tomcat complains about java.net.BindException: Cannot assign requested address: JVM_Bind:8080. Now I guess this isn't configured right so any pointers here would be greatly appreciated.

Re: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Thanks very much! The last one about apache as a frontend would work. ( I'm very new to this, server set up as you probably seen. ) I am reading the headers to look at the request. I'm using a Wicket solution with Spring and Hibernate. The Wicket handles 3 different looks with the exact same jav

RE: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Here is the configure. Of course the IP address are real addresses. www.domain1.se www.domain1.com domain2.com

RE: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Yes, but how should I configure those connectors? I can't add port 443 to 3 of them because then tomcat casts an error. I can only have one host otherwise hibernate will start 3 times and that is bad. -- View this message in context: http://www.nabble.com/Share-war-file---virtual-hosts-tp1960

Re: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Just to get this straight. Suppose I have this Host setting in server.xml www.domain1.se www.domain1.com www.domain2.se How can I make 3 connectors to match this. There baught from Thawte with the www.domain1.se, www.domain1.com, www.domain2.se -

RE: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
The problem is this. I would like to set up 3 connector that points to 3 different domains One Host element and many aliases. Can this be done? The connectors are https. -- View this message in context: http://www.nabble.com/Share-war-file---virtual-hosts-tp19605902p19611322.html Sent

RE: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
I think it does, but then I have another ;) Can The Host element support multiple ip addresses? -- View this message in context: http://www.nabble.com/Share-war-file---virtual-hosts-tp19605902p19610708.html Sent from the Tomcat - User mailing list archive at Nabble.com. --

RE: Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Can I use Connectors to Aliases? -- View this message in context: http://www.nabble.com/Share-war-file---virtual-hosts-tp19605902p19610201.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new t

Share war file / virtual hosts

2008-09-22 Thread Mathias P.W Nilsson
Hi! I have 3 different virtual hosts. Is there anyway these can share the same war file and instance? What I mean is that tomcat does not deploy the war file 3 times but uses the same war instance? -- View this message in context: http://www.nabble.com/Share-war-file---virtual-hosts-tp19605902

RE: Connector problem

2008-09-22 Thread Mathias P.W Nilsson
Ok thanks! The problem is that I need the host to run under the same tomcat instance. When a user access www.domain1.se then I read the HTTPServletRequest host name to see what site he/she want's to access. This is because I do not want 3 hibernate access to the same database because that won't

Re: Connector problem

2008-09-22 Thread Mathias P.W Nilsson
OK! How would that setup look like? Let's say I want a user to access the website in this fashion https://www.domain1.com ( SSL from thawte ) https://www.domain2.com ( SSL from thawte ) https://www.domain1.se ( SSL from thawte ) What would I have to do to make this work? I only have one server

Connector problem

2008-09-22 Thread Mathias P.W Nilsson
Hi! I have this setup in my server.xml www.alias1.se www.alias1.com www.alias2.com How can I install a connector for each site on the 443 port? My application is running under ROOT.war. Hibernate is not glad if I run multipl

RE: Tomcat 6 and images

2008-09-08 Thread Mathias P.W Nilsson
Can this be hacked? like http://localhost/files/../../somefile -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19379214.html Sent from the Tomcat - User mailing list archive at Nabble.com. ---

RE: Tomcat 6 and images

2008-09-02 Thread Mathias P.W Nilsson
Thank you very much it works perfectly and I got rid of my servlets :) -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19282295.html Sent from the Tomcat - User mailing list archive at Nabble.com. ---

Re: Tomcat 6 and images

2008-09-02 Thread Mathias P.W Nilsson
Thanks! I'm currently deploying using ROOT.war. Here is the server.xml content. How can I fit the images into this beacuse I don't quite follow. myhost -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19280777.html Sent from the Tomcat - User

Tomcat 6 and images

2008-09-01 Thread Mathias P.W Nilsson
Hi! I'm using tomcat with wicket framework for my webapplication. My images, css, flashes resides outside the container and therefor I'm using a Servlet to serve the files. Is there any builtin function to get files outside the container? -- View this message in context: http://www.nabble.com/

Re: startup order for deployment

2008-08-13 Thread Mathias P.W Nilsson
You are absolutly right. It's my wicket application that caches users from a webservice on startup. But I guess I'll have to find a better solution. // Mathias -- View this message in context: http://www.nabble.com/startup-order-for-deployment-tp18967318p18972567.html Sent from the Tomcat - Use

startup order for deployment

2008-08-13 Thread Mathias P.W Nilsson
Hi! I'm using tomcat as a webserver in my eclipse installation. I have some webservice calls from my webapplication and add both my projects to the tomcat server. The problem is that I can not determine the order to start the applications. Is there a way to first start deploy a war, and do this i

Faster resource servlet

2008-06-23 Thread Mathias P.W Nilsson
Hi! I have made a resource servlet to handle static content outside of tomcat, wicket. It looks like this package se.edgesoft.hairless.web.resource; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import javax.servlet.ServletCon

RE: Pointers in tomcat

2008-06-23 Thread Mathias P.W Nilsson
> If, as I suspect, you *do* own MYSITE.COM, you just need to set up a > default virtual host and have it redirect to WWW.MYSITE.COM. > How can I do this? My web app points to ROOT.war. www.mysite.com mysite.com -- View this message in context:

RE: Pointers in tomcat

2008-06-23 Thread Mathias P.W Nilsson
I own the domain but didn't buy a wildcard certificate. So the only thing that works is www.mysite.com for the certificate. When I type mysite.com I get to the same server but it is not ssl enabled -- View this message in context: http://www.nabble.com/Pointers-in-tomcat-tp18075070p18075744.html

Pointers in tomcat

2008-06-23 Thread Mathias P.W Nilsson
Hi! I have a web page that is deployed as ROOT.war. In my web app I have created a connector for https that points to the www.mysite.com. My problem is that I also want it to point to mysite.com without the www. I have only bought www.mysite.com from thawte so the browser complains about the mysi

Keep getting this error

2008-06-20 Thread Mathias P.W Nilsson
Don't know how to get rid of this :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Thread.java:619) Caused by: jav

RE: SSL and flash in tomcat

2008-06-13 Thread Mathias P.W Nilsson
Thanks alot! That solved it. -- View this message in context: http://www.nabble.com/SSL-and-flash-in-tomcat-tp17828970p17831601.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-ma

RE: SSL and flash in tomcat

2008-06-13 Thread Mathias P.W Nilsson
Thanks for the response. I have this configuration in my server.xml and no context since I'm deploying in Root.war. Any pointers on how to configure this www.mysite.com -- View this message in context: http://www.nabble.com/SSL-and-flash-in-tomcat-tp17828970p17830485.html Sent from t

SSL and flash in tomcat

2008-06-13 Thread Mathias P.W Nilsson
I try to force https for every request in my web application but the flash movies don't get displayed in ie. I get the exception below. Any clues? ssl-test Hairless /* POST GET HEAD PUT OPTIONS

Tomcat virtual hosts and ssl

2008-02-03 Thread Mathias P.W Nilsson
Hi! I'm developing 4 web shops that has the same war file but will have different looks. What is the best approach to set up the hosts? I would prefer if I could set domain, some context settings when loading the webapp. 4 different domains, same server, same war different storeid, language //