You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wayland Chan <in...@yahoo.com> on 2001/02/22 17:48:50 UTC

Struts in Websphere, missing resources attribute...

Hello,

I've been trying to get Struts to work in Websphere
and am running into problems.

I've been following Richard Backhouse's instructions
(http://archive.covalent.net/jakarta/struts-user/2000/10/0392.xml)
and I'm getting the infamous missing resources
error....

Missing resources attribute
org.apache.struts.action.MESSAGE
error.

I've noticed that Websphere's 'Convert a War File'
task, it doesn't seem to create the webapp as you'd
expect. ie. I have no WEB-INF/lib or WEB-INF/classes
directories as I'd expect within the webapp. I can
assume this is because WAS' doesn't support WAR files.

One thing I couldn't do according to Richard's
instructions was changing WAS' classpath in
admin.config or adminserver.bat/sh. admin.config
didn't seem to have a general classpath to modify and
I don't have the adminserver.bat/sh files in my 3.5
installation. I do have setenv.bat which I've modified
to add the jaxp.jar, crimson.jar, xalan.jar to the
classpath.

Anyone tackle this problem yet?

Thanks,

Wayland Chan


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

Re: Struts in Websphere, missing resources attribute...

Posted by rb...@oakgrovesoftware.com.
Make sure that you don't put the struts.jar in the admin.config or 
adminserver script classpath. Just put it in the war file at 
WEB-INF/lib.

Have you tried converting the struts-example war ?

Quoting Wayland Chan <in...@yahoo.com>:

> Sorry, I should have mentioned that I'm using Struts
> 0.5 and WAS 3.5.2
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices!
> http://auctions.yahoo.com/
> 

Re: Struts in Websphere, missing resources attribute...

Posted by Ted Husted <ne...@husted.com>.
Were the instructions here 

< http://jakarta.apache.org/struts/installation-was.html >

any help?

Wayland Chan wrote:
> 
> Sorry, I should have mentioned that I'm using Struts
> 0.5 and WAS 3.5.2
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

Re: Struts in Websphere, missing resources attribute...

Posted by Wayland Chan <in...@yahoo.com>.
Sorry, I should have mentioned that I'm using Struts
0.5 and WAS 3.5.2



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

Re: Struts in Websphere, missing resources attribute...

Posted by rb...@oakgrovesoftware.com.
My instructions were for installing struts 0.5. If you are using Struts
1.0 then I understand there are some complications with the change to using
struts-config.xml instead of action.xml. Specifically struts-config.xml now
uses a dtd and the websphere classloader has problems finding the dtd. I 
haven't actually tried struts 1.0 with websphere so I can't tell you definitely
that that is the only problem. I think some other people have worked around this
issue so I would continue to seach through the archives.

On the issue of the convert war tool the reason you don't see the same directory
structure as in the war file is because the convert tool converts to websphere
format which is different. The tool should set up the correct classpaths and
document paths that websphere understands.

FYI WebSphere 4.0 will support wars (ears, ejb-jars etc) natively as it will be
j2ee compliant. Hopefully it will be out in the summer.

Richard

Quoting Wayland Chan <in...@yahoo.com>:

> 
> Hello,
> 
> I've been trying to get Struts to work in Websphere
> and am running into problems.
> 
> I've been following Richard Backhouse's instructions
> (http://archive.covalent.net/jakarta/struts-user/2000/10/0392.xml)
> and I'm getting the infamous missing resources
> error....
> 
> Missing resources attribute
> org.apache.struts.action.MESSAGE
> error.
> 
> I've noticed that Websphere's 'Convert a War File'
> task, it doesn't seem to create the webapp as you'd
> expect. ie. I have no WEB-INF/lib or WEB-INF/classes
> directories as I'd expect within the webapp. I can
> assume this is because WAS' doesn't support WAR files.
> 
> One thing I couldn't do according to Richard's
> instructions was changing WAS' classpath in
> admin.config or adminserver.bat/sh. admin.config
> didn't seem to have a general classpath to modify and
> I don't have the adminserver.bat/sh files in my 3.5
> installation. I do have setenv.bat which I've modified
> to add the jaxp.jar, crimson.jar, xalan.jar to the
> classpath.
> 
> Anyone tackle this problem yet?
> 
> Thanks,
> 
> Wayland Chan
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices!
> http://auctions.yahoo.com/
> 

Re: Struts in Websphere, missing resources attribute...

Posted by Wayland Chan <in...@yahoo.com>.
I've found the adminserver.bat and changed the
classpath to include jaxp.jar, crimson.jar, xalan.jar
(and what the hell, struts.jar for the hell of it
too).

I'm noticing in my Admin Console the following error:

2/22/01 12:10 PM : AUDIT [daytona/Default Server]:
SRVE0092I: [Servlet LOG]: "database: Database load
exception": org.xml.sax.SAXNotRecognizedException:
Feature: http://xml.org/sax/features/raw-names

So the missing resources error isn't really valid in
this sense as my struts-example webapp hasn't started properly.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/