Wes Mckean wrote:
>
> Has anyone had any luck getting Apache to work with embeded tomcat?
>
> Wes
>
Hi ,
These changes are working for me. I was in too much of a hurry. (is it
hardcode).
org.apache.tomcat.startup.EmbededTomcat.java
159,176d158
< ///add jserv12
< public void addApj12( int port, InetAddress addr , String
hostname) {
<
< if(debug>0) log( "addConnector " + port + " " + addr +
< " " + hostname );
<
< PoolTcpConnector sc=new PoolTcpConnector();
< sc.setServer( contextM );
< sc.setDebug( debug );
< sc.setAttribute( "vhost_port" , new Integer( port ) );
< if( addr != null ) sc.setAttribute( "vhost_address", addr );
< if( hostname != null ) sc.setAttribute( "vhost_name", hostname );
<
< sc.setTcpConnectionHandler( new
org.apache.tomcat.service.connector.Ajp12ConnectionHandler());
<
< contextM.addServerConnector( sc );
< }
org.jboss.tomcat.EmbeddedTomcatService.java
148c148
< //deploy("/", "file:" + tomcatHome + "/webapps/ROOT");
---
> deploy("/", "file:" + tomcatHome + "/webapps/ROOT");
150,153d149
< ServletContext sctx;
<
< sctx=embededTomcat.addContext("/ecom",new
URL("file:"+tomcatHome+"/webapps/ecom"));
< embededTomcat.initContext( sctx );
< embededTomcat.addApj12(8007, null, null);
It is not correct diff file. Apply these changes manually. (I have no
orig version of EmbeddedTomcatService)
mino
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]