You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Joerg Buchberger (JIRA)" <ji...@apache.org> on 2005/06/14 14:22:51 UTC
[jira] Created: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
---------------------------------------------------------------------
Key: AXIS2-27
URL: http://issues.apache.org/jira/browse/AXIS2-27
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Components: deployment
Environment: winXP SP2
sun java 1.4.2_04
tomcat 4.1.30-LE-jdk14
axis-M2-bin-zip's axis2.war
Reporter: Joerg Buchberger
Assigned to: Davanum Srinivas
- axis2 web application was unavailable on my local tomcat after deployment
- see error messages and a fix (works for me) below
tomcats error messages:
====================
2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
java.net.ConnectException: Connection refused: connect
local fix:
======
--- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
+++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
-Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
Posted by "Joerg Buchberger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-27?page=comments#action_12313687 ]
Joerg Buchberger commented on AXIS2-27:
---------------------------------------
Note, that JIRA seemingly swallowed the tab character at beginning of line 2 and 3 of the doctype-tag as suggested by Sun's DTD in my previous comment.
> web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
> ---------------------------------------------------------------------
>
> Key: AXIS2-27
> URL: http://issues.apache.org/jira/browse/AXIS2-27
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: winXP SP2
> sun java 1.4.2_04
> tomcat 4.1.30-LE-jdk14
> axis-M2-bin-zip's axis2.war
> Reporter: Joerg Buchberger
> Assignee: Davanum Srinivas
>
> - axis2 web application was unavailable on my local tomcat after deployment
> - see error messages and a fix (works for me) below
> tomcats error messages:
> ====================
> 2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
> 2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
> 14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
> java.net.ConnectException: Connection refused: connect
> local fix:
> ======
> --- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
> +++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
> @@ -1,7 +1,8 @@
> <?xml version="1.0" encoding="ISO-8859-1"?>
> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> -Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<!DOCTYPE web-app
> + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> + "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
Posted by "Joerg Buchberger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-27?page=comments#action_12313686 ]
Joerg Buchberger commented on AXIS2-27:
---------------------------------------
I'm not sure either. Tomcat-4.1.30-LE on JRE-1.4.2_04 reported a parsing error in the doctype-tag.
So I just took an equivalent, but working doctype-tag from my tomcats own master web.xml and used it to replace axis2-M2's web.xml.
But you can just as well, simply add a space (0x20 - the linebreak did not matter) in the original doctype-tag in between "Web" and "Application" to fix it - I just verified that now.
Note, that my tomcat was using crimson as parser. Don't know what parser tomcat 5 is using, and how and why it behaves different in this respect. Someone more familiar with the relevant specs might be able to tell, whether this is a parser issue or an error in the document.
Sun suggests the following form in http://java.sun.com/dtd/web-app_2_3.dtd :
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
I'd suggest using that, in favor of any users, that happen to try to run axis2.war on a somehow unlucky environment ... ;-)
> web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
> ---------------------------------------------------------------------
>
> Key: AXIS2-27
> URL: http://issues.apache.org/jira/browse/AXIS2-27
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: winXP SP2
> sun java 1.4.2_04
> tomcat 4.1.30-LE-jdk14
> axis-M2-bin-zip's axis2.war
> Reporter: Joerg Buchberger
> Assignee: Davanum Srinivas
>
> - axis2 web application was unavailable on my local tomcat after deployment
> - see error messages and a fix (works for me) below
> tomcats error messages:
> ====================
> 2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
> 2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
> 14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
> java.net.ConnectException: Connection refused: connect
> local fix:
> ======
> --- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
> +++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
> @@ -1,7 +1,8 @@
> <?xml version="1.0" encoding="ISO-8859-1"?>
> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> -Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<!DOCTYPE web-app
> + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> + "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
Posted by "Srinath Perera (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-27?page=all ]
Srinath Perera resolved AXIS2-27:
---------------------------------
Resolution: Fixed
Fixed. Thanks Ajith
> web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
> ---------------------------------------------------------------------
>
> Key: AXIS2-27
> URL: http://issues.apache.org/jira/browse/AXIS2-27
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: winXP SP2
> sun java 1.4.2_04
> tomcat 4.1.30-LE-jdk14
> axis-M2-bin-zip's axis2.war
> Reporter: Joerg Buchberger
> Assignee: Ajith Harshana Ranabahu
>
> - axis2 web application was unavailable on my local tomcat after deployment
> - see error messages and a fix (works for me) below
> tomcats error messages:
> ====================
> 2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
> 2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
> 14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
> java.net.ConnectException: Connection refused: connect
> local fix:
> ======
> --- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
> +++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
> @@ -1,7 +1,8 @@
> <?xml version="1.0" encoding="ISO-8859-1"?>
> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> -Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<!DOCTYPE web-app
> + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> + "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
Posted by "Srinath Perera (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-27?page=all ]
Srinath Perera reassigned AXIS2-27:
-----------------------------------
Assign To: Ajith Harshana Ranabahu (was: Davanum Srinivas)
> web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
> ---------------------------------------------------------------------
>
> Key: AXIS2-27
> URL: http://issues.apache.org/jira/browse/AXIS2-27
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: winXP SP2
> sun java 1.4.2_04
> tomcat 4.1.30-LE-jdk14
> axis-M2-bin-zip's axis2.war
> Reporter: Joerg Buchberger
> Assignee: Ajith Harshana Ranabahu
>
> - axis2 web application was unavailable on my local tomcat after deployment
> - see error messages and a fix (works for me) below
> tomcats error messages:
> ====================
> 2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
> 2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
> 14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
> java.net.ConnectException: Connection refused: connect
> local fix:
> ======
> --- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
> +++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
> @@ -1,7 +1,8 @@
> <?xml version="1.0" encoding="ISO-8859-1"?>
> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> -Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<!DOCTYPE web-app
> + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> + "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-27?page=comments#action_12313679 ]
Ajith Harshana Ranabahu commented on AXIS2-27:
----------------------------------------------
I am not sure what the fix is. An extra line break ? Note however that this WAR was tested with Tomcat 5.0
> web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
> ---------------------------------------------------------------------
>
> Key: AXIS2-27
> URL: http://issues.apache.org/jira/browse/AXIS2-27
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: winXP SP2
> sun java 1.4.2_04
> tomcat 4.1.30-LE-jdk14
> axis-M2-bin-zip's axis2.war
> Reporter: Joerg Buchberger
> Assignee: Davanum Srinivas
>
> - axis2 web application was unavailable on my local tomcat after deployment
> - see error messages and a fix (works for me) below
> tomcats error messages:
> ====================
> 2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
> 2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
> 14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
> java.net.ConnectException: Connection refused: connect
> local fix:
> ======
> --- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
> +++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
> @@ -1,7 +1,8 @@
> <?xml version="1.0" encoding="ISO-8859-1"?>
> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> -Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<!DOCTYPE web-app
> + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> + "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS2-27) web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
Posted by "Joerg Buchberger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-27?page=comments#action_12313585 ]
Joerg Buchberger commented on AXIS2-27:
---------------------------------------
sorry folks, forgot to change the
PRIORITY
when submitting this issue to
MINOR
> web.xml contained in M2-bin-zip's axis2.war caused tomcat parse error
> ---------------------------------------------------------------------
>
> Key: AXIS2-27
> URL: http://issues.apache.org/jira/browse/AXIS2-27
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: deployment
> Environment: winXP SP2
> sun java 1.4.2_04
> tomcat 4.1.30-LE-jdk14
> axis-M2-bin-zip's axis2.war
> Reporter: Joerg Buchberger
> Assignee: Davanum Srinivas
>
> - axis2 web application was unavailable on my local tomcat after deployment
> - see error messages and a fix (works for me) below
> tomcats error messages:
> ====================
> 2005-06-14 12:09:47 ContextConfig[/axis2] Parse error in application web.xml
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Occurred at line 4 column -1
> 2005-06-14 12:09:47 ContextConfig[/axis2]: Marking this application unavailable due to previous error(s)
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding random number generator class java.security.SecureRandom
> 2005-06-14 12:09:47 StandardManager[/axis2]: Seeding of random number generator has been completed
> 2005-06-14 12:09:47 StandardContext[/axis2]: Context startup failed due to previous errors
> 14.06.2005 12:09:47 org.apache.commons.digester.Digester fatalError
> SCHWERWIEGEND: Parse Fatal Error at line 4 column -1: Externe Entität nicht gefunden: "http://java.sun.com/dtd/web-app_2_3.dtd"
> java.net.ConnectException: Connection refused: connect
> local fix:
> ======
> --- z:\scratch-base\axis\java\modules\core\conf\web.xml Thu Jun 02 11:23:57 2005
> +++ c:\Programme\Java\Tomcat-4.1\webapps\axis2\WEB-INF\web.xml Tue Jun 14 13:22:21 2005
> @@ -1,7 +1,8 @@
> <?xml version="1.0" encoding="ISO-8859-1"?>
> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> -Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<!DOCTYPE web-app
> + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> + "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira