wood burning stoves*
The moose likes JForum and the fly likes Using JForum via mod_jk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Using JForum via mod_jk" Watch "Using JForum via mod_jk" New topic
Author

Using JForum via mod_jk

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm using Tomcat via mod_jk and an ajp13 connector, so I connect to Tomcat via Apache (port 80) which maps /servlet/ to Tomcat. I am running several other servlets on the same server.

When I access http://myserver/servlet/jforum/forum/list.page I get an HTML page where none of the images or links work as none of them are prefixed by /servlet/jforum/

1) How do I add the path prefix?

2) I also get "java.io.IOException: The request '/servlet/jforum/forums/list.page' is not valid. A correspondent URL Pattern was not found" even though I have
<servlet-mapping>
<servlet-name>jforum</servlet-name>
<url-pattern>*.page</url-pattern>
</servlet-mapping>
in my web.xml. Is this related to 1)?

Thanks
[originally posted on jforum.net by nsedley]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Map *.page as well, not just /servlet

JForum will not work if you try to access using some virtual dir like /servlet.. This is because the way I process the "user friendly urls".

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Oh, well....

I would have been nice to use JForum....

Bye Bye
[originally posted on jforum.net by nsedley]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JForum via mod_jk