2010/12/1 Justin Case <send_lotsa_spam_h...@yahoo.com>:
>
>            <Host appBase="wtpwebapps" autoDeploy="false"

Just curious: why wtpwebapps? Eclipse IDE uses that name.

> deployOnStartup="false"
>                name="localhost" unpackWARs="true" xmlNamespaceAware="false"
>                xmlValidation="false">
>                <Valve className="org.apache.catalina.valves.AccessLogValve"
>                    directory="logs" pattern="common" prefix="access_log."
>                    resolveHosts="false" suffix=".txt" />
>                <Context docBase="com.mycompany.myapp" path="/myapp"
>                    reloadable="true" override="true">
>                    <Manager pathname="" />
>                    <Resource name="hibernate/MySessionFactory" 
> auth="Container"
>                        type="org.hibernate.SessionFactory"
>
> factory="com.mycompany.myapp.HibernateSessionFactoryTomcatFactory"
>                        configuration="hibernate.cfg.xml" />
>                </Context>
>            </Host>
>
> If I remove the context from server.xml and place a context.xml in my app's
> META-INF, then enable the two deploy params, the deployment happens 
> succesfully
> - that's what the console says at least. The application even starts ok, I can
> see the logging of my classes.
> BUT!
> Each request to the application will throw immediately a HTTP error 400 - bad
> request.

Try with recent 6.0.x (build it yourself), or 6.0.30 (when it comes
out), or 7.0.5 -- they will log such requests into AccessLog.
Usually it means that this request was rejected by the connector, or
by CoyoteAdapter.  What is your client?

Do you have a ROOT application deployed? You should have one.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to