-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sandy,

On 12/14/2010 9:13 AM, dfsdf fsdfsd wrote:

Please change your "name" to reflect your real name. Or a fake name if
you wish. "dfsdf fsdfsd" means you're just not trying hard enough.

> I am using Tomcat 5.5.4 under Unix Sun Solaris.

As Chuck says: upgrade.

> I have a servlet that should be executed on web.xml

I think you mean "should be initialized on startup":

>   <display-name>Apache-Axis</display-name>
>   <servlet>
>     <servlet-name>StartUp</servlet-name>      
>     <servlet-class>
>         com.dpadmin.config.StartUpServlet
>     </servlet-class>
>     <load-on-startup>1</load-on-startup>
>   </servlet>

Ok.

> But then now, this servlet is not executed. I have the same problem
> around 1 year ago, and by that time, i just
> deleted the work directory under my webapp and it works.
> 
> And now, it doenst work anymore.

Same version of Tomcat all the way through?

> INFO: Deploying web application archive administrator.war
>
> [snip]
> 
> Aug 31, 2010 4:44:47 PM com.generaladmin.modules.ModuleManager initialize
> INFO: No modules found in directory 
> /opt/dpmaster/dp7.1.2/dpadminserver/modules
> Aug 31, 2010 4:44:47 PM com.dpadmin.config.StartUpServlet init
> INFO: No modules found in directory 
> /opt/smarttrust/dpmaster/dp7.1.2/dpadminserver/modules
> 
> Aug 31, 2010 4:44:49 PM org.apache.coyote.http11.Http11Protocol start
>
> And now only like this :
> 
> INFO: Deploying web application archive administrator.war
>
> [snip]
> 
> Aug 31, 2010 4:44:49 PM org.apache.coyote.http11.Http11Protocol start

Maybe you actually have modules in
/opt/dpmaster/dp7.1.2/dpadminserver/modules and
/opt/smarttrust/dpmaster/dp7.1.2/dpadminserver/modules?

> You may see that the com.dpadmin.config.StartUpServlet init
> is not executed.
> 
> How do i solve this ?

You could use a debugger, memory profiler, or even jhat to check to see
if there are any com.dpadmin.config.StartUpServlet objects in memory. If
there are, then your servlet probably was initialized by Tomcat.

Why not add a log message in your servlet that says "starting up"?

Did you change your logging settings? Have you checked other logfiles in
the logs/ directory?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0Hk+sACgkQ9CaO5/Lv0PBfRQCgnc/EhoQpxwaJ4+DyrvQ5h9al
rwMAoLfcZGuPZlijPUfKJDeUcAzG1Fzl
=NMCv
-----END PGP SIGNATURE-----

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

Reply via email to