Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.

Easier Custom Components with Swing Fuse

Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.

Benchmark Analysis: Guice vs Spring

Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Replies: 16 - Pages: 2   [ 1 2 | Next ]
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Take Your Tomcat on the Road

At 10:57 AM on May 9, 2005, Matthew Schmidt wrote:

Run Tomcat from your USB drive! Rashan Shrestha shows how to organize everything you need, including Java, so you can click & run Tomcat from your keychain.

Read the full article now!
1 . At 4:35 PM on May 9, 2005, Glen Marchesani wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

Roshan I have a mildy modified version of jsmooth. Two big changes is the app config is in a separate file that the exe reads on startup. E.g. tomcat.exe looks for tomcat.conf. This allows one to switch debugging without having to recompile the exe. The other change (which is optional) is it removes the single exe into a dll and an exe. The reason for this is I have 45 jsmooth exe's so sharing a dll is much better use of resources (dll is 350K and the exe is 6K)...

Anyway let me know if you are interested. I have been waiting to hear back from the JSmooth developer to see if he wants my "new" skeleton or not. If not I will likely put it up on sourceforge on its own.

cheers,
Glen
2 . At 4:34 AM on Jun 17, 2005, mario la menza wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

Your resources link (src.zip) don't work. Regards,
3 . At 3:09 AM on Sep 21, 2005, Vincent Neyt wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

HI,
i am really impressed with your tomcat on the go. I am trying to get my application in tomcat to work from a cd-rom, and I find your way of starting up the engine and going to the openingpage the most elegant I've seen.
With my limited java knowledge I've managed to change the log dir to the temp dir on the c drive, but to get it to work properly I would also need to change tomcat's work dir and the temp dir to that same temp dir on the c, so tomcat can write all the temporary files it needs to run on the hard drive instead of trying to write them on the Cd itself.
could you help me with this?
thanks in advance.

vincent
4 . At 9:52 AM on Sep 23, 2005, Roshan Shrestha wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

I believe you can specify these in the " server.xml " under " conf ". Read the documentation here

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html

In brief, to specify the " work " dir, add the " workDir " attribute to the " Host " element:

<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" workDir="c:\temp">


To specify the " log " directory, add the full path in the " directory " attribute:


<Logger className="org.apache.catalina.logger.FileLogger"
directory="c:\temp\logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>


There may be a hierarchy of loggers, so you may need to specify the directory in all of them.

Roshan
5 . At 9:19 AM on Oct 5, 2005, carlo wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

Hi All....
I have a question....
You have to put together jre and tomcat in order to use JSP and servlet on fly.....
The question is: I used this tool with a version of tomcat that doesn't provide tools.jar....(the embedded Tomcat for example).
Therefore I'm not able to compile JSP and to use the tool unless I have JDK installed on my machine (javac is needed to compile JSP)...
The embedded tomcat doesn't provide tools.jar....

Is it right??? Any workaround for this problem???

Bye
6 . At 4:36 PM on Dec 7, 2005, Roshan Shrestha wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

I believe you can use the compiler that is included with Eclipse - I do not have much detail, you will have to read the release notes of Tomcat. You can always use the free Jikes compiler, instead of javacc.
7 . At 11:28 AM on May 11, 2006, hantu wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

hi there,

i'm very interested in this topic.

would you discuss abit about using the database. I'm using mysql. how to include it in the system?
8 . At 8:09 AM on Sep 4, 2006, ron wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

Hi,

Thanks for the article, this solution works like a charm (even for a Java-illiterate like me)!

Since I use some applications that come shipped with their own Jetty server, I wonder if your approach is portable to the Jetty server. How difficult would it be to 'Take your Jetty on the road'?

Thanks,

Ron Van den Branden
9 . At 9:36 AM on Sep 7, 2006, Roshan Shrestha wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

I don't think MySql would be suitable, unless the host computer happens to be running MySql. The reason is that mysql is not an "embedded" database, but requires a server to be running.
10 . At 9:38 AM on Sep 7, 2006, Roshan Shrestha wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

I do not have experience with Jetty, but I believe Jetty was designed to be embedable, and so would be even easier than Tomcat to embed it into your application.
11 . At 7:19 AM on Sep 29, 2006, James Clinton wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

Great. Worked first time..cheers.
12 . At 10:08 AM on Jun 14, 2007, Darren wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

this is excellent, very useful. Is there a way of getting around the requirement for Tomcat needing write access to the hard drive?

Regards

Darren
13 . At 9:22 AM on Aug 20, 2007, Tony wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

Yes, it's very useful to get around the requirement for Tomcat needing write access to the hard drive.
Waiting the answer.
Thanks.
Java Persistance
Java Swing
14 . At 10:09 AM on Aug 20, 2007, Darren wrote:
  Click to reply to this thread Reply

Re: Take Your Tomcat on the Road

I have managed to get around this, and have it running entirely from a CD with an in-memory pure java database. Essentially just put the cd in and it runs entirely from it including runtime, tomcat and database server. All I needed to do was to precompile the jsp's, and just wrote a batch file to do this, prior to burning to the CD

Regards

Darren

thread.rss_message