• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Installation Problems - Tomcat 6.0

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jforum war file in the webapps directory. When the installer ran (<site>/jforum/install.jsp) the images were missing, but it populated the MySQL database and saved the SystemGlobals.properties and mysql.properties correctly. Now when I go to <site>/jforum, I get a 404 error. :?

If I go to <site>/jforum/install.jsp again, I see the forum text, but there are no images or style sheet applied. It is plain text scattered around the screen.

What am I doing wrong. I have full access to the server and have even tried pointing the docbase/path in server.xml to the jforum directory, but still get a 404 error. Other war files deploy and run fine.

Thanks for helping out a n00b.
[originally posted on jforum.net by Opsman]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FWIW, I run it on TC6 with no problems.. but I don't deploy via a war...

First, I assume that you have TC configured to expand the war into a real directory and not try to run directly from the war file? This is the default and can be checked by looking in the webapps directory for a jforum directory.

Second, I remember there were some problems with the war file in the distribution not being set up correctly. Does your jforum directory have the following subdirectories under it (not in another directory): images, templates, tmp, and few others?

There also should be some files in the webapp jforum directory like index.htm and install.jsp.

Finally, are you going directly to Tomcat or are you going via a front end web server like Apache?

Another WAG would be that maybe the files created aren't read-able by the id the service is running under. (E.g, it's a *nix box).

That's all I can think of right now.


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am familiar with Tomcat and packaging WAR files as this is the method we use for our corporate site. IIRC the jforum WAR was in an extra folder jforum/jforum. I just packaged it into 1 folder. Yes, all of those directories are in the root as are index.thm and install.jsp.

When I go to <site>/jforum, I still get a 404 error. I can browse the jforum installation if I go to <site>/jforum/install.jsp. It forwards me to <site>/jforum/list.page, but there are no images or style sheets applied. All of the links are there, but I cannot see images. I even uploaded an avatar image in my profile and it is in the images/avatar directory, but I cannot see it on the site.
[originally posted on jforum.net by Opsman]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well the index.jsp thing sounds like it's not defined as a welcome (e.g. default) page. You may need to add it as a welcome page in the web.xml.

As to the other stuff... if you do a View / Source what do you see? Are the CSS @import statement pointing to the correct locations? Or do you see FreeMarker script language (e.g. ${contextPath}, <#setting..., and the like.).

If you see the FreeMarker stuff, there could be a problem with one or more of the jar dependancies being overridden by the system. Check the tomcat logs for errors and the shared and common libs for duplicate jars.

If for some reason, you see URL to "localhost" or a different server, did you install on another server, package it up and then deploy? You might need to change host names in the jforum-custom.conf file (WEB-INF/config directory).

If all that looks right, can you access the images or other files with direct URLs? e.g. <server>/jforum/templates/default/icon_mini_search.gif type stuff

Also check that under the images directory there is an avatar directory and it contains your uploaded avatar.

One thing I'm wondering is if the docRoot for your webapp is really set to what you think it is? This could explain why servlet generated stuff works but static content doesn't get retrieved.

Is there an old jforum context definition "lying around" in your Tomcat config somewhere?



[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It just hit me to turn off our custom default servlet to see if it was affecting the jforum. It was. I reverted back to the original catalina default servlet and jforum runs correctly.

Our custom servlet redirects 404 errors if the value is in our database. We'll just add an exception for the forum.

:arrow: Monroe, thank you for your time to ponder and make suggestions to help. I appreciate it.

Now, I have to work on SSO with our existing site.
[originally posted on jforum.net by Opsman]
 
And inside of my fortune cookie was this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic