Thread: RE: Antwort: [Trackplus-user] Re: installation problems jboss/tomcat
Brought to you by:
friedj
From: Jeff J. <jj...@go...> - 2002-11-25 19:08:50
|
FYI - We are using Tomcat 4.1.12 too, but on NT 2000 server, and do not have = the application.getRealPath() problem. SDK 1.4.0, and no JBoss. The date display error is bug #634428, fixed in the next beta release = according to its status. http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D634428&group= _id=3D39389&atid=3D425059 -----Original Message----- From: filip defoort [mailto:fi...@cy...] Sent: Monday, November 25, 2002 12:35 PM To: Joerg Friedrich Cc: crey987654; tra...@li...; tra...@li... Subject: Re: Antwort: [Trackplus-user] Re: installation problems jboss/tomcat Hi Joerg, It's indeed Tomcat 4.1.12 that I'm using, so nothing wrong there from the track+ side.=20 While fixing this problem (just added a init parameter called OVERRIDE_REAL_PATH that I can set in web.xml), I ran across two other problems, which are bugs in Track+:=20 - the mail locale files are all using '\n' between to separate the lines; that is not according to the spec which requires a '\r\n'. In particular when I was installing track+ on my linux system, the mail flatly refused to work because of that. As soon as I changed all the '\n''s by '\r\n''s everything was great.=20 - the dates(start and end date) while editing an issue are not = displayed=20 correctly. They are displayed with a '.' as a separator iso a '/' and are when you save the issue not parsed correctly. Should be very easy to fix (using mysql as a database, not sure whether that has any impact on anything).=20 Thanks for the quick replies!=20 - Filip=20 Joerg Friedrich writes:=20 >=20 > Hello,=20 >=20 > sorry for the trouble. But there are reports that some versions of = Tomcat > have problems with "application.getRealPath()". So the fix would not = be to > change Track+ but rather look for a more stable version of Tomcat. = Here > some links:=20 >=20 > Summary: getRealPath is broken since Tomcat 4.0.4, worked in Tomcat = 4.0.3 > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D11047=20 >=20 > getRealPath() returns null in JBoss3.0.3-Tomcat4.1.12 > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3D13884=20 >=20 > I hope that helps.=20 >=20 > Regards,=20 >=20 > Joerg=20 >=20 > =20 >=20 >=20 > = =20 > filip defoort = =20 > <fi...@cy...> An: = "crey987654" <cre...@ya...>=20 > Gesendet von: Kopie: = "'filip defoort'" =20 > trackplus-user-admin@lists = <fi...@cy...>, =20 > .sourceforge.net = tra...@li... =20 > = Blindkopie: =20 > Thema: = [Trackplus-user] Re: installation =20 > 23.11.2002 03:25 problems = jboss/tomcat =20 > = =20 > = =20 >=20 > =20 >=20 >=20 > hi Christian,=20 >=20 > I tried that, but no cigar...=20 >=20 > After looking more closely into this I found the offending sourcecode: = >=20 > src/com/aurel/track/dbase/StartServlet:=20 >=20 > .... > String realPath =3D application.getRealPath("/"); > Constants.setRealPath(realPath); > .... > /* > * Initializing Torque > */ > Torque.init(realPath > + "WEB-INF" > + File.separator > + "Torque.properties");=20 >=20 > What's happening is that for some reason in my environment > realPath =3D=3D null, so it prints > 'nullWEB-INF/Torque.properties' > or 'null/WEB-INF/Torque.properties'=20 >=20 > with your suggestion.. Work-around should be relatively > straighforward, like=20 >=20 > Torque.init( (realPath!=3Dnull?realPath:) > + "WEB-INF" > + File.separator > + "Torque.properties");=20 >=20 > or so...=20 >=20 > I'll see if I manage to build from the sources...=20 >=20 > Anybody any further ideas? Why would realPath be null on jboss/tomcat? > Any settings I'm forgetting?=20 >=20 > Thanks for the help, > - Filip=20 >=20 > =20 >=20 > =20 >=20 > crey987654 writes:=20 >=20 >> Hi fillip,=20 >> >> I also got a similar problem. I just added a "/" to value of >> log4j-init-file parameter at the web.xml file.=20 >> >> Hth=20 >> >> christian=20 >> >> -----Original Message----- >> From: tra...@li... >> [mailto:tra...@li...] On Behalf Of = filip >> defoort >> Sent: Friday, November 22, 2002 5:04 PM >> To: tra...@li... >> Subject: [Trackplus-user] installation problems jboss/tomcat=20 >> >> Hi,=20 >> >> I'm trying to install track+ 2.0b2 on the jboss/tomcat bundle >> using mysql as a database backend (server for now on w2000, >> db on linux RH7.2). DB installation goes fine, >> but when I copy the war in the deploy directoy, I get errors >> below.. Somehow there seems to be some null pointer prepended >> to the pathname (iso a leading '/'), and it all goes downhill >> from there...=20 >> >> Anybody any idea what's going on??=20 >> >> Many thanks, >> - Filip >> ---------------------------------------------------------=20 >> >> 16:37:17,578 INFO [Engine] ContextConfig[/track-200b2]: Added >> certificates >> -> request attribute Valve >> 16:37:20,906 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent >> classloader delegation: true >> 16:37:20,937 INFO [Engine] startServlet: init >> 16:37:20,953 ERROR [STDERR] log4j:ERROR Could not read configuration >> file >> [nullWEB-INF/Torque.properties]. >> 16:37:20,953 ERROR [STDERR] java.io.FileNotFoundException: >> nullWEB-INF\Torque.properties (The system cannot find the pat >> h specified) >> 16:37:20,953 ERROR [STDERR] at = java.io.FileInputStream.open(Native >> Method) >> 16:37:20,953 ERROR [STDERR] at >> java.io.FileInputStream.<init>(FileInputStream.java:103) >> 16:37:20,968 ERROR [STDERR] at >> java.io.FileInputStream.<init>(FileInputStream.java:66) >> 16:37:20,968 ERROR [STDERR] at >> = org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.j >> ava: >> 297) >> 16:37:20,968 ERROR [STDERR] at >> = org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.jav >> a:31 >> 5) >> 16:37:20,984 ERROR [STDERR] at >> com.aurel.track.dbase.StartServlet.init(StartServlet.java:88) >> 16:37:20,984 ERROR [STDERR] at >> javax.servlet.GenericServlet.init(GenericServlet.java:258) >> 16:37:20,984 ERROR [STDERR] at >> = org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav >> a:91 >> 8) >> 16:37:20,984 ERROR [STDERR] at >> = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) >> 16:37:21,000 ERROR [STDERR] at >> = org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j >> ava: >> 3279) >> 16:37:21,000 ERROR [STDERR] at >> = org.apache.catalina.core.StandardContext.start(StandardContext.java:3421 >> ) >> 16:37:21,000 ERROR [STDERR] at >> = org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) >> 16:37:21,015 ERROR [STDERR] at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478) >> 16:37:21,015 ERROR [STDERR] at >> = org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(Embedd >> edCa >> talinaSer >> viceSX.java:421) >> 16:37:21,015 ERROR [STDERR] at >> = org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedC >> atal >> inaServic >> eSX.java:296) >> 16:37:21,015 ERROR [STDERR] at >> = org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:457) >> 16:37:21,031 ERROR [STDERR] at >> org.jboss.deployment.MainDeployer.start(MainDeployer.java:804) >> 16:37:21,031 ERROR [STDERR] at >> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:634) >> 16:37:21,031 ERROR [STDERR] at >> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:599) >> 16:37:21,046 ERROR [STDERR] at >> sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) >> 16:37:21,046 ERROR [STDERR] at >> = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor >> Impl >> .java:25)=20 >> >> 16:37:21,046 ERROR [STDERR] at >> java.lang.reflect.Method.invoke(Method.java:324) >> 16:37:21,062 ERROR [STDERR] at >> = org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi >> spat >> cher.java >> :284) >> 16:37:21,062 ERROR [STDERR] at >> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) >> 16:37:21,078 ERROR [STDERR] at >> org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) >> 16:37:21,078 ERROR [STDERR] at $Proxy7.deploy(Unknown Source) >> 16:37:21,078 ERROR [STDERR] at >> = org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentSc >> anne >> r.java:38 >> 1) >> 16:37:21,093 ERROR [STDERR] at >> = org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScan >> ner. >> java:499)=20 >> >> 16:37:21,093 ERROR [STDERR] at >> = org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doS >> can( >> AbstractD >> eploymentScanner.java:187) >> 16:37:21,109 ERROR [STDERR] at >> = org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loo >> p(Ab >> stractDep >> loymentScanner.java:197) >> 16:37:21,109 ERROR [STDERR] at >> = org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run >> (Abs >> tractDepl >> oymentScanner.java:177) >> 16:37:21,109 ERROR [STDERR] log4j:ERROR Ignoring configuration file >> [nullWEB-INF/Torque.properties]. >> 16:37:21,281 ERROR [StartServlet] nullWEB-INF\Torque.properties (The >> system >> cannot find the path specified) >> 16:37:21,296 ERROR [STDERR] java.io.FileNotFoundException: >> nullWEB-INF\Torque.properties (The system cannot find the pat >> h specified) >> at java.io.FileInputStream.open(Native Method) >> at java.io.FileInputStream.<init>(FileInputStream.java:103) >> at java.io.FileInputStream.<init>(FileInputStream.java:66) >> at >> = org.apache.commons.configuration.PropertiesConfiguration.<init>(Properti >> esCo >> nfiguration.java:190) >> at org.apache.torque.Torque.init(Unknown Source) >> at = com.aurel.track.dbase.StartServlet.init(StartServlet.java:129) >> at javax.servlet.GenericServlet.init(GenericServlet.java:258) >> at >> = org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav >> a:91 >> 8) >> at >> = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)=20 >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Trackplus-user mailing list >> Tra...@li... >> https://lists.sourceforge.net/lists/listinfo/trackplus-user=20 >> > =20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Trackplus-user mailing list > Tra...@li... > https://lists.sourceforge.net/lists/listinfo/trackplus-user=20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 =20 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T=20 handheld. Power & Color in a compact size!=20 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Trackplus-user mailing list Tra...@li... https://lists.sourceforge.net/lists/listinfo/trackplus-user |