DNA_Boss
February 28th, 2007, 04:20 PM
Hola Folks,
So I'm in the process of setting up an Ubuntu Dapper machine to run an internal wiki.
The Setup so far
Apache2
Tomcat5
JSPWiki
Java 1.5.0
The Issue:
So the wiki itself is running, and other users are able to browse the wiki. However, whenever a user attempts to comment or create a new page the address goes to localhost instead of the server. The changes are saved to the wiki though.
An example to help clarify the issue:
User goes to the wiki
clicks on a link to a topic named "Phone directory"
clicks add comment, and types in the comment.
clicks save - it's at this point that the issue occurs
Instead of going to http://SERVERNAME.net:8180/JSPWiki/phonedir...
it goes to http://LOCALHOST:8180/JSPWiki/phonedir...
and results in a page not found error.
I'm pretty positive the issue is somewhere in tomcat5, but i can't figure out where. I've edited the virtualhost information in the server.xml file, which it doesn't seem to pay attention to. The only thing I've found that may be related is an error recorded in my localhost logs whenever i startup the tomcat service.
---------------------------------------------
2007-02-27 16:03:39 StandardContext[/balancer]Exception starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.webapp.balancer.RulesParser.createDiges ter(RulesParser.java:65)
at org.apache.webapp.balancer.RulesParser.<init>(RulesParser.java:43)
at org.apache.webapp.balancer.BalancerFilter.init(Bal ancerFilter.java:79)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:225)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:308)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:3702)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4329)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:480)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)
-------------------------------------------
So ladies and gents any help would be most appreciated because at this point I'm clueless.
So I'm in the process of setting up an Ubuntu Dapper machine to run an internal wiki.
The Setup so far
Apache2
Tomcat5
JSPWiki
Java 1.5.0
The Issue:
So the wiki itself is running, and other users are able to browse the wiki. However, whenever a user attempts to comment or create a new page the address goes to localhost instead of the server. The changes are saved to the wiki though.
An example to help clarify the issue:
User goes to the wiki
clicks on a link to a topic named "Phone directory"
clicks add comment, and types in the comment.
clicks save - it's at this point that the issue occurs
Instead of going to http://SERVERNAME.net:8180/JSPWiki/phonedir...
it goes to http://LOCALHOST:8180/JSPWiki/phonedir...
and results in a page not found error.
I'm pretty positive the issue is somewhere in tomcat5, but i can't figure out where. I've edited the virtualhost information in the server.xml file, which it doesn't seem to pay attention to. The only thing I've found that may be related is an error recorded in my localhost logs whenever i startup the tomcat service.
---------------------------------------------
2007-02-27 16:03:39 StandardContext[/balancer]Exception starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.webapp.balancer.RulesParser.createDiges ter(RulesParser.java:65)
at org.apache.webapp.balancer.RulesParser.<init>(RulesParser.java:43)
at org.apache.webapp.balancer.BalancerFilter.init(Bal ancerFilter.java:79)
at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:225)
at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:308)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:3702)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4329)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:480)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)
-------------------------------------------
So ladies and gents any help would be most appreciated because at this point I'm clueless.