Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 3 of 11 FirstFirst 1 2 3 4 5 ... LastLast
Results 31 to 45 of 153
  1. #31
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Originally posted by russellhosting
    I have everything installed correctly, and so far everything works such as .jsp pages, and even pages that call a bean, works fine.

    However, I have a servlet that I am trying to call using the "http://www.yourdomain.com/servlet/ServletName"
    syntax, and Tomcat gives me a 404.

    What am I missing?
    I just got finished installing, and I'm having the same problem.

  2. #32
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    I got servlets working with the servlets directory, but for some reason they won't work in servlet.

    I used

    Code:
    <servlet>
    <servlet-name>invoker2</servlet-name>
    <servlet-class>org.apache.catalina.servlets.InvokerServlet</servlet-class> 
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    
    Add this right after the current invoker mapping
    
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlets/*</url-pattern>
    </servlet-mapping>
    From another post by dgbaker on these forums. The culprit is the web.xml file. Perhaps someone could post a working one?

  3. #33
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Well, I take it back. I spoke too soon. As soon as I went back and checked it it had stopped working. Something is wrong.

  4. #34
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Hello -

    Okay everything works fairly well with this 4.1.12 version from layer1 with the following exceptions (historical with this one that's why we say don't use it)

    mod_jk2 has major issues in this release for example, index.jsp will not load by default. It ignores the DirectoryIndex directive in httpd.conf.

    Several things in the main web.xml and server.xml are not setup correctly. Things are commented out that should not be like test connectors, default servlet support, etc....

    In order to use the one from layer1 effectively quite a few changes need to be done to these files and you must not use mod_jk2.so

    That's my couple of sense worth on it.

    It would be great if Planet_Master could get 4.1.29 working.
    Regards,
    David
    Forum Moderator

  5. #35
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Where is the main web.xml located? I have tons of them. What all needs to be uncommented? Just the servlet mapping section?

  6. #36
    Member
    Join Date
    Feb 2003
    Posts
    110

    Default

    Ok I think I want to delete everything and start from scratch.

    Anyone have instructions for installation on RH8.0?
    hiiii

  7. #37
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Originally posted by infinityws
    Ok I think I want to delete everything and start from scratch.

    Anyone have instructions for installation on RH8.0?
    You can follow the instructions for uninstalling on forum.cpanelhosts.com it's for 4.0.3 but the same steps are required, just substitue 4.0.3 for 4.1.12
    Regards,
    David
    Forum Moderator

  8. #38
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Originally posted by casey
    Where is the main web.xml located? I have tons of them. What all needs to be uncommented? Just the servlet mapping section?
    This one -> /usr/local/jakarta/jakarta-tomcat-4.1.12-src/build/conf/web.xml

    There are several, like test connectors (required for chkserv.d), servlets, invokers, and a couple of others.

    This is the primary one for all of Tomcat. The ones in users home areas are for their virtual instance only not the entire server.

    Also note that to have webapps and war deployment also requires some major changes to Tomcat (any of these versions) and Apache.
    Regards,
    David
    Forum Moderator

  9. #39
    Member
    Join Date
    Feb 2003
    Posts
    110

    Default

    How does .12 compare to .29 in terms of server load?
    hiiii

  10. #40
    Member Planet_Master's Avatar
    Join Date
    Apr 2002
    Location
    New Yorker
    Posts
    260

    Default

    Originally posted by dgbaker
    Hello -

    Okay everything works fairly well with this 4.1.12 version from layer1 with the following exceptions (historical with this one that's why we say don't use it)

    mod_jk2 has major issues in this release for example, index.jsp will not load by default. It ignores the DirectoryIndex directive in httpd.conf.

    Several things in the main web.xml and server.xml are not setup correctly. Things are commented out that should not be like test connectors, default servlet support, etc....

    In order to use the one from layer1 effectively quite a few changes need to be done to these files and you must not use mod_jk2.so

    That's my couple of sense worth on it.

    It would be great if Planet_Master could get 4.1.29 working.

    Working on getting the .29 version done but busy this weekend.

    By the way dgbaker, I have everything working with .12 including servlets and using the mod_jk2, I didnt really make any file changes just did the install and everything is running fine. No complaints. I also think Tomcat is very strange program because it reacts differently on different boxes, especially where configurations and installed software is concerned. Its just a very unpredictable application but when running correctly can really add value to your boxes.


    infinityws .29 is supposed to be less of a resource hog and it has been on my boxes, actually quite a bit. I am eagerly awaiting Tomcat 5.0.x which is said to really clean up on many things:

    Tomcat 5.0.x. Tomcat 5.0 improves on Tomcat 4.1 in many ways, including:

    Performance optimizations and reduced garbage collection
    Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production
    Complete server monitoring using JMX and the manager web application
    Scalability and reliability enhancements
    Improved Taglibs handling, including advanced pooling and tag plugins
    Improved platform integration, with native Windows and Unix wrappers
    Embedding of Tomcat using JMX
    Enhanced Security Manager support
    Integrated session clustering
    Expanded documentation

    There is a 5.0.14 Beta released but I will not take a chance with this on a already populated box. I will however try it out on a fresh server. lets see how it does with Cpanel.
    Vision Plateau Web Services - Total Control Hosting
    http://www.visionplateau.com

  11. #41
    Member
    Join Date
    Feb 2003
    Posts
    110

    Default

    Well I tried install the .29 through the instructions here but I couldn't get it to go.

    Can we get an official post or modification to the original post for .29 to work on RH8 with Cpanel? Or change it to .12?

    Thanks
    hiiii

  12. #42
    Member Planet_Master's Avatar
    Join Date
    Apr 2002
    Location
    New Yorker
    Posts
    260

    Default

    Originally posted by infinityws
    Well I tried install the .29 through the instructions here but I couldn't get it to go.

    Can we get an official post or modification to the original post for .29 to work on RH8 with Cpanel? Or change it to .12?

    Thanks
    The instructions in the first post are for .12 and I modified that in the post, my bad.

    I will be trying a .29 install when I ge the chance just up to my neck in work at the moment.
    Vision Plateau Web Services - Total Control Hosting
    http://www.visionplateau.com

  13. #43
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Originally posted by dgbaker
    This one -> /usr/local/jakarta/jakarta-tomcat-4.1.12-src/build/conf/web.xml

    There are several, like test connectors (required for chkserv.d), servlets, invokers, and a couple of others.

    This is the primary one for all of Tomcat. The ones in users home areas are for their virtual instance only not the entire server.

    Also note that to have webapps and war deployment also requires some major changes to Tomcat (any of these versions) and Apache.
    Is all you have to do to get servlets working uncomment the servlet mapping section in /usr/local/jakarta/jakarta-tomcat-4.1.12-src/build/conf/web.xml ? I did that, but it still does not work. I still get the not found error.

    Fortunately, none of my current jsp users use servlets, so none of them have even noticed...but just in case, I need to get this working.

  14. #44
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Also the invoker needs to be uncommented. Stop and restart. It should work like so http://www.virtual-hosting.ca/servlets/IsItWorking or servlet.

    Plus remember your path structure, WEB-INF/classes and lib
    Regards,
    David
    Forum Moderator

  15. #45
    Member
    Join Date
    Nov 2003
    Location
    Singapore
    Posts
    20

    Default

    the installation went great.

    test.jsp worked but jdbctest.jsp had errors.

    so i went into httpd.conf to check again.
    restarted apache and got an error. apache went down.
    went into httpd.conf again, removed all related paths and modules, apache went fine...

    it's indeed very weird....

    in fact, during the installation, i did not even add
    Include "/usr/local/jakarta/jakarta-tomcat-4.1.12-src/build/conf/auto/mod_jk.conf"

    i did tried adding in, but apache gave error while restarting so i removed and thing went fine.
    Regards,
    Galen

Similar Threads & Tags
Similar threads

  1. How to install InnoDB (step by step)
    By michelle_ai in forum Database Discussions
    Replies: 4
    Last Post: 09-15-2010, 07:06 AM
  2. How to install InnoDB (step by step)
    By michelle_ai in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-15-2010, 07:06 AM
  3. Need step-by-step to receive anytext@mydomain.org addresses
    By Kerrith in forum E-mail Discussions
    Replies: 14
    Last Post: 02-09-2007, 11:53 PM
  4. Step by step for installing a freessl cert so every domain o
    By fog in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-25-2003, 02:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube