• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Using JForum via mod_jk

 
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'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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, well....

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

Bye Bye
[originally posted on jforum.net by nsedley]
 
You can't expect to wield supreme executive power just because
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic