You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leif Mortenson <le...@tanukisoftware.com> on 2002/11/07 05:29:53 UTC

Question about using container.jar with Tomcat.

I just updated my application to the latest versions of jars from CVS.
Due to a change in
the component package, the container jar is now required. That is fine
but when I deployed
my app and tried to start Tomcat, I get the following exception:

LifecycleException: Missing optional package Extension[avalon-framework,
implementationVersion=4.1.2, specificationVersion=1.0]
at
org.apache.catalina.loader.WebappLoader.validatePackages(WebappLoader.java:1244)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:645)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
...

I thought that I tracked this down to the implementation version of
avalon-framework being 4.1.3
when the framework extension version in the container manifest was
4.1.2. But when I change
the required version in container' manifest to 4.1.3, I still get the
exception:

LifecycleException: Missing optional package Extension[avalon-framework,
implementationVersion=4.1.3, specificationVersion=1.0]
at
org.apache.catalina.loader.WebappLoader.validatePackages(WebappLoader.java:1244)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:645)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
...

If I remove the framework as an extension from the container manifest,
then the error goes away
and my application works perfectly.

Any ideas? Obviously, it would be best not to have to modify the jars
before they can be used. :-)

Thanks,
Leif



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about using container.jar with Tomcat.

Posted by Leif Mortenson <le...@tanukisoftware.com>.
Ok, thanks. The dependency was removed from the container manifest, so
it is currently
not a problem.

Cheers,
Leif

Eung-ju Park wrote:

>It's not a avalon's problem. I think it is tomcat's bug.
>see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14007
>
>----- Original Message ----- 
>From: "Leif Mortenson" <le...@tanukisoftware.com>
>To: "Avalon Developers List" <av...@jakarta.apache.org>
>Sent: Thursday, November 14, 2002 12:50 PM
>Subject: Re: Question about using container.jar with Tomcat.
>
>
>  
>
>>Peter Donald wrote:
>>
>>    
>>
>>>On Thu, 7 Nov 2002 22:52, Leif Mortenson wrote:
>>>
>>>
>>>      
>>>
>>>>Peter,
>>>>Thanks, but that patch didn't solve the problem. Even mentioning
>>>>framework in the
>>>>Extension list throws an error. The error changed to:
>>>>
>>>>2002-11-07 20:48:01 StandardHost[localhost]: ContainerBase.addChild:
>>>>        
>>>>
>start:
>  
>
>>>>LifecycleException: Missing optional package Extension[avalon-framework]
>>>>
>>>>
>>>>        
>>>>
>>>Wierd. Can you tell me whether avalon-framework.jar contains the relevent
>>>extension declaration in the manifest? (Or even just send us the
>>>      
>>>
>manifest).
>  
>
>>>If not then that sthe problem  - if it does then it looks like it may be
>>>      
>>>
>a TC
>  
>
>>>bug. There were a few bugs in the extension handling code but I told
>>>      
>>>
>Craig -
>  
>
>>>not sure if he fixed them.
>>>
>>>      
>>>
>>Here is the contents of the avalon-framework.jar manifest.mf Is this
>>extension declaration
>>correct? It does specify the Extension-Name.
>>----
>>Manifest-Version: 1.0
>>Created-By: Apache Ant 1.5
>>Extension-Name: avalon-framework
>>Specification-Vendor: Apache Software Foundation
>>Specification-Version: 1.0
>>Implementation-Vendor: Apache Software Foundation
>>Implementation-Version: 4.1.3
>>----
>>
>>Cheers,
>>Leif
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>    
>>
><ma...@jakarta.apache.org>
>  
>
>>For additional commands, e-mail:
>>    
>>
><ma...@jakarta.apache.org>
>  
>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about using container.jar with Tomcat.

Posted by Eung-ju Park <co...@apache.org>.
It's not a avalon's problem. I think it is tomcat's bug.
see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14007

----- Original Message ----- 
From: "Leif Mortenson" <le...@tanukisoftware.com>
To: "Avalon Developers List" <av...@jakarta.apache.org>
Sent: Thursday, November 14, 2002 12:50 PM
Subject: Re: Question about using container.jar with Tomcat.


> Peter Donald wrote:
>
> >On Thu, 7 Nov 2002 22:52, Leif Mortenson wrote:
> >
> >
> >>Peter,
> >>Thanks, but that patch didn't solve the problem. Even mentioning
> >>framework in the
> >>Extension list throws an error. The error changed to:
> >>
> >>2002-11-07 20:48:01 StandardHost[localhost]: ContainerBase.addChild:
start:
> >>LifecycleException: Missing optional package Extension[avalon-framework]
> >>
> >>
> >
> >Wierd. Can you tell me whether avalon-framework.jar contains the relevent
> >extension declaration in the manifest? (Or even just send us the
manifest).
> >If not then that sthe problem  - if it does then it looks like it may be
a TC
> >bug. There were a few bugs in the extension handling code but I told
Craig -
> >not sure if he fixed them.
> >
> Here is the contents of the avalon-framework.jar manifest.mf Is this
> extension declaration
> correct? It does specify the Extension-Name.
> ----
> Manifest-Version: 1.0
> Created-By: Apache Ant 1.5
> Extension-Name: avalon-framework
> Specification-Vendor: Apache Software Foundation
> Specification-Version: 1.0
> Implementation-Vendor: Apache Software Foundation
> Implementation-Version: 4.1.3
> ----
>
> Cheers,
> Leif
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about using container.jar with Tomcat.

