tomcat

Tomcat JAXB 1 and 2 linkage error

I'm running a tomcat 6, spring, apache cxf webservice, know it is a must to add one third party library to my webapp to fulfill an order. I have jaxb-impl-2.1.12.jar for apache cxf in WEB-INF/lib folder and the new library which contains the JAXB 1.0 runtime. JAXB 2 ist used by apache cxf for dynamic clients (i need them). So is there...

Can Apache/Tomcat allow multiple incoming DNS served by one app "host"?

Is there a way to setup apache and tomcat so that I can have d1.webapp.com d2.webapp.com d3.webapp.com etc. All hosted by the same tomcat instance without having to add aliases to the HOSTS element in the tomcat config file? I will be allowing new users to have thier own domain when they sign up and it will be a subdomain of the web ...

Compiling a groovy template to a class file i tomcats work dir

I just installed tomcat (6.0.20) with groovy-all.jar (1.7.2) in my WEB-INF/lib My web.xml file looks like this <web-app> <servlet> <servlet-name>Groovlet</servlet-name> <servlet-class>groovy.servlet.GroovyServlet</servlet-class> </servlet> <servlet> <servlet-name>Template</servlet-name> <ser...

How to shutdown local tomcat server when closing browser window?

Hi, I hava a web app running on a local tomcat server. When the user starts the app (via desktop shortcut) the server starts and the app is opened in a browser window. But when the user just clicks on the close button to stop the application the server is still running in the background - that's annoying. I tried to utilize the "unonl...

How to create a dir in the context of application deployed on tomcat with Grails ?

I have a Grails application and I use the Config.groovy to add a directory configuration accessible in my controller with grailsApplicatin.config.files.location My directory is "files" to add files in the folder. So I would like that all uploaded files comes into /MyApp/files. I create it on Bootstrap if not exists During the dev it's ...

How can I create a new folder in my web-app (for upload photo album) with Grails on Tomcat ?

i want to create a photo album. But I want to organize on the server the albums so I want to create new folders : /myapp /myapp/albums /myapp/albums/1 /myapp/albums/2 ... How can I do that on tomcat with Grails ? It create all new folder in tomcat/bin not in tomcat/webapps/myapp/ ...

Unable to instantiate VelocityEngine, when deploying war file

Hi, I am deploying an application on Tomcat 6, using a war file. I've compiled the source code given by the vendor on the same machine, then moved the war file to {tomcat-home}/webapps/ When I start up the application, I see a error message: The SystemInformationService could not be retrieved from the container. Therefore very limit...

A TCP error (10055: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full) occurred while transmitting data.

Apparently i start getting this error if i try to transfer any file over 50 mb, I am using WCF, need help urgently. I have webservices written in Java / tomcat. could it be that problem in serverside configurations. The server is tom cat , can you tell me which value to customize in that case <bindings> <basicHttpBinding> <binding...

How to create virtual path to tempdir tomcat ?

I want to put my images to db but i want to have a link on each image. So I have the idea to copy the image to the temp dir of tomcat (or weblogic). But I must map the tempdir to a virtual path. How do it ? ...

endless loop / StackOverflowError when using Apache MyFaces 2.0

I just like to give JSF 2.0 (MyFaces 2.0) a try using Tomcat 6.0. I am completely new to JSF. I just put a static xhtml as test.jsf in the application root. When request the URL, a StackOverflowError will always be thrown: java.lang.StackOverflowError at org.apache.catalina.core.ApplicationHttpRequest$AttributeNamesEnumerator.<init>(A...

Tomcat 5.5 and ASP site under IIS using SSL

I've been working on migrating our companies' website from it's original server to a new one and am having two different but possibly related problems. The box this is sitting on is a Windows 2003 server x64 running IIS 6. The Tomcat version is 5.5.x as it was the version the original deployment was built on. There are two other sites on...

IntelliJ IDEA "Tomcat manager" application

Hello, I'm using IntelliJ IDEA 9.0.2 but I assume this question applies to previous versions as well. In the Run/Debug Configurations dialog there is an option called "Deploy 'Tomcat Manager' application", but I haven't been able to find any documentation for how to use it in the IntelliJ help or online. Has anyone had experience usin...

Servlet Mapping Help - Possible to Avoid Referencing Context Name?

Hi all, I am working on a Spring application using Tomcat 6 and Spring 2.5. I'm trying to get my URL mapping correct. What I would like to have work is the following: http://localhost:8080/idptest -> doesn't work But instead, I have to reference the context name in my URL in order to resolve the mapping: http://localhost:8080/&lt;...

Logging URLs in Apache Tomcat

Hi, I was wondering if there is some configuration, built-in functionality in tomcat that logs the URLs people are using to reach your website? for example: http://www.mypage.com/1.htm http://www.mypage.com/2.htm http://www.mypage.com/3.htm etc etc Can we enable some tomcat setting that would log which pages are being accessed the mos...

I changed the web service declaration and then wsimport says that I have a repeated message

I had a Web service method working fine on Tomcat as deployed by Netbeans 6.8. Then I had to add a new parameter for the same method so I erased the method and then added a new one with the same name but different parameters. After that, ws-import keeps on telling me that I have duplicated messages for such method, and if I remove the ...

Image Upload directly from client to remote server? Spring/Tomcat

Just wondering what the common solution is for this. We have two web servers that are load balanced and a separate server that holds our images. Our current process is that a user uploads an image directly to the web server (which ever they are connected to) and we enter a job into our DB. Another process checks for image jobs every few ...

Hibernate configuration files not found by Axis2

I am writing a web service to be deployed on Tomcat using Axis2. I am using Hibernate3 to persist data between the web service and a MySQL database. When running the application through by IDE, the method I am exposing through Axis2 works as intended, however when I deploy the .aar to Tomcat, I receive a SOAP Error claiming that hiberna...

Tomcat - HTTPS not working intermittently | "Page Cannot be Displayed" problems

We are facing this error intermittently. If we restart the server it works for some time and again the problem start. We also have another load balanced server with similar configuration and that is working fine. The server is running on Linux box. If we do the "ps -ef" its listing the TOMCAT process. URL : https://xyz.abc.com:9234/a...

Tomcat session stickiness in session replication

Hi, I am having a 2 instance load balanced and session replicated tomcat 6.0.20 cluster. Should sticky_session be set to true or false for in memory session replication. http://tomcat.apache.org/connectors-doc/reference/workers.html mentions : Set sticky_session to False when Tomcat is using a Session Manager which can persist sessio...

Problem with Windows Live Sdk connecting with java servlet

Hello there I'm getting problem with fetching the customer consent token. I'm using apache tomcat server for running the sample application given on download page. I'm facing a problem that when I 'm redirected to the windows live page for login, after successful login it shows error "There's a problem sharing your information with loc...