tomcat

How difficult is it to write our own Robots API, similar to G Wave Robots API ? Please read the details of my query before answering.

Consider the following entities : a) My own Wave-server b) My own Robots API c) Tomcat d) Google wave server/any other wave server Let us consider that a and d interact with one another via Google wave federation protocol. Now, I want to write my own Robots API in Java (similar to that of G Wave Robots API) using which I want to crea...

What version of Tomcat is contained in the Websphere Application Server 7

As far as I know the Websphere Application Server contains a Tomcat instance as servlet container. I'd like to know which version of Tomcat this is in the Websphere 7.0 Version, since we are planning to use Tomcat for development, but WAS for deployment. Obviously we would like to use the matching version. ...

JBOSS V/s appache tomcat

I am new to "java world", I need following clarification when to use JBOSS vs TOMCAT? differences? which is more reliable? which is more scalable? which is more easy to to administrate? does both have scale out options? can I host an application developed in flex on JBOSS/TOMCAT? My application would be simple 3-tier with Servlets, s...

How can i make a Java Daemon

I need to do a periodic operation (call a java method) in my web app (jsp on tomcat). How can i do this ? Java daemon or others solutions ? ...

tomcat 6 hangs after a few hours

We have an application on tomcat using SQL server on top on Windows server 2007 web (IIS disabled) it works smoothly for a few hours but then it suddenly stops answering requests. Log aren't too informative. We've seen an NullPointer exception on a certain JSP, but the syetem only hanged 30 hours after that. We see manly exceptions on To...

How do I setup SOLR to write logs when it is deployed in Tomcat

Hello, I have successfully deployed an instance of SOLR 1.4 into Tomcat6 on a Redhat server. My question is, how do I configure it to log SOLR events? When I was using it previously on Jetty everything was getting logged to jetty/logs. However in Tomcat it doesn't seem to show up anywhere. Any ideas? Thanks! ...

Tomcat/Hibernate Problem "SEVERE: Error listenerStart"

I downloaded working example of hibernate (with maven) and installed it on my tomcat, it worked. Then I created a new web project in MyEclipse, added hibernate support and moved all source files (no jar) to this new project and fixed package/paths wherever was necessary. My servlets are responding correctly but when I add "Listener" in w...

Character-encoding problem spring

Hi All, I am stuck in a big problem with encoding in my website! I use spring 3, tomcat 6, and mysql db. I want to support German and Czech along with English in my website, I created all the JSPs as UTF-8 files, and in each jsp I include the following: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="...

WebService loggin using log4j in tomcat container

Hi, I have my webservice deployed on Apache tomcat 5.5. When I run my webservice using eclipse IDE, it prints logs to the location I have specified . I have put log4j property file for my webservice in the apache-tomcat-5.5.28/common/classes folder. Problem is , when i run this using webservice .aar file which is put in to apache-tomca...

Jython saying "No visible constructors for class"

I have a jython servlet as part of a large application running in tomcat5. I tested a few Spring Framework classes and create the objects in the Jython servlet. When I try to create objects of classes in the application I catch an Exception message "No visible constructors for class". These java classes do have a public constructor class...

grails Sql error

Hi, I was getting issue wen using new Sql method in grails . import groovy.sql.Sql def datasource def organization_config = new Sql(dataSource) def orgs = organization_config.rows("select o.organizationId,o.name from organization o ") session.setAttribute("org_results", orgs); The application is running but getting these...

Jython java call throws exception asking for 2 args when only one arg is coded

I have an Java method I want to call within my Jython servlet running on tomcat5. It looks like this: @SuppressWarnings("unchecked") public School loadByName(String name) { List<School> school; school = getHibernateTemplate().find("from " + getPersistentClass().getName() + " where name = ?", name); return un...

MySql too many connections

I hate to bring up a question which is widely asked on the web, but I cant seem to solve it. I started a project a while back and after a month of testing, I hit a "Too many connections" error. I looked into it, and "Solved" it by increasing the max_connections. This then worked. Since then more and more people started to use it, and i...

tomcat memory issue

I am having more than 150 web applications in my tomcat web-apps directory can these be the one of the reason for increase in memory usage. i have installed tomcat as a service . ...

Unable to add Tomcat server instance in Netbeans 6.9 (touch: cannot touch `/usr/share/tomcat6/logs/catalina.out')

I'm learning JSPs and servlets and I wanna use Netbeans. I've been unable to set Tomcat as the server instance. Netbeans says: The /conf/server.xml can't be read I'm running Ubuntu 9.04, what should be done? EDIT: I've found that my CATALINA_HOME VARIABLE is set to /usr/share/tomcat6, so what the hell is happening? Apparently, th...

Redirection Error with struts2-ssl-plugin

Hi! I'm trying to get the login part of my web application to use SSL. I'm using Tomcat (standalone, without apache) with struts2 and struts2-ssl-plugin, and have managed to at least get the necessary ports and connectors up, but when I try to open the login page, the plugin redirects back and forth between ports 80 and 443. The only c...

How do I get permission to create a folder inside Tomcat's webapps? (UBUNTU)

I've tried sudo chmod +rwx webapps and sudo chmod +rwx -R webapps but I'm still not being able to create a new folder inside webapps. Why and what should be done? ...

Classloaders and sharing .jar files with Apache Tomcat

If I have classes that need to be shared between my webapp and Tomcat (e.g. a custom realm and principal), where should the .jar file containing those classes go? Currently I'm putting the .jar in ${CATALINA_HOME}/lib. This result is a ClassCastException when assigning references from classes of the same type. Here's an example: MyCu...

classpath question, head first servlets book

I'm studying via Head First's Servlets and JSPs, and doing the assignment on the third chapter. On page 81, there's this javac call: > %javac -classpath /Users/bert/Applications2/tomcat/common/lib/ servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java I don't get what it's trying to do. The book says th...

Grant permission to single class

I'm working with a security policy on Tomcat 6. I've successfully granted permissions to my entire webapp, but would like to grant some permissions only to specific classes. However, when I try this, my doPrivileged block receives an AccessControlException. Because I've been successful granting to a more general code base, I went back...