Thomas,
Thanks so much! That did the trick.
Just one thing: I had to replace the jar file in
${catalina_home}/common/lib as well as webapps/webswamp/WEB-INF/lib. I
think this is because I installed using the tgz source, and
install-webswamp.sh/build.xml(install-tomcat) puts things in the common
directory too.
Thanks again!
Don
Thomas Schmidt wrote:
> Don Barber schrieb:
>> Hi there.
>>
>> I am trying to install swamp on Tomcat 5.5.23 on CentOS 4.5.
>>
>> After installing the latest version of swamp, 1.5.7, I get the following
>> when I try to access /webswamp/swamp/
>>
>> exception
>>
>> java.lang.NullPointerException
>> org.apache.turbine.Turbine.doGet(Turbine.java:869)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>> I've tried to do my due-diligence on this; I've read
>> http://en.opensuse.org/Swamp/KnownIssues but log files are writing fine.
>> I've also made sure no -security options are set, etc.
>>
>> So I tried installing older versions of swap and found that 1.5.3 works
>> great; but 1.5.4 does not. I then started checking out revisions from
>> subversion in order to narrow down the problem. The error is introduced
>> with revision #370. Specifically when this line was added to Data.java:
>>
>> I18n i18n = new I18n(getClass(), "de.suse.swamp.i18n.Core");
>>
>> Why this would cause an error I do not know; my java knowledge is not
>> strong enough. Perhaps it has something to do with this stacktrace
>> error from catalina.out?
>>
>> 19.09 12:46:00 [ERROR] StandardWrapper.Throwable
>> java.lang.IllegalAccessError: tried to access field
>> de.suse.swamp.i18n.Core_en.table from class de.suse.swamp.i18n.Core_en$1
>> at de.suse.swamp.i18n.Core_en$1.instinit$(Core_en.java)
>> at de.suse.swamp.i18n.Core_en$1.<init>(Core_en.java)
>> at de.suse.swamp.i18n.Core_en.getKeys(Core_en.java)
>> at org.xnap.commons.i18n.I18n.setResources(I18n.java:119)
>> at org.xnap.commons.i18n.I18n.setResources(I18n.java:143)
>> at org.xnap.commons.i18n.I18n.<init>(I18n.java:97)
>> at de.suse.swamp.util.I18n.loadI18n(I18n.java:57)
>> at de.suse.swamp.util.I18n.<init>(I18n.java:49)
>> at de.suse.swamp.core.data.Data.<init>(Data.java:44)
>> at
>> de.suse.swamp.core.data.DatasetTemplate.<init>(DatasetTemplate.java:51)
>> at
>> de.suse.swamp.core.container.WorkflowXMLReader$WorkflowHandler.startElement(WorkflowXMLReader.java:662)
>> at
>> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>> <snip>
>>
>> Does anyone have any ideas? Am I missing something in my tomcat config?
>> Any assistance is greatly appreciated. Thanks!
>
> Hi Don, this looks like a classloader issue to me. Could you delete the
> gettext-commons lib
> from webapps/webswamp/WEB-INF/lib, and replace that from common/lib with
> this one:
> https://swamp.svn.sourceforge.net/svnroot/swamp/trunk/swamp/lib/gettext-commons-0.9.1.jar
> and try again?
>
> Greetings
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
swamp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swamp-devel
http://swamp.sf.net