"Parsing error processing resource path..." ONLY with ServletExec

2002-04-29 Thread Jim Tomlinson

We have a struts webapp packaged as a .war, and we're testing its deployment
on a selection of environments. We've been able to deploy and run it on
WebSphere 4.0.2, WebLogic 6.1, iPlanet 6.0SP2, and JRun 3.1. However, in
ServletExec 4.1 (ISAPI with IIS) the app doesn't run, and we see the output
below in the log (with ActionServlet's debug init-param set to 1). BTW, we
don't use the  elements, so it's something other than the
problem I've seen discussed. Our struts-config.xml loads fine into Struts
Console.

[Mon Apr 29 12:20:40 PDT 2002] ServletExec: Initializing Session Tracking
for virtual server - default
[Mon Apr 29 12:20:40 PDT 2002] ServletExec: Initialized Session Tracking for
virtual server - default
[Mon Apr 29 12:20:41 PDT 2002] ServletExec: Initializing Session Tracking
for virtual server - default, application - OurApp
[Mon Apr 29 12:20:41 PDT 2002] ServletExec: Initialized Session Tracking for
virtual server - default, application - OurApp
[Mon Apr 29 12:20:42 PDT 2002] Unable to initialize
javax.naming.InitialContext using
com.newatlanta.servletexec.InitialContextFactory
[Mon Apr 29 12:20:45 PDT 2002] No languages key in reg$ file
[Mon Apr 29 12:20:45 PDT 2002] languages="de en fr ja"
[Mon Apr 29 12:20:45 PDT 2002] locale changed to en
[Mon Apr 29 12:20:58 PDT 2002] register('-//Apache Software Foundation//DTD
Struts Configuration 1.0//EN', 'jar:file:///f:\Program Files\New
Atlanta\ServletExec ISAPI\ServletExec
Data\default\OurApp\WAR\WEB-INF\lib\f:\Program Files\New Atlanta\ServletExec
ISAPI\ServletExec
Data\default\OurApp\WAR\WEB-INF\lib\struts.jar!/org/apache/struts/resources/
struts-config_1_0.dtd'
[Mon Apr 29 12:20:58 PDT 2002] register('-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN', 'jar:file:///f:\Program Files\New Atlanta\ServletExec
ISAPI\ServletExec Data\default\OurApp\WAR\WEB-INF\lib\f:\Program Files\New
Atlanta\ServletExec ISAPI\ServletExec
Data\default\OurApp\WAR\WEB-INF\lib\struts.jar!/org/apache/struts/resources/
web-app_2_2.dtd'
[Mon Apr 29 12:20:58 PDT 2002] register('-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN', 'jar:file:///f:\Program Files\New Atlanta\ServletExec
ISAPI\ServletExec Data\default\OurApp\WAR\WEB-INF\lib\f:\Program Files\New
Atlanta\ServletExec ISAPI\ServletExec
Data\default\OurApp\WAR\WEB-INF\lib\struts.jar!/org/apache/struts/resources/
web-app_2_3.dtd'
[Mon Apr 29 12:20:58 PDT 2002] resolveEntity('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
[Mon Apr 29 12:20:58 PDT 2002]  Resolving to alternate DTD
'jar:file:///f:\Program Files\New Atlanta\ServletExec ISAPI\ServletExec
Data\default\OurApp\WAR\WEB-INF\lib\f:\Program Files\New Atlanta\ServletExec
ISAPI\ServletExec
Data\default\OurApp\WAR\WEB-INF\lib\struts.jar!/org/apache/struts/resources/
struts-config_1_0.dtd'
[Mon Apr 29 12:20:58 PDT 2002] ServletExec: caught exception -
javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
[Mon Apr 29 12:20:58 PDT 2002] javax.servlet.ServletException: Parsing error
processing resource path /WEB-INF/struts-config.xml
[Mon Apr 29 12:20:58 PDT 2002]  at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java,
Compiled Code)
[Mon Apr 29 12:20:58 PDT 2002]  at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
[Mon Apr 29 12:20:58 PDT 2002]  at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ServletExec.CallServletInit(ServletExec.java:1650
)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ApplServletContext.CreateServlet(ApplServletConte
xt.java:47)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ApplServletContext.loadConfiguredServlet(ApplServ
letContext.java:113)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ApplicationInfo.LoadExternalServlets(ApplicationI
nfo.java, Compiled Code)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ServerHostInfo.LoadExternalServlets(ServerHostInf
o.java, Compiled Code)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ServletExec.LoadExternalServlets(ServletExec.java
, Compiled Code)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ServletExec.Init(ServletExec.java:732)
[Mon Apr 29 12:20:58 PDT 2002]  at
com.newatlanta.servletexec.ServletExec.Init(ServletExec.java:594)
[Mon Apr 29 12:20:59 PDT 2002] ServletExec 4.1.1 initialized
[Mon Apr 29 12:21:38 PDT 2002] javax.servlet.ServletException: Cannot find
ActionMappings or ActionFormBeans collection


Jim Tomlinson
Developer
WRQ, Inc. 
[EMAIL PROTECTED] 

We specialize in integration software and services
that let you quickly adapt your host-intensive environment
to meet new business needs.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Populating a Form with values

2002-01-10 Thread Jim Tomlinson


We've had to deal with an analogous problem, though, which I think is
applicable in a lot of situations. The form is being used to change values
in a persistent store, but when first displaying the form we want to display
those values currently in the store. We've gone the route of having the
session-scope ActionForm's constructor pull the current values from the
store (obviously via a business logic class, rather than in the form
itself). Then when the form is posted, the Action can take the new values
from the ActionForm and persist them (again using another class). Is this
what most people do, or is there a better way?
-- 
Jim Tomlinson

> -Original Message-
> From: Keith Bacon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 7:11 AM
> To: Struts Users Mailing List
> Subject: RE: Populating a Form with values
> 
> 
> I think you've missed the point of form beans.
> On submission of an html form struts looks at the request 
> parameters. If it can find a matching
> set method in the form bean it calls it. ie. the form parms 
> are copied into the form bean.
> 
> When you forward to a jsp with a form struts calls the get 
> methods of the form bean to populate
> the the matching form fields (that have been defined with 
> struts tags).
> 
> You action class can deal with the form variables by calling 
> the same get/set methods of the form
> bean. This saves doing qqq = request.getParameter("qqq"); & 
> testing for nulls etc.
> 
> That's the whole point of form beans - to manage form fields.
> 
> To get readonly data onto your jsp your action class should 
> place it in the request where the jsp
> can get at it easily.
> 
> Keith.
> 
> 
> 
> 
> 
> --- "Witt, Mike (OH35)" <[EMAIL PROTECTED]> wrote:
> > I'm new to struts also, but the way I have been doing it is 
> to set up an
> > action and a form bean in the struts config.  The action 
> code (or some other
> > bean that the action code uses) for getting the data from 
> the database and
> > populating the form using something like
> > (MyForm)form.setField(theFieldData);
> > 
> > Hope this helps.
> > 
> > Mike
> > 
> > -Original Message-
> > From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 10, 2002 9:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: Populating a Form with values
> > 
> > 
> > I am new to struts so be nice (But i have worked with jsp 
> for 2 years).  I 
> > have a form that i need to populate a form with values from 
> the database.  I
> > 
> > pass the form a data_base id to the form but i now need the 
> form to populate
> > 
> > the formbean.  I know how to do this in jsp but i want to 
> do the in the 
> > struts way.
> > 
> > _
> > MSN Photos is the easiest way to share and print your photos: 
> > http://photos.msn.com/support/worldwide.aspx
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Solved: Access to localized messages to build an href

2002-01-08 Thread Jim Tomlinson


Got around it by using the actual locale:

  <%@ page import="org.apache.struts.action.Action" %>

  

  ">Click here
  

I still haven't answered my original question, but it's now moot.

> -----Original Message-
> From: Jim Tomlinson 
> Sent: Monday, January 07, 2002 3:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: Access to localized messages to build an href
> 
> 
> I'm trying to get access to the MessageResources object that, 
> according to
> the docs, is an application scope bean. I need to build an 
> href in this
> manner:
> 
>+
> "/refend.html"%>">Click here
>   
> 
> Of course, this doesn't work (with single quotes, either, as 
> suggested for a
> similar problem on this list). I've worked around it like this:
> 
>   <% MessageResources resources =
>  
> MessageResources.getMessageResources("com.foo.bar.Resources");
>  String locale = resources.getMessage("footer_locale");
>   %>
>   ">Click here
>   
> 
> but I'd like to avoid the scriptlet. What name is the MessageResources
> object registered as in the application scope, so I can use 
> bean:define to
> get at it? Or is there another way to accomplish this without 
> using the
> scriptlet (no, I don't want to put the entire href in the 
> resource file).
> Thanks.
> -- 
> Jim Tomlinson
> [EMAIL PROTECTED]
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Access to localized messages to build an href

2002-01-07 Thread Jim Tomlinson

I'm trying to get access to the MessageResources object that, according to
the docs, is an application scope bean. I need to build an href in this
manner:

   +
"/refend.html"%>">Click here
  

Of course, this doesn't work (with single quotes, either, as suggested for a
similar problem on this list). I've worked around it like this:

  <% MessageResources resources =
 MessageResources.getMessageResources("com.foo.bar.Resources");
 String locale = resources.getMessage("footer_locale");
  %>
  ">Click here
  

but I'd like to avoid the scriptlet. What name is the MessageResources
object registered as in the application scope, so I can use bean:define to
get at it? Or is there another way to accomplish this without using the
scriptlet (no, I don't want to put the entire href in the resource file).
Thanks.
-- 
Jim Tomlinson
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>