tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: automatic deployment without server.xml - bad request
Date Thu, 02 Dec 2010 09:46:21 GMT
2010/12/1 Justin Case <send_lotsa_spam_here@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message