tomcat

An application with Flex, BlazeDS, Apache Tomcat, Java and Hibernate

I want to make an application which involves technologies like Flex, Java, Hibernate, BlazeDS and the server is Apache Tomact 6.0. Can anybody help me in how to link the various files I have. I'm using Eclipse Europa currently. I want to know where to deploy the .mxml and .class files and where BlazeDS will come into all this. ...

Set a locale for a war different from JVM's ?

My tomcat6 is running in a JVM with locale en_US. I need to deploy several webapps & I want each webapp (packaged in war files) to have a different default locale. Is this possible ? ...

Run GATE pipeline from inside a Java program without the GUI. build a tomcat app with gate

Hi , i have built some plugin components to GATE and in combination with ANNIE tools, im running a pipeline in GATE platform. Does anyone know how can i run a pipeline from the console? I want to build a web application in Tomcat that will be taking a plain text from the web page, passing it to the GATE pipeline i have built and do so...

Can I get Tomcat running as a service to dump heap?

I am attempting to have Tomcat, which is currently running as a service on a Windows 2003 box, dump heap on an OutOfMemoryError. (Tomcat is running Hudson, which is reporting a heap space problem at the tail end of my build. Running the build manually produces no such error. The Hudson guys need a heap dump to get started.) As instru...

Error running a Dynamic Web Project in Eclipse Galileo

Hello, Im using Eclipse Galileo, and have configured it for Apache Tomcat . I have added Apache Tomcat 6.0 to Windows->Server->Runtime Environments, with the following settings: Tomcat Installation Directory - C:\apache-tomcat-6.0.24\apache-tomcat-6.0.24 JRE - Workbench Default JRE (This points to C:\Program Files\Java\jre6) Now, i c...

Tomcat 5.5 LDAP Form Authentication Fails -- Basic Authentication Succeeds

I am adapting an existing web application based on Tomcat 5.5 to add user authentication using an LDAP server. I successfully modified the server.xml and web.xml files to authenticate users using basic authentication, however I want to create my own custom login page for users. I switched over to form authentication, using examples fro...

java tomcat6: javax.ws missing

Hiya. I'm trying to run TinyFbClient (tiny facebook client) and it needs to import javax.ws.rs.core.UriBuilder and javax.ws.rs.core.MediaType i don't have javax.ws package. what jar file am i missing? programming using netbeans 6.8 on tomcat 6.0.20 thanks! ...

Tomcat 6 Virtual Hosting Same Spring Application

I want to deploy the same .war file to two different virtual hosts on the same Tomcat 6 instance. However, I am running into a problem with the Spring framework and registering a bean. Here is the error I am seeing... org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.dti.servlets.Confi...

Tomcat 6 cluster with shared objects

We have a large cluster of tomcat servers and I'm trying to find an efficient way to share a count among all of them. This count is the number of "widgets" purchased and needs to be checked for every page view. Any server can complete a sale and increment that count, at which point the new value should be made available to all the clus...

How to start and stop an Tomcat container with Java?

I have a Maven project that starts a tomcat container for pre-integration-tests (jUnit Tests). Most of my tests require that the web-application under tests is restarted. So I'd like to restart the Tomcat container before each jUnit test is executed. As for now I use the cargo-maven2-plugin to configure the tomcat container. So, is it...

fckeditor in tomcat 5

Hi guys, I'm trying to deploy fckeditor demo war in Tomcat 5, everything is fine but when I'm trying to browse the images it says "The server didn't reply with a proper XML data. Please check your configuration." The same working fine in Tomcat 6 :( These are the three steps I found on fckeditor website: 1. Download the fckeditor-j...

tomcat: how can i place parameters in web.xml and fetch them in my application?

Hiya. I would like to store db connection information in the application web.xml file and to fetch it in the application. i read somewhere that it's possible i just don't know how. any ideas? thanks! ...

Starting Tomcat 6 with only Manager App running

Is it possible to start Tomcat with only the Manger webapp running? I have multiple webapps in the appBase and don't want them to startup automatically at startup. If I set autoDeploy="false" deployOnStartup="false", I don't have access to the manager webapp on startup, because it is in the same appBase. I guess an alternate solution ...

What is the "source" attribute of the Context element of an Apache Tomcat configuration file for?

It's somehow related to Eclipse. For example: <Host> <Context docBase="foo" path="/foo" reloadable="true" source="org.eclipse.jst.j2ee.server:foo" /> </Host> ...

Getting Exception for Spring File upload

Hi , I am getting following Exception at the time of uploading the file using spring file upload functionality. trying to uplaod 291 KB jpg file. For less than 50 kb file it works properly. Following are bean entries <bean id="fileUploadController" class="com.businesscaliber.controller.FileUploadController"> <property name="...

Java Tomcat web form submission tries to download foo.do entry text/x-server-parsed-html

Web form submssion tries to download foo.do (for example). This downloaded form is the "thanks for submitting" the user normally sees after submission. The email that this page sends comes through OK. Both the shtml from which the form is submitted and the response that tries to download have a meta content tag of text/html. I havent g...

Has anybody succeeded in using JBoss AOP in Tomcat?

HI, I'm failing to deploy my application using JBoss AOP within a Apache Tomcat 6.0.16 server. I'm using the VM arg -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader I also have added the jboss aop jars to the classpath. The server and the webapp is starting but I'm getting this error: INFO: Unknown loade...

IIS + TOMCAT - uriworkermap.properties config

Trying to find the best way to setup the uriworkermap.properties file on IIS. We are using this: /*=worker With that line we can reach any new apps that are deployed to Tomcat without having to edit the properties file each time. The only issue with this method is that I can't seem to set an exclusion for any static files we might w...

h:inputText return a empty string instead of NULL

Hello, i make a JSF 2.0 Application and i use many h:inputText fields to input data in my database. Some fields are not required <h:inputText value="#{registerBean.user.phoneNumber}" id="phoneNumber" > <f:validateLength maximum="20" /> </h:inputText><br/> When the user leave this fie...

GWT and Hibernate - NoClassDefFoundError when using Hibernate

In my GWT service on server side I use Hibernate. When creating a SessionFactory I get following error: "java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details." What could be the reason? ...