Posted by Leif Mortenson <le...@tanukisoftware.com>.
Peter Donald wrote:

>On Thu, 7 Nov 2002 22:52, Leif Mortenson wrote:
>  
>
>>Peter,
>>Thanks, but that patch didn't solve the problem. Even mentioning
>>framework in the
>>Extension list throws an error. The error changed to:
>>
>>2002-11-07 20:48:01 StandardHost[localhost]: ContainerBase.addChild: start:
>>LifecycleException: Missing optional package Extension[avalon-framework]
>>    
>>
>
>Wierd. Can you tell me whether avalon-framework.jar contains the relevent 
>extension declaration in the manifest? (Or even just send us the manifest). 
>If not then that sthe problem  - if it does then it looks like it may be a TC 
>bug. There were a few bugs in the extension handling code but I told Craig - 
>not sure if he fixed them. 
>
Here is the contents of the avalon-framework.jar manifest.mf Is this
extension declaration
correct? It does specify the Extension-Name.
----
Manifest-Version: 1.0
Created-By: Apache Ant 1.5
Extension-Name: avalon-framework
Specification-Vendor: Apache Software Foundation
Specification-Version: 1.0
Implementation-Vendor: Apache Software Foundation
Implementation-Version: 4.1.3
----

Cheers,
Leif



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about using container.jar with Tomcat.

Posted by Peter Donald <pe...@apache.org>.
On Thu, 7 Nov 2002 22:52, Leif Mortenson wrote:
> Peter,
> Thanks, but that patch didn't solve the problem. Even mentioning
> framework in the
> Extension list throws an error. The error changed to:
>
> 2002-11-07 20:48:01 StandardHost[localhost]: ContainerBase.addChild: start:
> LifecycleException: Missing optional package Extension[avalon-framework]

Wierd. Can you tell me whether avalon-framework.jar contains the relevent 
extension declaration in the manifest? (Or even just send us the manifest). 
If not then that sthe problem  - if it does then it looks like it may be a TC 
bug. There were a few bugs in the extension handling code but I told Craig - 
not sure if he fixed them. 
 
-- 
Cheers,

Peter Donald
 "Man's mind stretched to a new idea never goes back to its original 
dimensions." -Oliver Wendell Holmes 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about using container.jar with Tomcat.

Posted by Leif Mortenson <le...@tanukisoftware.com>.
Peter,
Thanks, but that patch didn't solve the problem. Even mentioning
framework in the
Extension list throws an error. The error changed to:

2002-11-07 20:48:01 StandardHost[localhost]: ContainerBase.addChild: start:
LifecycleException: Missing optional package Extension[avalon-framework]
at
org.apache.catalina.loader.WebappLoader.validatePackages(WebappLoader.java:1244)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:645)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
...

I made the change and committed it. Seems like it should have worked as
you changed
it though.

Cheers,
Leif

Peter Donald wrote:

>On Thu, 7 Nov 2002 15:29, Leif Mortenson wrote:
>  
>
>>I just updated my application to the latest versions of jars from CVS.
>>Due to a change in
>>the component package, the container jar is now required. That is fine
>>but when I deployed
>>my app and tried to start Tomcat, I get the following exception:
>>
>>LifecycleException: Missing optional package Extension[avalon-framework,
>>implementationVersion=4.1.2, specificationVersion=1.0]
>>    
>>
>
>The specificationVersion is not specified in the avalon-framework.jar which is 
>your problem. Catalina tries to match it and fails. The implementation 
>version is also screwy as it requires the exact version 4.1.2 when it should 
>require interface version 4.1.2 or above. I removed these from container 
>package and should be able to work now.
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question about using container.jar with Tomcat.

Posted by Peter Donald <pe...@apache.org>.
On Thu, 7 Nov 2002 15:29, Leif Mortenson wrote:
> I just updated my application to the latest versions of jars from CVS.
> Due to a change in
> the component package, the container jar is now required. That is fine
> but when I deployed
> my app and tried to start Tomcat, I get the following exception:
>
> LifecycleException: Missing optional package Extension[avalon-framework,
> implementationVersion=4.1.2, specificationVersion=1.0]

The specificationVersion is not specified in the avalon-framework.jar which is 
your problem. Catalina tries to match it and fails. The implementation 
version is also screwy as it requires the exact version 4.1.2 when it should 
require interface version 4.1.2 or above. I removed these from container 
package and should be able to work now.

-- 
Cheers,

Peter Donald
---------------------------------------------------
"Wise men don't need advice. Fools don't take it." 
                        -Benjamin Franklin 
--------------------------------------------------- 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>