Re: building tomcat 5.5 trunk
On Sat, Sep 11, 2010 at 6:06 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: building tomcat 5.5 trunk Reason I couldn't find the class in the 5.5 branch is a bit embarasing. I didn't set the classpath in eclipse and the find class shortcut doesn't see it. There's a reason I use grep... Yeah though i've it checked out in windows, and I don't have cygwin installed. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: building tomcat 5.5 trunk
Wesley Acheson wrote: On Sat, Sep 11, 2010 at 6:06 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: building tomcat 5.5 trunk Reason I couldn't find the class in the 5.5 branch is a bit embarasing. I didn't set the classpath in eclipse and the find class shortcut doesn't see it. There's a reason I use grep... Yeah though i've it checked out in windows, and I don't have cygwin installed. You may want to have a look here : http://unxutils.sourceforge.net/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
building tomcat 5.5 trunk
HI I'm trying to build tomcat 5.5 trunk (to look further at Marks comment. http://marc.info/?l=tomcat-userm=128350009319985w=2 ). Trying to run ant download on build.xml gives me an error. Does the build.xml depend on me having subversion installed on my machine? The error I get when trying to run ant with no arguments is: C:\icarus\workspace\tc5.5\build\resources\build.xml:120: The following error occurred while executing this line: C:\icarus\workspace\tc5.5\build\resources\build.xml:101: Execute failed: java.io.IOException: Cannot run program svn: CreateProcess error=2, The system cannot find the file specified However building.txt implies its only needed to checkout source which I've already done. The error for ant download is C:\icarus\workspace\tc5.5\build\build.xml:2058: The following error occurred while executing this line: C:\icarus\workspace\tc5.5\build\build.xml:2148: Problem expanding gzip Unexpected end of ZLIB input stream Regards, Wes - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: building tomcat 5.5 trunk
Actually I'm not being smart in these questions at all. What I want to do is investigate the code that writes the server.xml It doesn't matter if I'm able to build it or not. There is some code that tries to save server.xml in the 5.5. tree. It was used by the admin app. Mark Is anyone familiar with the part of code that tries to write server.xml and where to find it. Simiarly I'm trying to find the code that is called by the MBean server in the 6.0 branch. I'm currently looking at public synchronized void storeConfig() throws Exception { ObjectName sname = null; try { sname = new ObjectName(Catalina:type=StoreConfig); if(mserver.isRegistered(sname)) { mserver.invoke(sname, storeConfig, null, null); } else log.error(StoreConfig mbean not registered + sname); } catch (Throwable t) { log.error(t); } } but I can't figure out what Catalina:type=StoreConfig refers to. I don't see a StoreConfig class and I'm not familiar with JMX. If its refering to a method called storeConfig I can only see that in classes that eventually call the piece of code posted. Sorry for being a pain just trying to understand. Wes - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: building tomcat 5.5 trunk
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: building tomcat 5.5 trunk Is anyone familiar with the part of code that tries to write server.xml and where to find it. Familiar would be a bit strong, but at least some of the code you're looking for is in these locations in the 5.5 branch: container/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/CommitChangesAction.java container/modules/storeconfig/src/share/org/apache/catalina/storeconfig/StoreConfig.java Simiarly I'm trying to find the code that is called by the MBean server in the 6.0 branch. I think that's the bit you need to create for 6.0 and above. I can't figure out what Catalina:type=StoreConfig refers to. AFAICT, it refers to a class that doesn't exist in the 6.0 branch (I suspect it was removed during the 6.0 reorganization). Look at 5.5 for examples. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: building tomcat 5.5 trunk
On Sat, Sep 11, 2010 at 12:32 AM, Wesley Acheson wesley.ache...@gmail.com wrote: but I can't figure out what Catalina:type=StoreConfig refers to. I don't see a StoreConfig class and I'm not familiar with JMX. If its refering to a method called storeConfig I can only see that in classes that eventually call the piece of code posted. Nevermind It isn't registered. Nothing happens when this is called in tc (6.0.29 anyway). Called from the manager by going to localhost/manager/save and although I got a saved message the following was written. 11-Sep-2010 00:42:22 org.apache.catalina.core.StandardServer storeConfig SEVERE: StoreConfig mbean not registeredCatalina:type=StoreConfig same result though jconsole. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: building tomcat 5.5 trunk
On Sat, Sep 11, 2010 at 12:49 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: building tomcat 5.5 trunk Is anyone familiar with the part of code that tries to write server.xml and where to find it. Familiar would be a bit strong, but at least some of the code you're looking for is in these locations in the 5.5 branch: container/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/CommitChangesAction.java container/modules/storeconfig/src/share/org/apache/catalina/storeconfig/StoreConfig.java Simiarly I'm trying to find the code that is called by the MBean server in the 6.0 branch. I think that's the bit you need to create for 6.0 and above. I can't figure out what Catalina:type=StoreConfig refers to. AFAICT, it refers to a class that doesn't exist in the 6.0 branch (I suspect it was removed during the 6.0 reorganization). Look at 5.5 for examples. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Okay thanks Chuck, I've reached the same conclusion myself. Although It appears to be available in jconsole and the manager I don't think it is, also the methods appear to succeed. I think maybe it should throw an exception if its not registered. Reason I couldn't find the class in the 5.5 branch is a bit embarasing. I didn't set the classpath in eclipse and the find class shortcut doesn't see it. Wes - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: building tomcat 5.5 trunk
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: building tomcat 5.5 trunk Reason I couldn't find the class in the 5.5 branch is a bit embarasing. I didn't set the classpath in eclipse and the find class shortcut doesn't see it. There's a reason I use grep... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: building tomcat 5.5 trunk
2010/9/11 Wesley Acheson wesley.ache...@gmail.com: HI I'm trying to build tomcat 5.5 trunk (to look further at Marks comment. http://marc.info/?l=tomcat-userm=128350009319985w=2 ). Trying to run ant download on build.xml gives me an error. Does the build.xml depend on me having subversion installed on my machine? The error I get when trying to run ant with no arguments is: C:\icarus\workspace\tc5.5\build\resources\build.xml:120: The following error occurred while executing this line: C:\icarus\workspace\tc5.5\build\resources\build.xml:101: Execute failed: java.io.IOException: Cannot run program svn: CreateProcess error=2, The system cannot find the file specified However building.txt implies its only needed to checkout source which I've already done. If you already have the sources then use build/build.xml to build Tomcat. You do not need the build/resources/build.xml file. (Do not forget to create build/build.properties file and set base.path property there to an appropriate value). Until about a year ago (until tc4.1.x was retired), Tomcat 5.5 sources were scattered among several subprojects. When the sources were stored in CVS, the build/resources/build.xml file was used as a wrapper around cvs to download those sources from proper places. See e.g. http://svn.apache.org/repos/asf/tomcat/tc5.5.x/tags/TOMCAT_5_5_0/build/resources/build.xml When the source were migrated to Subversion it became possible to use the svn:externals feature to replace several cvs calls with a single svn call, and now the svn layout is further simplified. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org