On Jun 14, 2009, at 8:30 PM, Ivan wrote:

In which snapshot site, I could find the tomcat build ? I have checked the people, not found.

https://repository.apache.org/content/repositories/snapshots/org/apache/geronimo/ext/tomcat/

This is in the apache 6 pom... are you having trouble accessing it from china?

Then I tried to build them on my local machine, some errors occured, is there any option that I could set ? (I just run 'mvn install')

Don't build the archetype directly.... run ./build-archetype.sh.  It only works on unix like systems.

did you check out  this?
https://svn.apache.org/repos/asf/geronimo/external/trunk/tomcat-parent-6.0.18

For the tomcat-archetype, it said that org.eclipse.jdt:core:jar:3.2.3.v_686_R32x could not be found

that's odd, I thought my local nexus found it in maven central repo but it's not there now.  I'll update it to 3.3.0-v_771

For the tomcat-parent-6.0.18, it said
--->
/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[42,20] package javax.xml.ws does not exist

I was compiling on java 6.  I'll add geronimo-jaxws_2.1_spec

Thanks for trying it out, let me know if there are more problems!
david jencks


/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSession.java:[47,26] [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[26,26] [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSession.java:[268,21] [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[104,11] [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/StandardWrapper.java:[43,21] [deprecation] javax.servlet.SingleThreadModel in javax.servlet has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/coyote/Response.java:[477,43] [deprecation] isSpace(char) in java.lang.Character has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/connector/Response.java:[756,47] [deprecation] isSpace(char) in java.lang.Character has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/connector/Connector.java:[1012,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[263,53] cannot find symbol
symbol  : class WebServiceRef
location: class org.apache.catalina.core.DefaultInstanceManager

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[264,20] cannot find symbol
symbol  : class WebServiceRef
location: class org.apache.catalina.core.DefaultInstanceManager

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[265,44] cannot find symbol
symbol  : class WebServiceRef
location: class org.apache.catalina.core.DefaultInstanceManager

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[295,54] cannot find symbol
symbol  : class WebServiceRef
location: class org.apache.catalina.core.DefaultInstanceManager

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[296,20] cannot find symbol
symbol  : class WebServiceRef
location: class org.apache.catalina.core.DefaultInstanceManager

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DefaultInstanceManager.java:[297,45] cannot find symbol
symbol  : class WebServiceRef
location: class org.apache.catalina.core.DefaultInstanceManager

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/JniHandler.java:[170,30] [deprecation] MsgContext() in org.apache.jk.core.MsgContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/JniHandler.java:[171,23] [deprecation] MsgAjp() in org.apache.jk.common.MsgAjp has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DummyResponse.java:[122,16] [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DummyResponse.java:[111,18] [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DummyResponse.java:[113,18] [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DummyRequest.java:[258,19] [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/DummyRequest.java:[205,18] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[144,16] [deprecation] removeValue(java.lang.String) in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[134,16] [deprecation] putValue(java.lang.String,java.lang.Object) in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[124,20] [deprecation] getValueNames() in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[114,18] [deprecation] getValue(java.lang.String) in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[104,30] [deprecation] getSessionContext() in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[105,22] [deprecation] getSessionContext() in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/session/StandardSessionFacade.java:[125,22] [deprecation] getValueNames() in javax.servlet.http.HttpSession has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/ChannelSocket.java:[786,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/ssi/ResponseIncludeWrapper.java:[39,7] [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/ssi/ResponseIncludeWrapper.java:[39,7] [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/ssi/ResponseIncludeWrapper.java:[39,7] [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/ChannelUn.java:[299,24] [deprecation] MsgAjp() in org.apache.jk.common.MsgAjp has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/ChannelUn.java:[353,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpResponse.java:[339,16] [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpResponse.java:[48,0] [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpResponse.java:[48,0] [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpResponse.java:[342,12] [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/WorkerDummy.java:[58,16] [deprecation] MsgAjp() in org.apache.jk.common.MsgAjp has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/manager/util/SessionUtils.java:[121,101] non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Class for a varargs call
cast to java.lang.Class[] for a non-varargs call and to suppress this warning

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/manager/util/SessionUtils.java:[124,94] non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this warning

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/coyote/http11/Http11NioProtocol.java:[349,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java:[64,22] [deprecation] getSSLSupport(javax.net.ssl.SSLSession) in org.apache.tomcat.util.net.SSLImplementation has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/tomcat/util/net/jsse/JSSEImplementation.java:[64,22] [deprecation] getSSLSupport(javax.net.ssl.SSLSession) in org.apache.tomcat.util.net.SSLImplementation has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/servlets/InvokerHttpRequest.java:[36,0] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/servlets/InvokerHttpRequest.java:[36,0] [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/servlets/InvokerHttpRequest.java:[36,0] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/StandardWrapper.java:[1110,51] [deprecation] javax.servlet.SingleThreadModel in javax.servlet has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/coyote/ajp/AjpAprProtocol.java:[236,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/coyote/http11/Http11Protocol.java:[250,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/startup/SetNextNamingRule.java:[84,16] [deprecation] end() in org.apache.tomcat.util.digester.Rule has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/coyote/ajp/AjpProtocol.java:[235,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpRequest.java:[61,0] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpRequest.java:[61,0] [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationHttpRequest.java:[61,0] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/startup/ConnectorCreateRule.java:[49,16] [deprecation] begin(org.xml.sax.Attributes) in org.apache.tomcat.util.digester.Rule has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/startup/ConnectorCreateRule.java:[70,16] [deprecation] end() in org.apache.tomcat.util.digester.Rule has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/valves/ExtendedAccessLogValve.java:[410,29] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/connector/CoyoteAdapter.java:[626,24] [deprecation] convert(org.apache.tomcat.util.buf.ByteChunk,org.apache.tomcat.util.buf.CharChunk) in org.apache.tomcat.util.buf.B2CConverter has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/jk/common/ChannelNioSocket.java:[733,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationRequest.java:[49,0] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[256,16] [deprecation] log(java.lang.Exception,java.lang.String) in javax.servlet.ServletContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[238,23] [deprecation] getServletNames() in javax.servlet.ServletContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[229,23] [deprecation] getServlets() in javax.servlet.ServletContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[211,19] [deprecation] getServlet(java.lang.String) in javax.servlet.ServletContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[224,26] [deprecation] getServlet(java.lang.String) in org.apache.catalina.core.ApplicationContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[233,26] [deprecation] getServlets() in org.apache.catalina.core.ApplicationContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[242,26] [deprecation] getServletNames() in org.apache.catalina.core.ApplicationContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/core/ApplicationContextFacade.java:[261,19] [deprecation] log(java.lang.Exception,java.lang.String) in org.apache.catalina.core.ApplicationContext has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/coyote/http11/Http11AprProtocol.java:[184,36] [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/startup/WebRuleSet.java:[754,16] [deprecation] end() in org.apache.tomcat.util.digester.Rule has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/startup/WebRuleSet.java:[866,16] [deprecation] body(java.lang.String) in org.apache.tomcat.util.digester.Rule has been deprecated

/home/xuhaihong/external/tomcat-parent-6.0.18/catalina/src/main/java/org/apache/catalina/startup/WebRuleSet.java:[890,16] [deprecation] body(java.lang.String) in org.apache.tomcat.util.digester.Rule has been deprecated


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Sun Jun 14 23:34:06 EDT 2009
[INFO] Final Memory: 54M/352M
[INFO] ------------------------------------------------------------------------

<---
Thanks !
    Ivan

2009/6/14 David Jencks <david_jencks@yahoo.com>
I pushed a snapshot of our new tomcat build earlier today and just committed the server.xml changes to trunk.  With a little luck I won't have made the build significantly more broken.

thanks
david jencks




On Jun 12, 2009, at 11:21 AM, David Jencks wrote:


On Jun 12, 2009, at 10:51 AM, Kevan Miller wrote:


On Jun 5, 2009, at 3:00 AM, David Jencks wrote:


On Jun 3, 2009, at 10:35 PM, Kevan Miller wrote:


On Jun 2, 2009, at 6:46 PM, David Jencks wrote:

<snip>

I played with something like this on the plane today..... it might not take more that a couple days to get _something_ working that interprets server.xml files.  It turns out there's no schema for tomcat configurations so it may be an adventure interpreting the same files they do.

We might be able to copy their digester configuration but replace defaults with geronimo classes instead of tomcat classes.  I find digester grammar so hard to understand however that I started by generating a schema from a sample file and modifying it to fit the digeter rules.

My current idea is to have a TomcatServerGBean that has a server.xml as an attribute, which it reads into a jaxb tree, which we call a "construct(ClassLoader cl)" method on to set up the tomcat objects.  If this works it should be fairly easy.... no idea if it will actually work though.

Next step would be a builder that, given a server.xml, sets up such a gbean.

Sounds interesting. IIUC, this embedded Tomcat instance replaces our current embedded Tomcat. It improves our ability to configure this instance -- it's native Tomcat config.

Are you thinking about all configuration files? E.g. WEB-INF/context.xml, conf/context.xml? There are catalina.policy, catalina.properties, tomcat-users.xml, also. Hmm. gets a little messier...

I have enough working now so I can run the admin console on a server set up this way.  I haven't looked at any files other than server.xml yet.  Some like tomcat-users.xml are for a security realm we aren't going to use or, probably, support using.  Not sure about the others.

Cool. Can you point me to the code?

I'm hoping to get it checked in today.  I have a bunch of stuff intertwined locally so this involves figuring out where to put our tomcat build in svn and pushing a snapshot for it first.  I still don't have a good idea where in svn to put builds of other projects.  I guess I'll use "external" and we can move it if anyone has a better idea.

thanks
david jencks



--kevan



--
Ivan