This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2.0.11 & Weblogic 9.2  - java.net.ConnectException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2.0.11 & Weblogic 9.2  - java.net.ConnectException " Watch "Struts 2.0.11 & Weblogic 9.2  - java.net.ConnectException " New topic
Author

Struts 2.0.11 & Weblogic 9.2 - java.net.ConnectException

Vigneswar Nagarathinam
Greenhorn

Joined: Feb 05, 2008
Posts: 1
Hi All,
I'm trying to implement Struts2.0.11 with Weblogic 9.2.
I'm getting the following error while running the Weblogic server. Can you please help me by providing a solution:

stack trace:
-------------------
<Feb 5, 2008 3:51:35 PM GMT+05:30> <Error> <HTTP> <BEA-101165> <Could not
load user defined filter in web.xml:
org.apache.struts2.dispatcher.FilterDispatcher.
Class: weblogic.net.http.HttpClient
File: HttpClient.java
Method: openServer
Line: 320 - weblogic/net/http/HttpClient.java:320:-1
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles
(XmlConfigurationProvider.java:835)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments
(XmlConfigurationProvider.java:131)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:130)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:52)
Truncated. see log file for complete stacktrace
Tried all: '1' addresses, but could not connect over HTTP to server: '
struts.apache.org', port: '80' - Class: weblogic.net.http.HttpClient
File: HttpClient.java
Method: openServer
Line: 320 - weblogic/net/http/HttpClient.java:320:-1
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles
(XmlConfigurationProvider.java:830)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments
(XmlConfigurationProvider.java:131)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(
XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(
DefaultConfiguration.java:130)
Truncated. see log file for complete stacktrace
java.net.ConnectException: Tried all: '1' addresses, but could not connect
over HTTP to server: 'struts.apache.org', port: '80'
at weblogic.net.http.HttpClient.openServer(HttpClient.java:320)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:375)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:149)
at weblogic.net.http.HttpClient.New(HttpClient.java:245)
at weblogic.net.http.HttpURLConnection.connect(
HttpURLConnection.java:160)
Truncated. see log file for complete stacktrace>


My Web.xml for referrence:
<!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>
<display-name>Sample Project</display-name>
<description>Sample Project to Work with Struts2.</description>
<context-param>
<param-name>webmaster</param-name>
<param-value>myaddress@mycompany.com</param-value>
<description>
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
</description>
</context-param>
<!-- Filter Mappings -->
<!-- Added for Struts 2 testing - Start -->
<filter>
<filter-name>action2</filter-name>
<filter-class>

org.apache.struts2.dispatcher.FilterDispatcher

</filter-class>
</filter>
<filter-mapping>
<filter-name>action2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Added for Struts 2 testing - End -->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
</web-app>


Thanks in advance,
Vigneswar Nagarathinam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2.0.11 & Weblogic 9.2 - java.net.ConnectException
 
Similar Threads
web.xml problem in struts2
Struts 2.1.8 + Jfree Chart + tomcat 6 + jdk 1.5.0
jboss error please please find it out please
Unable to load file:.../target/apphoio/WEB-INF/classes/struts.xml
Upgrading to Latest Struts 2 version