how configure Jaxcent on Tomcat

31 views
Skip to first unread message

integral

unread,
May 21, 2008, 9:16:55 AM5/21/08
to Jaxcent
Hello, guys!
I downloaded Jaxcent and want to use it in my application. I use
Appache Tomcat 5.
I copied JaxcentFramework21.jar and Jaxcent21.jar to WEB-INF/lib
directory of my projects and then included jaxcent21.js to my jsp-
pages (I have message from this js-file). How I must configure web.xml
file? I have problems with JaxcentServlet tag...
I don't understand <servlet-class>jaxcentServlet.JaxcentServlet</
servlet-class>
Thank you very much
Message has been deleted

Jaxcent

unread,
May 23, 2008, 9:39:21 AM5/23/08
to Jaxcent
The Jaxcent "Getting started" documenation provides the lines you have
to add in your web.ini. If you google for "servlet-class" or "tomcat
servlet configuration", there will be several results that explain how
to configure servlets in Tomcat and what all the entries mean.
("servlet-class" refers to the class that Tomcat needs to load for the
Jaxcent servlet.)

Note that you don't have to use Tomcat to use Jaxcent! Jaxcent
includes its own server, that you can use for development, testing and
debugging.

worldtraveller

unread,
Jun 20, 2008, 3:40:02 PM6/20/08
to Jaxcent

Hello All,
if we have to deploy he application on the production environment then
we will need to configure it for tomcat or with some other heavy duty
server.
I spend 20 odd days, trying to deploy it on tomcat and iplanet. am
still not able to deploy it. and get a strange error "jaxcent servlet
no running or not configured to /jaxcent/jaxcentservlet"
the documentation available at www.jaxcent.com is does not give much
insight on the deploying of the jaxcent application on server like
tomcat.

can we have a step by step docs of how to deploy any of your jaxcent
example on tomat?
regards,....
Message has been deleted

Jaxcent

unread,
Jun 21, 2008, 11:51:28 AM6/21/08
to Jaxcent
Here are the steps for Tomcat:

1. Make sure the jaxcent JAR files (jaxcent21.jar and
jaxcentFramework21.jar) are available to Tomcat. This can be done by
placing them in the "lib" folder. This is from the top level, so for
instance, it could be "D:\apache-tomcat-6.0.14\lib" if your Tomcat
root is "D:\apache-tomcat-6.0.14".

2. Locate the web.xml file. For example, if your Tomcat root is "D:
\apache-tomcat-6.0.14" then the web.xml can be found in "D:\apache-
tomcat-6.0.14\webapps\ROOT\WEB-INF".

3. Edit the web.xml to add the lines starting from <servlet> and
ending at </servlet-mapping> as shown in http://www.jaxcent.com/docs/docs/GettingStartedServlet.html.
(You have to scroll down a page to see these lines.)

4. In the web.xml lines you added, there is a path to C:\Jaxcent
\Samples\JaxcentSampleConfig.xml there, and a path to C:\Jaxcent
\Samples. Change these two as required.

4. Restart Tomcat, and visit the URL http://localhost/servlet/JaxcentServlet21
to see if the servlet is available.

5. Check the Tomcat output window to see if there are any problems.

6. Make sure jaxcent21.js is available in "/" in your webserver
(iPlanet in your case.)

If you run into any problems at any of these steps or if it is not
clear, please post a message.

Jaxcent

unread,
Jun 21, 2008, 1:37:58 PM6/21/08
to Jaxcent
> 3.  Edit the web.xml to add the lines starting from <servlet> and
> ending at </servlet-mapping> as shown inhttp://www.jaxcent.com/docs/docs/GettingStartedServlet.html.
> (You have to scroll down a page to see these lines.)

Note: If the new lines are placed at a location which makes the XML
incorrect, the new servlet will not be added and other things may
break as well.

A good place to put these lines is just before the ending "</web-app>"
in the web.xml file.

Arsh

unread,
Jul 28, 2008, 5:41:08 AM7/28/08
to Jaxcent
Hi,

I religiously followed the steps mentioned but i am not able to start
off.It is saying as page not found.

I have place jaxcent21.js in tomcat 5.5 directory. Is it the place to
keep the file or somewhere else.

Kindly reply.

Regards
Arsh

On Jun 21, 8:51 pm, Jaxcent <jaxcent....@desisoft.com> wrote:
> Here are the steps for Tomcat:
>
> 1. Make sure the jaxcent JAR files (jaxcent21.jar and
> jaxcentFramework21.jar) are available to Tomcat. This can be done by
> placing them in the "lib" folder. This is from the top level, so for
> instance, it could be "D:\apache-tomcat-6.0.14\lib" if your Tomcat
> root is "D:\apache-tomcat-6.0.14".
>
> 2. Locate the web.xml file. For example, if your Tomcat root is "D:
> \apache-tomcat-6.0.14" then the web.xml can be found in "D:\apache-
> tomcat-6.0.14\webapps\ROOT\WEB-INF".
>
> 3. Edit the web.xml to add the lines starting from <servlet> and
> ending at </servlet-mapping> as shown inhttp://www.jaxcent.com/docs/docs/GettingStartedServlet.html.
> (You have to scroll down a page to see these lines.)
>
> 4. In the web.xml lines you added, there is a path to C:\Jaxcent
> \Samples\JaxcentSampleConfig.xml there, and a path to C:\Jaxcent
> \Samples. Change these two as required.
>
> 4. Restart Tomcat, and visit the URLhttp://localhost/servlet/JaxcentServlet21

chilligirl

unread,
Jul 28, 2008, 7:15:34 AM7/28/08
to Jaxcent
Hey, i edited the web.xml not in the webapps/ROOT/Web-Inf/ folder, but
the web.xml document in tomcathome/conf/ also, might sound stupid, but
you know you must start tomcat. check whether your tomcat is running
by entering http://localhost:8081/index.html (mine is running on port
8081, hence the port specification, replace with your port no). make
sure you changed your update to the web.xml doc to the correct paths
to your .class location and your Jaxcentconfig...

chilligirl

unread,
Jul 28, 2008, 7:16:27 AM7/28/08
to Jaxcent
Also, are you working on a live server? Or can you upgrade to tomcat
6? that is what I am working on...but Im sure it wont make a
difference...

On Jul 28, 11:41 am, Arsh <arsh...@gmail.com> wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages