Eclipse and Tomcat

18 views
Skip to first unread message

arneunruh

unread,
Sep 22, 2009, 4:10:59 PM9/22/09
to Jaxcent
A long day for a small solution.
I need 12 hours to set up my enviroment.
I will use Jaxcent instead of Gwt ...

So i will post a short documentation ...

1. Open Eclipse
2. Create New "Dynamic Web Project" name Jaxcent
3. Copy Samples *.java to Java Resources: src packages sample and
sample.test
4. Copy Samples *.html to WebContent
5. Copy jaxcent21.js to WebContent
6. Copy jaxcentSampleConfig.xml to WebContent into WEB-INF

Change HTML File

<HTML>
<HEAD>
<TITLE>Clock Sample</TITLE>
<SCRIPT TYPE="text/javascript" SRC="jaxcent21.js"></SCRIPT>

Change Jaxcent21.js

var JaxcentFrameworkURL = "http://localhost:8080/Jaxcent/servlet/
JaxcentServlet21";

Change JaxcentSampleConfig.xml

<?xml version="1.0" ?>
<JaxcentConfiguration>
<Page>
<PagePath>/Jaxcent/clockSample.html</PagePath>
<PageClass>sample.ClockSample</PageClass>
</Page>


Now you can export a WAR to your product enviroment and Jaxcent
runs ...

Start Server an look at

http://localhost:8080/Jaxcent/servlet/JaxcentServlet21

http://localhost:8080/Jaxcent/ClockSample.html

Have fun and some times it would be help to delete cache of explorer.

Arne
Reply all
Reply to author
Forward
0 new messages