tomcat

HornetQ on Tomcat

Is that possible to run HornetQ (JBoss JMS implementation) on Tomcat? The HornetQ documentation is all about JBoss AS or standalone scenarios... Update: This is from HornetQ feature list: "HornetQ is architected as a set of Plain Old Java Objects, it can therefore be run in JBoss Microcontainer, Spring, Google Guice or embedded in any...

Tomcat SOLR multiple cores setup

I have spend all morning trying to set up multiple cores on a SOLR installation that runs under Apache Tomcat server without success. My solr.xml looks like this: <solr persistent="false" sharedLib="lib"> <cores adminPath="/admin/cores"> <core name="core0" instanceDir="/multicore/core0"> <property name="dataDir" value="...

Web.xml: Are url-pattern tags relative to each other?

<servlet-mapping> <servlet-name>myName</servlet-name> <url-pattern>/aName</url-pattern> </servlet-mapping> <security-constraint> <web-resource-collection> ... <url-pattern> /* </url-pattern> </web-res...

Problems with Tomcat server and JSP web application

I am running a JSP/Servlet Web application and out of nowhere we experienced some random problems that don't make any sense. I checked the catalina.out file to check the log files, and I noticed it contained some of the following messages SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Invali...

How to increase Java heap space for a tomcat app

There are lots of questions that ask this or a similar question. They all give the command that has to be executed, what I don't understand is where do I write this command. I want to permanently increase the heap space for my tomcat apps. I read this page http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html ...

Problem with PHP/Java bridge.

I am using Tomcat 6. I am running a php script using the JavaBridge. I get the following error when I run my code. Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\xxxx\xxxxx.php on line 534 Please help. ...

I want Domain Login in my web application

i am developing web based HRIs application which is to be deployed on intranet and for dat m using Frontend : jsp/servlets Backend : Oracle Application Server : Tomcat in my web application i want domain login which means by tracing currently logged in user he should automatically logged in my web application pl give me the possible s...

Which application server should i choose for my project ?

Hi folks, I am currently developing an application for some researchers in my university.It's a small java program that you can use by command line. The next step is to package that program and deploy it to an application server. Some clients program will submit requests to the server who will call the tool that I wrote. Lately, we will ...

Remove files after session expiry in java web application

I have a java web application that generates and displays graphical pictures based upon some user parameters. I used to store the graphics in the Session map, but that is generally not a good idea (you want to keep the session data as small as possible). So instead, I only want to generate a file on the server and refer to it via an UR...

What's a good way to parameterize "static" content (e.g. CSS) in a Tomcat webapp?

Some of our CSS files contain parameters that can vary based on the deployment location (dev, QA, prod). For example: background: url(#DOJO_PATH#/dijit/themes...) to avoid hardcoding a path to a particular CDN or locally-hosted Dojo installation. These values are textually substituted with the real values by a deployment script, whe...

Maven + Tomcat acceleration

I am writing a web application with Maven in the Eclipse IDE, and use Tomcat servlet container. So, I run Maven like this: mvn clean compile. It is reasonable that after this operation I must re-run Tomcat so it can reinitialize the context (Sysdeo Tomcat launcher helps a lot). The problem is Maven execution and subsequent Tomcat re-ru...

Java Lib file errors

I am a brand new Java developer (I have been working in asp.net) and I inherited a project I am trying to get running correctly. I am on Windows 7 and have Tomcat installed and I am using Eclipse I'm trying to figure out how the heck Jar's work in java and I am really confused at the moment. I have been playing around with it and lookin...

Tomcat - How to limit the maximum memory Tomcat will use

Hi Guys, I am running Tomcat on a small VPS (256MB/512MB) and I want to explicitly limit the amount of memory Tomcat uses. I understand that I can configure this somehow by passing in the java maximum heap and initial heap size arguments; -Xmx256m -Xms128m But I can't find where to put this in the configuration of Tomcat 6 on Ubunt...

Most interoperable web service platform for Apache Tomcat JSP platform to be consumed by .NET

For a company that has their stack built on Apache Tomcat and JSP what would be the best web service platform to be leveraged by that infrastructure that would be consumed by .NET client. From the .NET side I know the answer would be Windows Communication Foundation (WCF) but I'm not sure from the other side. ...

Apache Tomcat Application Sefrver handles the Threading or not

Can any one tell me whether apache tomcat application server itself manages the threading or we have to externally do that as i am not using any J2EE framework ...

How to load a configuration file at startup within tomcat

I want to be able to load my configuration for the webapp at startup of tomcat (apache commons configuration library) is this a possible way: public class MyAppCfg implements javax.servlet.ServletContextListener { private ServletContext context = null; @Override public void contextInitialized(ServletContextEvent event) { try{ ...

Favicon for all the pages in my website

I've learned that the way to add favicon for a web page is to have the following lines in the page. <link rel="SHORTCUT ICON" type="image/x-icon" href="http://mysite.com/faviconfilename.ico"/&gt; <link rel="icon" type="image/x-icon" href="http://mysite.com/faviconfilename.ico" /> Should i add this code in each and every page my site h...

Spring scheduler shutdown error

During development a SPRING based scheduler in a tomcat container, I always get this logoutput at undeploy webapp or shutdown server: Apr 28, 2010 4:21:33 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Apr 28, 2010 4:21:33 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A ...

Grails exploded under tomcat

Hi, is there a way to use Grails in "exploded" mode on tomcat in order to make individual changes in a running application (like a gif) without having to regenerate the entire war and upload it ? Something like adding an xml file in tomcat's conf/Catalina/localhost that points to an exploded grails application ? Thanks in advance. ...

I want to know how to deploy the war file in apache tomcat and make it to run

Hi all, I create a war file using apache ant and i wanted to deploy that .war file in tomcat and make it run can u people help me with the steps.. i m not clear abt it ...