tomcat

How to incorporate an xml fragment into tomcat's server.xml

I'm doing a distribution of tomcat for a many servers and in each of these servers the realm is going to be different. I would like to have a file /etc/tomcat/realm.xml containing the realm for that installation and have the file /var/lib/tomcat/conf/server.xml import it directly. I've tried with Xinclude without luck and I'm about to ...

How to let Tomcat publish WSDL for the WS it provides (CXF 2.2, Spring 3, Tomcat6)

Hi, I am trying to implement a simple web service provider using Tomcat6, CXF 2.2, Spring 3, and actually the service itself runs fine (I can call web methods using the original WSDL and SoapUI). However, Tomcat returns a blank page on "?wsdl" requests. Also, when I try to manipulate the (would-be) published WSDL by adding a publishedEnd...

getResourceAsStream not loading resource in webapp

I have a web application that uses a library which resides in TOMCAT_HOME/common/lib. This library looks for a properties file at the root of the classpath (in a class called ApplicationConfig): ApplicationConfig.class.getResourceAsStream("/hv-application.properties"); My Tomcat web application contains this properties file. It is i...

android: error parsing apk from tomcat server

This is related to my previous post: http://stackoverflow.com/questions/2649422/android-test-app-on-a-real-device Here is what I did: followed every step to create keystore, sign, zipalign, versioning, labeling and naming my app. Resulted in an .apk file. Upload my file to tomcat/webapps/ROOT/myapp.apk changed tomcat/conf/web.xml by a...

ClassCircularityError when running tomcat6 from eclipse

I'm using Eclipse 3.5, tomcat runtime is set as tomcat 6.0.26, vm is jdk 1.6.17 (macosx) When I try to run a web application from eclipse Java EE perspective I keep seeing this error in the console: Caused by: java.lang.ClassCircularityError: java/util/logging/LogRecord at com.adsafe.util.SimpleFormatter.format(SimpleFormatter.java:1...

Detect the URI encoding automatically in Tomcat

I have an instance of Apache Tomcat 6.x running, and I want it to interpret the character set of incoming URLs a little more intelligent than the default behavior. In particular, I want to achieve the following mapping: So%DFe => Soße So%C3%9Fe => Soße So%DF%C3%9F => (error) The bevavior I want could be described as "try to decode the...

Tomcat cookies not working via my ProxyPass VirtualHost

Hi there. I'm having some issues with getting cookies to work when using a ProxyPass to redirect traffic on port 80 to a web-application hosted via Tomcat. My motivation for enabling cookies is to get rid of the "jsessionid=" parameter that is appended to the URLs. I've enabled cookies in my context.xml in META-INF/ for my web applica...

Extracting startup errors from Spring contexts

Consider the following output from a Tomcat server under Eclipse: INFO: Initializing Coyote HTTP/1.1 on http-8080 INFO: Initialization processed in 634 ms INFO: Starting service Catalina INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 SEVERE: Error listenerStart SEVERE: Context [/MyServlet] startup failed due to previous errors I ...

web service and its configuration file

I implemented one service and it has several configuration item, such as data type, next node, blablabla. What I want to do is to deploy the service and configuration file into tomcat within one .aar. However, if I jar the service and configuration file into the aar. The service can't read the file though the file is there in the same ...

Simple Java web application on Tomcat

If we only need to graphically authorize a user, view a few tables representation (from database), ability to change data in the database visually what tools to use to write such a web application that will run on Tomcat? What framework allows to do that in the most straightforward, easy-to-manage and elegant way? ...

How to store a file on a server(web container) through a Java EE web application?

I have developed a Java EE web application. This application allows a user to upload a file with the help of a browser. Once the user has uploaded his file, this application first stores the uploaded file on the server (on which it is running) and then processes it. At present, I am storing the file on the server as follows: try { ...

Version/source of Tomcat in my JBoss AS?

I am debugging a really tricky problem with servlet filters in a web application running on a JBoss 5.1.0 AS. I really need the source of the tomcat that runs inside my JBoss. I already downloaded the src-Package from JBoss but could not find the tomcat sources in it. Any suggestions? ...

Tomcat on Windows x64 using 32-bit JDK

Hoping someone can help. The rub: I can't get Tomcat 5.5 to start as a windows service on 64-bit windows using a 32-bit JDK. the details: I've been running Tomcat 5.5 on Windows Server 2008 (x64) as a service for some time using a 64-bit JDK. I'm being forced to install a 32-bit JDK on this 64-bit machine so I can make use of the Jav...

Automatic login after registration

Hi there, I have a webapp with form-based authentication. On the login page, I have placed a link to a public registration form. The registration adds a user in the database that is used for authentication. Now, is is possible to do an automatic login as the new user after the registration is complete, without returning to the login pa...

Websphere 7 simple realm (like tomcat-users.xml)

I am trying to port a J2EE app from Tomcat to Websphere and I'm not too familiar with Websphere. The only problem I am having is authorization (I use basic-authentication in my web.xml). In Tomcat I use the tomcat-users.xml file to define my users/passwords and to what roles they belong. How do I do this "simply" in Websphere? When dep...

oracle hibernate + maven dependenciesm dbcp.basicdatasource exception

I'm trying to create a web application using maven, tomcat and hibernate. Now I'm getting a cannot find class for org.appache.commons.dbcp.basicdatasource for bean with name datasource... exception. Without the hibernate aspects it works fine, but if I add <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <pro...

Browsing Tomcat Server

how i can browse my tomcat server on intranet i have already tried http://computername:8080/appsName/ and i have also asked my company's network administrator for firewall setting but according to them everything is fine no need to put exception on firewall thanks in advance ...

java jsr237 workmanager get to know max queue length

Hi all! We're implementing the myfoo.de workmanager in tomcat. In the JNDI Resource you can/must configure a max queue length (works queue). Is there any way to get that number, the size of the queue, from the code (Java class)? Thank you! ...

Using (multi lexeme) grails targets in gant scripts

I have a gant script in my grails project. I would like to do something just like this: includeTargets << new File ( "${grailsHome}/scripts/War.groovy" ) war() But for the deploy target in the script provided by the tomcat plugin. Specifically, I would like to invoke this target: grails prod tomcat deploy how would that happen? ...

"Subdomain" after my website name

Is there a way to create (dinamically) a kind of subdomain that goes between my website domain and the .com? For www.onlinevet.com, for instance, would be something like: www.onlinevet.dog.com www.onlinevet.cat.com ...