Hi!
I'm running Tomcat inside of Netbeans. I added Tomcat server(not bundled with Netbeans) to Servers in Netbeans. But, when i'm trying to run Tomcat, it starts(i can visit Tomcat home page), but Netbeans can't find it running. Where is the problem?
No stacktrace in Tomcat.
When i'm deploying my project`s war in this Tomcat manually, ...
First off, I'm using Tomcat 5.5 and my .jsp's live in /webapps/foo/bar/*.jsp.
I followed the directions here to set up a default 404 error page. In my TOMCAT_HOME/conf/web.xml I entered:
<error-page>
<error-code>404</error-code>
<location>/error.html</location>
</error-page>
I dropped copies of a test error.html fil...
Hi,
I'm doing a performance study for a web application framework running on Apache Tomcat 6.
I'm trying to measure the time overhead of handling HTTP requests.
What I would like to do is:
/
// just before first request byte is read
long t1 = System.nanoTime();
// request is processed...
// just after final byte is written to resp...
As per the Q&A here, I'd like to implement a similar auto-versioning system for a web app running in JBoss 5. Is there anything already out there to do this sort of thing, or will I need to write something myself? To be clear: I am not using PHP.
Not knowing much about PHP, I'm not sure what the Tomcat/JBoss analogs of PHP's .htaccess, ...
I have java webapp (written in spring mvc) and running on tomcat. I want to log user's behavior into a separate log file (separate from what we're logging right now to catalina.out).
We're currently using Apache commons logging to obtain Log instances in our classes:
protected final Log logger = LogFactory.getLog(getClass());
I prefe...
For one type of exception, IOException, I want to display one page. For all other exceptions I have a default error page. In my web.xml I have things setup like this:
<error-page>
<exception-type>java.io.IOException</exception-type>
<location>/queryException.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.E...
I have to to deploy a Ruby on Rails application to an tomcat application server using jruby-rack. Due to security reasons my customer has the webapps directory mounted read only and he won't changed this. The problem that arises is, that the rails logger wants to open the WEB-INF/log/production.log in write mode. He writes nothing to thi...
Hi all,
I hope this question isn't too open ended, but a nudge in the right direction is all I need!
I am currently building an online accounting system - the idea is that users can register, log in, and then create customers, generate invoices and other documents and eventually print / email those documents out.
I am a Java programme...
My idea is to create a .jar file that contains Services
managed by Spring, that should be got by getBean()
I want to put it to WEB-INF/lib of a Web-app
Then in web-app Servlets I want to get use of the functionality of a Jar file.
1 Idea. Create classes that encapsulate invokation to Spring Context (getBean() etc)
For example, the cl...
Hi.
Official guide says:
Tomcat deployment is trivial and
requires copying the WAR file into the
TOMCAT_HOME/webapps folder and
restarting the container.
But this is really painful :-(
Does there any way to deploy app without restarting Tomcat ?
...
I use @Resource to annotate bean classes, @Autowired to autowire dependencies,
and in Spring configuration file these things:
context:component-scan base-package="package1,package2"
tx:annotation-driven
So, it works fine (tested). Spring scans package1, package2, classes with @Resource annotation
and then I can get them using...
I just created a self-signed certificate on a linux box running tomcat 6.
I created the keys like this, valid for 10 years:
keytool -genkey -alias tomcatorange -keyalg RSA -validity 3650
and copied the keystore into a folder in tomcat, and updated server.xml to point at the keystore.
Now my network admin is asking for the both the p...
Hi there.
I've deployed an Apache Wicket web-application that uses Spring and Hibernate to my Tomcat 5.5 instance. When I navigate to the Tomcat Manager interface I see that the web-application I deployed is not running. When I press 'Start' I get the following error message; "FAIL - Application at context path /spaghetti could not be s...
Please pardon me if this question is silly. Suppose I develop a j2ee web application using srping framework and a MS SQL Server database, using a Webspphere application server. I later create a war file for this application. Can I deploy this war file on a tomcat server without any change in code? Or my question is can this be hosted by ...
hello, i want to get ip server where my tomcat is execute in java (Struts).?
...
I'm trying to deploy a Google-Web-Toolkit web application on my tomcat. It works in Eclipse Hosted mode, it works on XAMPP without the rpc calls but on tomcat it doesn't even find the HTML.
Before anything happens I always gets
localhost:8080/test.html
the requested resource (/test.html) is not available.
Even when I just put a Hello...
Web app runs on Tomcat. Datasource is configured with Spring configuration,
and is used by Hibernate.
If we cannot use JNDI, what would you suggest to use as a DataSource?
org.springframework.jdbc.datasource.DriverManagerDataSource will be ok?
It's not very good, but sincerely speaking, it can be used on production server, right?
Just ...
I'm using Tomcat 6.0.24, as packaged for Ubuntu Karmic. The default security policy of Ubuntu's Tomcat package is pretty stringent, but appears straightforward. In /var/lib/tomcat6/conf/policy.d, there are a variety of files that establish default policy.
Worth noting at the start:
I've not changed the stock tomcat install at all --...
Can I write a module/filter that gets put into the processing pipleline in Tomcat BEFORE the web application even gets run?
Something that I could turn on/off for each web application that tomcat is handling.
is this possible?
So basically it would be a re-usable filter that hooks into the web pipeline that could alter the requests be...
edit: Retagged as tomcat/jboss, since this could be a question about the Tomcat embedded inside JBoss 6, rather than JBoss itself
I have an extremely simple servlet, which works on Glassfish v3. It uses Servlet 3.0 Asynchronous Processing. Here's a simplified version (which doesn't do much):
@WebServlet(asyncSupported=true)
public clas...