Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upgrading to Latest Struts 2 version

 
Himanhsu Yadav
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I am using struts 2 version 2.0.9 on Weblogic 9.2 application server for my project.
I want to upgrade to latest stable version of Struts2. Please tell me the pros and cons of it and how will affect my project?
 
Himanhsu Yadav
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went ahead with upgrading the struts 2 version but getting following error while starting the Weblogic 9.2 server
Unable to load configuration. - Class: java.net.InetAddress
File: InetAddress.java
Method: getAllByName0
Line: 1133 - java/net/InetAddress.java:1133:-1
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at com.boa.ecomm.web.struts.ActionContextReleasingFilterDispatcher.init(ActionContextReleasingFilterDispatcher.java:19)
Truncated. see log file for complete stacktrace
Unable to load zip:C:/bea/weblogic92/samples/domains/workshop/servers/cgServer/tmp/_WL_user/GFOTryEAR/svf33r/war/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml - Class: java.net.InetAddress
File: InetAddress.java
Method: getAllByName0
Line: 1133 - java/net/InetAddress.java:1133:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:909)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
Truncated. see log file for complete stacktrace
struts.apache.org - Class: java.net.InetAddress
File: InetAddress.java
Method: getAllByName0
Line: 1133 - java/net/InetAddress.java:1133:-1
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:904)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)
Truncated. see log file for complete stacktrace
java.net.UnknownHostException: struts.apache.org
at java.net.InetAddress.getAllByName0(InetAddress.java:1133)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:327)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:420)
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you connected to the internet? Usually this problem is caused by the XML parser not being able to look up the DTD of the configuration file. Either connect to the 'net or download the config file DTD and place it in your web application's WEB-INF file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic