You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Kevin Stover <ks...@netchemistry.com> on 2000/07/27 20:30:40 UTC

Tomcat J2EE Adapter ERROR

When compiling I receive the following error

class org.apache.tomcat.j2ee.TomcatJ2EEAdapter cannot override the method of
the same signature declared in class com.sun.web.server.WebService.  They
must have the same return type.

The tomcat function declaration is

public  ServletContext addContext( String , URL )

Suns declaration of this function is

public Context addContext ( String, URL )

Is there a fix available?
If you do not get this error what version of J2EE are you running?


Kevin Stover
Systems Engineer
NetChemistry, Inc.
kstover@netchemistry.com





[BUG] ? Fatal error at startup if no context defined

Posted by Ren� Salle <re...@wanadoo.fr>.
Salut,

- What I've done:

Since I have applications that run smoothly, and that Tomcat detect and load
it without any mention of it in conf/server.xml,

Since I didn't need any of applications that come with tomcat (example,
root, and test), and they may even be in my case nuisances (admin),

I'd just removed all wars from the 'dist' build I've made of recent (07/26)
CVS main branch sources, and removed all context definitions from server.xml

Only the latter is related to...

- What I've got:

Tomcat: Loading config file C:\Java\tomcat\conf\server.xml
FATAL:
java.lang.NullPointerException
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:210)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:269)

(Run on Win98, j2se 1.3, 'jasper.log' and 'servlet.log' 0 bytes size.)

I was not able to track this down by lack of time.

I've no idea if this might be considered as a bug either.


Re: Tomcat J2EE Adapter ERROR

Posted by Costin Manolache <co...@eng.sun.com>.
Kevin Stover wrote:

> When compiling I receive the following error
>
> class org.apache.tomcat.j2ee.TomcatJ2EEAdapter cannot override the method of
> the same signature declared in class com.sun.web.server.WebService.  They
> must have the same return type.
>
> The tomcat function declaration is
>
> public  ServletContext addContext( String , URL )
>
> Suns declaration of this function is
>
> public Context addContext ( String, URL )
>
> Is there a fix available?
> If you do not get this error what version of J2EE are you running?

You need few small fixes in J2EE.

J2EE includes tomcat 3.0, and it has some hard-coded references.

Costin