You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by pierre jauffret <pi...@caramail.com> on 2002/07/05 20:22:57 UTC

Re[2] Trouble loading struts-config.xml : Not Registrated, use system Identifier

Thank you for your so quick response ,

Well, i tried your solution by placing the dtds in my 
classpath : but it didn't work at first.

so i changed in the struts-config.xml file the DOCTYPE: 

the original one:
<!DOCTYPE struts-config PUBLIC
 "-//Apache Software Foundation//DTD Struts 
Configuration 1.0//EN"
 "http://jakarta.apache.org/struts/dtds/struts-
config_1_0.dtd">

my new one :
<!DOCTYPE struts-config PUBLIC
 "-//Apache Software Foundation//DTD Struts 
Configuration 1.0//EN"
 "file:///C:/Program Files/IBM/VisualAge for 
Java/ide/project_resources/IBM WebSphere Test 
Environment/hosts/default_host/struts_app/WEB-
INF/org/apache/struts/resources/struts-config_1_0.dtd">

And now, when loading Action servlet, I get in my stack 
trace :

[02.07.05 17:59:27:234 GMT+02:00] 369a CacheManager A 
Servlet.cache.file."/dynacache.xml".not.found.Caching.is.dis
abled
[02.07.05 17:59:27:390 GMT+02:00] 369a ServletInstan A 
SRVE0048I: Chargement du servlet : "action"
[02.07.05 17:59:28:421 GMT+02:00] 369a WebGroup A 
SRVE0091I: [Servlet LOG] : "action: init"
[02.07.05 17:59:28:562 GMT+02:00] 369a WebGroup A 
SRVE0091I: [Servlet LOG] : "action: Loading application 
resources from resource ApplicationResources"
[02.07.05 17:59:28:562 GMT+02:00] 369a WebGroup A 
SRVE0091I: [Servlet LOG] : "action: Initializing 
configuration from resource path /WEB-INF/struts-
configCanal.xml"
resolveEntity('-//Apache Software Foundation//DTD Struts 
Configuration 1.0//EN', 'file:///C:/Program 
Files/IBM/VisualAge for Java/ide/project_resources/IBM 
WebSphere Test 
Environment/hosts/default_host/struts_app/WEB-
INF/org/apache/struts/resources/struts-config_1_0.dtd')
 Not registered, use system identifier
register('-//Apache Software Foundation//DTD Struts 
Configuration 1.0//EN', 'valoader:/C:/Program 
Files/IBM/VisualAge for 
Java/ide/project_resources/Struts/org/apache/struts/resource
s/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 
2.2//EN', 'valoader:/C:/Program Files/IBM/VisualAge for 
Java/ide/project_resources/Struts/org/apache/struts/resource
s/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN', 'valoader:/C:/Program Files/IBM/VisualAge for 
Java/ide/project_resources/Struts/org/apache/struts/resource
s/web-app_2_3.dtd'
resolveEntity('-//Sun Microsystems, Inc.//DTD Web 
Application 2.2//EN', 'http://java.sun.com/j2ee/dtds/web-
app_2_2.dtd')
 Resolving to alternate DTD 'valoader:/C:/Program 
Files/IBM/VisualAge for 
Java/ide/project_resources/Struts/org/apache/struts/resource
s/web-app_2_2.dtd'
Call 
org.apache.struts.action.ActionServlet.addServletMapping
(action/java.lang.String,*.do/java.lang.String)
[02.07.05 17:59:32:578 GMT+02:00] 369a WebGroup A 
SRVE0091I: [Servlet LOG] : "action: Process 
servletName=action, urlPattern=*.do"
etc.........
***Moteur de servlet lancé***


SO it starts well I guess!


But when I navigate in the demo struts site, I've got a 
Invalid Path error in the Struts-config.xml file, even if 
the path really exists in the file:


Error 400
Une erreur s'est produite lors du traitement de la 
demande :http://localhost:8080/struts/editRegistration.do
Message : Invalid path /editRegistration was requested

Servlet cible : action
Traçage de pile : 
------------------------------------------------------------
--------------------
Erreur root -1: Invalid path /editRegistration was requested

com.ibm.servlet.engine.webapp.WebAppErrorReport: Invalid 
path /editRegistration was requested
	java.lang.Throwable(java.lang.String)
	java.lang.Exception(java.lang.String)
	javax.servlet.ServletException(java.lang.String)
	com.ibm.websphere.servlet.error.ServletErrorReport
(java.lang.String)
	com.ibm.servlet.engine.webapp.WebAppErrorReport
(java.lang.String)
	void 
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendE
rror(int, java.lang.String)
	void org.apache.struts.action.ActionServlet.process
(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse)


I think the ActionServlet see the Struts-config.xml file 
but it might have a trouble parsing it (but I don't see any 
parsing error)

Do you have any idea?
thanks in advance.

Pierre Jauffret from Paris






> -------Message d'origine-------
> De : "Adolfo Miguelez" <pe...@hotmail.com>
> Date : 05/07/102 12:34:44
> 
> Hi, I run in the same issue in the begining.
> 
> For some reasons, if you find out why, please let me 
know, VAJ VM is no able 
> to get the file from
> 'http://jakarta.apache.org/struts/dtds/struts-
config_1_0.dtd'
> 
> I read some where that under firewalls there are trobles.
> 
> What I did was placing an alternatives dtd somewhere in 
your classpath, e.g. 
> in the resources of your struts application in VAJ under 
the path
> 
> org/apache/struts/resources/struts-config_1_0.dtd
> org/apache/struts/resources/web-app_2_2.dtd
> org/apache/struts/resources/web-app_2_3.dtd
> 
> 
> After trying to find DTD from network, loader will look 
for it in 
> alternative pathes, i.e. classpath:
> 
> Adolfo
> 
> >From: pierre jauffret 
> >Reply-To: "Struts Users Mailing List" 
> >To: struts-user@jakarta.apache.org
> >Subject: Trouble loading struts-config.xml : Not 
Registrated, use system 
> >Identifier
> >Date: Fri, 05 Jul 2002 12:02:40 GMT+1
> >
> >Hello,
> >I would like to integrate Struts in VisualAge V4.
> >I am using Xerces 2.0.1 (which must contain JAXP1.1).
> >
> >When I launch the ServletEngine, I got an exception 
coming
> >from Action Servlet during init()
> >
> >Here is the stack trace below :
> >Does anyone encouter this before? Any solution?
> >Thanks?
> >
> >Pierre Jauffret
> >
> >
> >
> >
> >
> >[02.07.05 11:39:00:984 GMT+02:00] 6631 ServletInstan A
> >SRVE0048I: Chargement du servlet : "action"
> >[02.07.05 11:39:01:828 GMT+02:00] 6631 WebGroup A
> >SRVE0091I: [Servlet LOG] : "action: init"
> >[02.07.05 11:39:01:937 GMT+02:00] 6631 WebGroup A
> >SRVE0091I: [Servlet LOG] : "action: Loading application
> >resources from resource ApplicationResources"
> >[02.07.05 11:39:01:953 GMT+02:00] 6631 WebGroup A
> >SRVE0091I: [Servlet LOG] : "action: Initializing
> >configuration from resource path ../Ressource/struts-
> >config.xml"
> >resolveEntity('-//Apache Software Foundation//DTD Struts
> >Configuration
> >1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-
> >config_1_0.dtd')
> > Not registered, use system identifier
> >[02.07.05 11:39:49:000 GMT+02:00] 6631 ServletInstan X
> >Uncaught init() exception thrown by servlet {0}: {1}
> > "action"
> >
> >javax.servlet.UnavailableException: Input/output error
> >reading configuration from resource
> >path ../Ressource/struts-config.xml
> >	java.lang.Throwable(java.lang.String)
> >	java.lang.Exception(java.lang.String)
> >	javax.servlet.ServletException(java.lang.String)
> >	javax.servlet.UnavailableException(java.lang.String)
> >	void org.apache.struts.action.ActionServlet.init()
> >	void javax.servlet.GenericServlet.init
> >(javax.servlet.ServletConfig)
> >	void
> 
>com.ibm.servlet.engine.webapp.StrictServletInstance.doInit
()
> >	void
> 
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init
> >(javax.servlet.ServletConfig)
> >	void
> 
>com.ibm.servlet.engine.webapp.PreInitializedServletState.in
i
> >t(com.ibm.servlet.engine.webapp.StrictLifecycleServlet,
> >javax.servlet.ServletConfig)
> >	void
> >com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init
> >(javax.servlet.ServletConfig)
> >	void
> >com.ibm.servlet.engine.webapp.ServletInstance.init()
> >	void javax.servlet.GenericServlet.init
> >(javax.servlet.ServletConfig)
> >	void
> >com.ibm.servlet.engine.webapp.ServletManager.addServlet
> >(java.lang.String, javax.servlet.Servlet,
> >java.util.Properties)
> >	void
> 
>com.ibm.servlet.engine.webapp.WebAppServletManager.loadServ
l
> >et(java.lang.String)
> >	void
> 
>com.ibm.servlet.engine.webapp.WebAppServletManager.loadAuto
L
> >oadServlets()
> >	void
> >com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
> >	void com.ibm.servlet.engine.webapp.WebApp.init
> >(com.ibm.servlet.engine.config.WebAppInfo,
> >com.ibm.servlet.engine.webapp.WebAppContext)
> >	void com.ibm.servlet.engine.srt.WebGroup.loadWebApp
> >()
> >	void com.ibm.servlet.engine.srt.WebGroup.init
> >(com.ibm.servlet.engine.ServletHost,
> >com.ibm.servlet.engine.config.WebGroupInfo)
> >	void
> >com.ibm.servlet.engine.ServletHost.loadWebGroups()
> >	void com.ibm.servlet.engine.ServletHost.init
> >(com.ibm.servlet.engine.ServletEngine,
> >com.ibm.servlet.engine.config.ServletHostInfo)
> >	void
> >com.ibm.servlet.engine.ServletEngine.loadServletHosts()
> >	void com.ibm.servlet.engine.ServletEngine.init
> >(com.ibm.servlet.engine.config.ServletEngineInfo)
> >	com.ibm.servlet.engine.ServletEngine
> >com.ibm.servlet.engine.ServletEngine.getEngine()
> >	void
> 
>com.ibm.ivj.control.node.ServletEngineRunner.startServletEn
g
> >ine(boolean)
> >	boolean
> >com.ibm.ivj.control.node.ServletEngineRunner.startServer
()
> >	void
> >com.ibm.ivj.control.node.ServletEngineRunner.main
> >(java.lang.String [])
> >	java.lang.Object java.lang.reflect.Method.invoke
> >(java.lang.Object, java.lang.Object [])
> >
> >
> >
> >______________________________________________________
> >Boîte aux lettres - Caramail - http://www.caramail.com
> >
> >>
> >--
> >To unsubscribe, e-mail: 
> >
> >For additional commands, e-mail: 
> >
> 
> 
> 
> 
> 
> 
> Adolfo's signature
> 
> 
> Adolfo Rodriguez Miguelez
> 
> 
> 
> 
> 

_________________________________________________________ 
Envoyez des messages musicaux sur le portable de vos amis 
 http://mobile.lycos.fr/mobile/local/sms_musicaux/