tomcat

Trouble understanding the whole OSGi web eco system

Hello, I am pretty new to the whole Java and OSGi world and I have trouble understanding the eco system of a OSGi web application. To be more precise I am at the moment trying to understand how all the parts of the eco system are related to each other: OSGi Framework (e.g. Apache Felix, Equinox, Knoplerfish) OSGi Runtime (e.g. Spring...

Spring + Hessian on Tomcat

Hello. I have a task to write a web service with use of Hessian and Spring. Unfortunately there is not enough information so i can't make it work myself... Please can anyone write a simple Hello World for me? My version always shows 404 when accesing with browser... I'm new to java so if smb knows how to help tell me what files of my ...

Servlet stops without giving any exception

Hi, I have implemented a Servlet hosted on Tomcat 6 server on Mandriva Linux. I have been able to make the client communicate with the Servlet. In response to a request the Servlet tries to instantiate a another class (named KalmanFilter) located in the same directory. The KalmanFilter tries to create four Matrices (using Jama Matrix pac...

Basic Tomcat Servlet error.

package mypackage; import java.io.*; import javax.servlet.http.*; import javax.servlet.*; public class Hello extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { PrintWriter out = res.getWriter(); out.println("Hello, world...

Deploying only changed portions of a war to Tomcat

I'm deploying my application to Tomcat, which currently involves uploading a ~40MB war file to a remote server. Often the changes within the war only affect jars and static content which account for maybe 2 - 3MB's. Is there some tooling I can integrate with my Ant script that can accurately detect the changes to the war and give me a ...

Tomcat: recommandations for logging

I've read several questions here concerning Tomcat and logging but I still really don't understand the "bigger picture", hence my question: How and where are my Webapps supposed to do their logging? By default on my setup Tomcat 6.0.20 logs go in the following file/appender: ./apache-tomcat-6.0.20/logs/catalina.out Am I suppose to ha...

Communication between web services on different servers

Hi, I have 2 different webservices running on 2 different tomcat application servers (w/ axis2 web service engine) (Webservice A runs on Server A and Webservice B runs on Server B). How can web service A on Server A pass Data A (file) to Web Service B on Server B? I am new to web services and would appreciate any help in this regard....

Error starting modern compiler

In my servlet , I m using Tomcat 5.0 and JRE is 1.5.0 but it is giving error when I click on the URL . As when I created a war file of my project and deployed in tomcat than it is working fine . It means that only problem with my eclipse configuration ERROR IS : - Apr 5, 2010 3:20:22 PM org.apache.jasper.compiler.Compiler generateCla...

how can a servlet in one jvm communicate with servlet in another jvm

can this be solved simply by specifying the complete url of the servlet in the RequestDispatcher? ...

How can I find out at runtime what garbage collection algorithm is configured in my JVM?

I have an instance of Tomcat 6.0.18 running on Sun's Java HotSpot(TM) Server VM build 1.6.0_14-b08. Is there any way for me to find out what garbage collection algorithm the JVM is using to run my web application? ...

Apache http rewrite rules for multiple tomcat instances

Hi, I have an environment where in there are two tomcat instances running the same application. What I would need is an apache load balancing the url requests to these tomcat instances using the mod_rewrite rules. I know that we can do this with mod_jk already but have observed that the mod_jk s an overhead in terms of performance so f...

how to run soap using apache tomcat

please help me i am new to this field ,i downloaded activation.jar, xerces.jar, soap.jar and mail.jar after this how to run the application. if there is any example available it will be help ful to me. i am totally panic. i dont know what to do .. some one please help me ...

MultiViews in Tomcat

Hello, I have used MultiViews in Apache before and I am now moving into a project that uses Tomcat. I have pitched the idea that having a file named "registration.html" could be linked to it using http:// domain/registration/ I was then able to retrieve additional information for "registration.html" by extending the URL to: http:// dom...

Tomcat gzip while chunked issue

I'm expiriencing some problem with one of my data source services. As it says in HTTP response headers it's running on Apache-Coyote/1.1. Server gives responses with Transfer-Encoding: chunked, here sample response: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Content-Encoding...

How to upload file outside web server?

I want to upload files outisde web server like in d d drive into servlets, I but I'm not able to upload them. What I have to do to make functionality like this enable in Tomcat 6.0? ...

is it hibernate cache problem?

Hi all, I am using jasper report to generate a report while calculating total from database.I am sending this as a parameter to jasper.But sometimes it gives wrong values for a total. I am using Hibernate as a OR-Mapping tool. In my application i am generating reports from database.In some reports it gives wrong values whereas the cod...

Content Negotiation on Tomcat

I'm trying to get my Tomcat to use pretty URLs, similar to Apache's MultiViews option. I tried using AJP to proxy Tomcat to Apache, but the .htaccess file is still ignored. What are my options for Tomcat? ...

Tomcat login-config

Hi, I'm using Tomcat to deploy two web-services endpoints but on one WAR file (I used one WAR because the two endpoint implementations are calling one another). How can I define different login methods to each endpoint? I actually need two different custom realm for each endpoint... Thanks ...

Define Servlet Context in WAR-File

Hi, How can I tell e.g. Tomcat to use a specific context path when given my WAR-File? Example: I have a war file created by maven build and the resulting name of the file is rather long. So I do not want the tomcat manager application to use the filename of the war as the context. Supplying a context.xml in META-INF did not produce th...

Embedding a querystring parameter in a hidden input with JSP results ing 500 error.

I need a hidden input to contain the value passed by the querystring via a JSP's URL. The URL looks like... http://nowhere.com/myapp/blah.jsp?key=12345 The JSP looks like... <html> <body> <input id="key" type="hidden" value="<%=request.getParameter('key')%>" /> </body> </html> This causes a 500 error... SEVERE: Servlet.service() fo...