geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Wareham <markaware...@gmail.com>
Subject Re: Installing Jars on server
Date Mon, 11 Mar 2013 09:27:17 GMT
Thanks Zhi. That worked.


On Thu, Mar 7, 2013 at 3:14 AM, Zhi Xie <daxiezhi@gmail.com> wrote:

> I guess you needn't to install the jars. You should copy the jars in
> <geronimo-home>\var\shared\lib.
> add a dependency in your deploy plan
>
> <environment>
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.geronimo.configs</groupId>
>             <artifactId>sharedlib</artifactId>
>         </dependency>
>     </dependencies>
>  ...</environment>
>
> or add a gbean in your geronimo-web.xml or geronimo-application.xml
>
>  <gbean name="SharedLib1" class="org.apache.geronimo.system.sharedlib.SharedLib">
>    <attribute name="baseDir">var/shared</attribute>
>         <attribute name="classesDirs">classes</attribute>
>         <attribute name="libDirs">lib</attribute>
>         <reference name="ServerInfo">
>             <name>ServerInfo</name>
>         </reference>
>    </gbean>
>
>
>
> 2013/3/6 Mark Wareham <markawareham@gmail.com>
>
>> Hi,
>>
>> I used the console interface to install the jars. Then added the
>> dependancies to my geronimo-application.xml as described in the
>> documentation and as provided in the editor provided by the geronimo plugin
>> of eclipse.
>>
>>
>> On Wed, Mar 6, 2013 at 7:01 AM, Zhi Xie <daxiezhi@gmail.com> wrote:
>>
>>> Could you show how did you use the sharedlib? I guess maybe there is a
>>> mistake.
>>>
>>>
>>> 2013/3/6 Mark Wareham <markawareham@gmail.com>
>>>
>>>> This is what I have done, allthough with geronimo 2.1 doc.
>>>> On 6 Mar 2013 06:45, "Zhi Xie" <daxiezhi@gmail.com> wrote:
>>>>
>>>>> I guess you shared libraries feature would fit your case. Please refer
>>>>> to the instruction here.
>>>>> https://cwiki.apache.org/GMOxDOC30/using-shared-libraries-in-your-applications.html
>>>>> .
>>>>>
>>>>>
>>>>> 2013/3/4 Mark Wareham <markawareham@gmail.com>
>>>>>
>>>>>> Geronimo Version 2.1.4
>>>>>>
>>>>>> Hi I'm trying to move some jars contained within the lib folder of
an
>>>>>> EAR to the server. I installed them all in the repository using the
>>>>>> console, then added the dependancies to the geronimo-application.xml
but
>>>>>> upon publish I recieve an error java.lang.NoClassDefFoundError:
>>>>>> javax/servlet/Servlet.
>>>>>>
>>>>>> I cant understand what the problem is. I've not left any out, im
only
>>>>>> moving from one location to another.
>>>>>>
>>>>>> Some help would be appreciated.
>>>>>>
>>>>>>
>>>>>> The jars I was trying to move were:
>>>>>> antlr-2.7.6.jar
>>>>>> axis.jar
>>>>>> commons-beanutils.jar
>>>>>> commons-collections-3.2.jar
>>>>>> commons-digester.jar
>>>>>> commons-discovery-0.2.jar
>>>>>> commons-io-2.0.1.jar
>>>>>> commons-lang3-3.1.jar
>>>>>> commons-logging.jar
>>>>>> commons-validator.jar
>>>>>> dom4j-1.6.1.jar
>>>>>> hibernate3.jar
>>>>>> javassist-3.9.0.GA.jar
>>>>>> jaxen-core.jar
>>>>>> jaxen-jdom.jar
>>>>>> jdom.jar
>>>>>> json-simple-1.1.1.jar
>>>>>> kaptcha-2.3-jdk14.jar
>>>>>> saaj.jar
>>>>>> sax.jar
>>>>>> saxpath.jar
>>>>>> slf4j-api-1.5.2.jar
>>>>>> slf4j-log4j12-1.5.2.jar
>>>>>> sqljdbc4.jar
>>>>>> struts.jar
>>>>>> webserviceutils.jar
>>>>>> wsdl4j.jar
>>>>>>
>>>>>> Many thanks, Mark.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards
>>>>> Gary
>>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards
>>> Gary
>>>
>>
>>
>
>
> --
> Best Regards
> Gary
>

Mime
View raw message