struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vigneswar <vigneswa...@gmail.com>
Subject Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
Date Fri, 08 Feb 2008 13:47:10 GMT

Hey Randy,
             It is not a problem with the web-app. There is a firewall block
in my proxy server. So, I couldn't connect outside my network.
At the same time, it looks crazy as it works for Struts 1.1 DTD.
             As a temporary fix, I have provided my local machine path for
the DTD. I'm not facing the ConnectException now.
            My whole idea is migration from Struts 1.1 to Struts 2.0.11. The
configuration setup is over.
When the application is loaded, it shows the old( struts 1.1) flows properly
but the new Struts2.0.11 flows take me to "404" page. 
             To add some more valuye to my question : 
I have struts-config.xml as well as struts.xml under the WEB-INF folder.
Also, the web.xml is holding the normal configuration details for both.
In old JSP, I'm providing action="/HelloWorld" in the html:link tag but when
I click the link it shows "404" page.
             Kindly, let me know if there is a problem in any of my
configuration/setup

Regards,
Vigneswar Nagarathinam           

Randy Burgess-3 wrote:
> 
> I just noticed another thing, you are using the 2.3 DTD, I'm using the 2.4
> XSD.
> 
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
> 
> I would use the 2.4 XSD.
> 
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
> 
> 
> 
>> From: Vigneswar <vigneswardn@gmail.com>
>> Reply-To: Struts Users Mailing List <user@struts.apache.org>
>> Date: Tue, 5 Feb 2008 21:15:38 -0800 (PST)
>> To: <user@struts.apache.org>
>> Subject: Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException
>> 
>> 
>> Randy,
>> here is my web.xml
>> 
>> <!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 & Regards.
>> Vigneswar Nagarathinam
>> 
>> 
>> Randy Burgess-3 wrote:
>>> 
>>> We need to see your web.xml. I'm running Struts 2 projects on WebLogic
>>> 9.2
>>> without any problems.
>>> 
>>> Regards,
>>> Randy Burgess
>>> Sr. Web Applications Developer
>>> Nuvox Communications
>>> 
>>> 
>>> 
>>>> From: Vigneswar Nagarathinam <vigneswardn@gmail.com>
>>>> Reply-To: Struts Users Mailing List <user@struts.apache.org>
>>>> Date: Tue, 5 Feb 2008 17:09:23 +0530
>>>> To: <user@struts.apache.org>
>>>> Subject: Struts 2 and Weblogic 9.2 - java.net.ConnectException
>>>> 
>>>> Hi All,
>>>>         I'm trying to implement Struts2 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.loadConfig
>>>> ur
>>>> ationFiles
>>>> (XmlConfigurationProvider.java:835)
>>>>         at
>>>> 
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>>> t>
>>> s
>>>> (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.loadConfig
>>>> ur
>>>> ationFiles
>>>> (XmlConfigurationProvider.java:830)
>>>>         at
>>>> 
>>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocumen
>>> t>
>>> s
>>>> (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>
>>>> 
>>>> Thanks in advance,
>>>> Vigneswar Nagarathinam
>>> 
>>> 
>>> 
>>> This email and any attachments ("Message") may contain legally
>>> privileged
>>> and/or confidential information.  If you are not the addressee, or if
>>> this
>>> Message has been addressed to you in error, you are not authorized to
>>> read, copy, or distribute it, and we ask that you please delete it
>>> (including all copies) and notify the sender by return email.  Delivery
>>> of
>>> this Message to any person other than the intended recipient(s) shall
>>> not
>>> be deemed a waiver of confidentiality and/or a privilege.
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>> 
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Struts-2-and-Weblogic-9.2---java.net.ConnectException-tp
>> 15288395p15305654.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
> 
> 
> 
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information.  If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to
> read, copy, or distribute it, and we ask that you please delete it
> (including all copies) and notify the sender by return email.  Delivery of
> this Message to any person other than the intended recipient(s) shall not
> be deemed a waiver of confidentiality and/or a privilege.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-2-and-Weblogic-9.2---java.net.ConnectException-tp15288395p15355492.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message