Re: MinTC, "terrible rudeness", persistence

2002-04-19 Thread Jerome Bouat

I don't known well Tomcat 4
but I search for a Servlet container which:
- can be used as a component of an application
  but does not impose a 'web server' structure
  to the application
- is compliant with the latest Servlet standart
  (~ is an implementation reference)
- disallows filesystem access
- still lightweight

Thus, I'm interrested in MinTC.
I'm a newbie but I don't understand
why it could be harmful for Tomcat 4
since it seems that MinTC use a big part of Catalina
and it could thus enhance Tomcat 4
by the diversified use of its libraries.

Jerome

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




problem with catalina for 'non-web' application

2002-03-14 Thread Jerome Bouat

I repost this message
on this list because the tomcat-user list
didn't resolve my problem.

I have read the developper FAQ,
main documentation,
and the main method body
of the org.apache.catalina.startup.Embedded class
but I found no response to my problem.

I want to use the Jakarta catalina library
without the configuration files
(server.xml, WEB-INF/web.xml, ...).
The aim is to use (and hide)
a lighweight SOAP (on HTTP) connector
started from a java NON-WEB application.

SOAP message handling is made with a servlet
that extends the javax.xml.messaging.JAXMServlet class.
My ServletFilter class
which implements the javax.servlet.Filter interface
does not alter the ServletRequest
or ServletResponse parameters (empty method bodies).

A python client send a SOAP message to my HTTP connector
but my servlet doesn't get any message.

I have read the documentation,
but it is done for web developpers only.

What is wrong ?

Thanks for your help.

Jerome



--
configuration code
--
/ variables previous settings
* servlet : String, the full name of my servlet class
*/

System.setProperty("catalina.home","/tmp");
System.setProperty("catalina.base","/tmp");

this.server = new Embedded();
this.server.addLifecycleListener(this);

Engine engine = this.server.createEngine();
engine.setDefaultHost("vtm");

Host host = this.server.createHost("vtm","");

Context context = this.server.createContext("","/tmp");
FilterDef fD = new FilterDef();
fD.setFilterName("*");
fD.setFilterClass("com.xerox.VTM.clf.ServletFilter");
context.addFilterDef(fD);
FilterMap map = new FilterMap();
map.setFilterName("*");
map.setServletName(servlet);
context.addFilterMap(map);
context.setReloadable(false);
context.setCookies(false);
context.getServletContext().setAttribute("GUIManager",this);

Wrapper w = context.createWrapper();
w.setServletClass(servlet);
w.setName("SOAPHandler");
w.setLoadOnStartup(-1);
w.setParent(context);
context.addChild(w);

host.addChild(context);
engine.addChild(host);
this.server.addEngine(engine);
try{
Connector connector;
connector =
this.server.createConnector(InetAddress.getLocalHost(),port,false);
connector.setScheme("http");
this.server.addConnector(connector);
try{
this.server.start();
}
catch(LifecycleException e){System.err.println(e);}
}
catch(UnknownHostException e){e.printStackTrace();}



-
client trace

404 '/'


server trace

Apache Tomcat/4.0.3
WebappLoader[]: Deploying class repositories to work directory
/tmp/work/vtm/_
StandardManager[]: Seeding random number generator class
java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
ContextConfig[]: Missing default web.xml, using application web.xml only
ContextConfig[]: Missing application web.xml, using defaults only
ContextConfig[]: Added certificates -> request attribute Valve
HttpConnector Opening server socket on host IP address 13.202.220.88
HttpConnector[19769] Starting background thread

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: