struts jar file problem

struts jar file problem

hi.. I'm using struts-core-1.3.9.jar. it works well if am using ma application with internet but it shows me an error while initializing ActionServlet when i disconnected to Internet The error stack trace is as follows...

WARNING:   Resource org/apache/struts/action/ActionResources_en_US.properties Not Found.
Jan 10, 2011 4:30:08 PM org.apache.struts.util.PropertyMessageResources loadLocale
WARNING:   Resource org/apache/struts/action/ActionResources_en.properties Not Found.
Jan 10, 2011 4:30:08 PM org.apache.struts.action.ActionServlet initServlet
SEVERE: The /WEB-INF/web.xml was not found.
java.net.SocketException: Network is unreachable
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:525)
    at java.net.Socket.connect(Socket.java:475)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.www.http.HttpClient.New(HttpClient.java:323)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
    at org.apache.commons.digester.Digester.createInputSourceFromURL(Digester.java:1938)
    at org.apache.commons.digester.Digester.resolveEntity(Digester.java:1615)
    at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:107)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:1018)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1192)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.commons.digester.Digester.parse(Digester.java:1765)
    at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1785)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:349)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
    at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:904)
    at org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:495)
    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:619)
Jan 10, 2011 4:30:08 PM org.apache.struts.action.ActionServlet init
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable.  Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: Network is unreachable
    at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1788)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:349)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
    at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:904)
    at org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.java:495)
    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:619)

can u plsssss help me Its very urgent

View Answers

January 10, 2011 at 5:26 PM

Hello Friend,

Is there web.xml inside WEB-INF folder with proper format? Check your whole directory structure.

Thanks


January 10, 2011 at 5:31 PM

Hi,

For more information, visit the following links:

Struts Tutorials

Struts2 Tutorials

Thanks









Related Tutorials/Questions & Answers:
struts jar file problem
struts jar file problem  hi.. I'm using struts-core-1.3.9.jar... is as follows... WARNING: Resource org/apache/struts/action/ActionResources... org.apache.struts.util.PropertyMessageResources loadLocale WARNING: Resource org/apache/struts/action
a problem during add jar file javax.annotation.Resource
a problem during add jar file javax.annotation.Resource   when i use this jar file in my application i got this problem pls tell me about it Access restriction: The type Resource is not accessible due to restriction on required
Advertisements
how to create a jar file for my packages classs - Struts
how to create a jar file for my packages classs  how to create a jar file for my packages classs in struts application .we don't want to see the see the classes other persons
jar file
jar file  steps to create jar file with example
jar file
jar file  jar file where it s used
jar file
jar file  how to create a jar file in java
JAR FILE
JAR FILE  WHAT IS JAR FILE,EXPLAIN IN DETAIL?   A JAR file... and applications. The Java Archive (JAR) file format enables to bundle multiple... link: Jar File Explanation
jar file
jar file  how to run a java file by making it a desktop icon i need complete procedur ..through cmd
Struts 2 problem - Struts
Struts 2 problem  Hello I have a very strange problem. I have an application that we developed in JAVA and the application works ok in Windows... seemed to worked fine, until the user reported to us a problem. After doing
problem:struts code - Struts
problem:struts code  Hi, Am using struts1.2.I wrote a form(dynavalidator form)with validation after completing the form if we press submit its call the action class,in action class i gave forward to same form,the problem is if i
struts---problem with DispatchAction
, This Is Mahesh again...Dispatch Action class exists in jar file struts-extras-1.3.10...struts---problem with DispatchAction  hi this is Mahesh...i'm working.....I hav configured struts-extras 1.3.10 jar but still i'm getting the following
struts problem
struts problem  java.lang.NullPointerException: Module 'null' not found. org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755) org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735
Struts-problem With DispatchAction Class
Struts-problem With DispatchAction Class  hi this is Mahesh...i'm... DispatchAction..I'm using Eclipse ide..I hav configured struts-extras 1.3.10 jar but still...: org/apache/struts/actions/DispatchAction Can any one help me with this problem
validation problem in struts - Struts
validation problem in struts  hi friends... m working on one project using struts framework. so i made a user login form for user authentication...); } } plz help me to correct d user authentication problem
Necessary Jar and War files for struts - Struts
, what are d necessary jar war files for struts to run webapplication.  Necessary Jar files for struts: 1. struts-core-1.3.10.jar 2. struts...: struts-blank-1.3.10.war   Necessary Jar files for struts: 1. struts
Struts problem - Struts
Struts problem  I have a registration form that take input from user and show it on next page when user click on save button it save the input in db, give me some hints to achieve it using struts
struts- login problem - Struts
struts- login problem  Hi all, I am a java developer, I am facing problems with the login application. The application's login page contains fields like username, password and a login button. With this functionality only
struts validation problem - Struts
struts validation problem  i used client side validation in struts 2 .but message will display only on the top of the component.i want to display it on the top of the page ya right side of the component. Que: how to configure
File path for jar file
File path for jar file  Hi Experts, I have created one eclipse... jar file of that application, unfortunately it is giving the error that resource not found for the template file. Also I had tried to get that path from user
problem with cookie - Struts
problem with cookie  struts cookies response - Hii, I am a beginner in struts..Well, I try to add username and group(or whatever) to a cookie but not able to access the cookie value in the next page after submitting the form
JAR File - Swing AWT
JAR File   Is there anybody to solve my problem of not executing the JAR file? I have asked the question previously but I haven't got any answer yet. Please help me
i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
i am getting the problem when i am downloading the pdf file from oracle 10g database  if i created the pdf file from pdf machine,it is storing into datbase and download the pdf file from database. but when i created the pdf file
Necessary Jar and War files for struts - Struts
in lib directory and get all importaint jar files. Copy the struts-blank war file..., I am learning struts , i want to know wat r d necessary jar and war files to run a struts application.Explain Jar and war files  You go an download
struts collection problem in Mozilla
struts collection problem in Mozilla   I used the to get list of records, if records are more than 15-20 then this is not seen properly with vertical scroll bar on Mozilla. Plz help me
struts 2 problem with netbeans - Struts
struts 2 problem with netbeans  i made 1 application in struts2 with netbeans but got one errror like There is no Action mapped for namespace... please give me acton mapping problem solution   Hi Friend, Please
Jar file - Java Beginners
Jar file  Hello this is my second question and i hope atleast i will get answer i bulid a jar file of my project using netbeans but now problem is when i open that jar file in command prompt i got error exception in thread
file download in struts - Struts
an xml file from database.. Everything's going on well... Now what my problem is i...file download in struts  Hello... I've designed an application where i need to download an xml file by creating it... so...i used dom for it.. I
Scrollbar problem with struts <layout:collection>
Scrollbar problem with struts   How activate the vertical scrollbar in struts in mozilla firefox
Struts file downloading - Struts
Struts file downloading  how to download a file when i open a file from popup option like save ,open and cancel file is opened but file content is not showed even i check the file size also and generating excetion like
Problem in integration struts+ spring - Framework
Problem in integration struts+ spring  Problem in integration struts+ spring hi, i am facing problem in integration struts+ spring. I am also using...-INF/struts
Struts file uploading - Struts
Struts file uploading   Hi all, My application I am uploading files using Struts FormFile. Below is the code. NewDocumentForm newDocumentForm = (NewDocumentForm) form; FormFile file
Running Jar file in Windows
Running Jar file in Windows  Running Jar file in Windows
Extract Jar File
Extract Jar File  How to extract jar file?   Hi Please open the command Prompt and to the jar file and write the command jar -xvf JaraFileName.jar
jar file - Java Beginners
jar file  jar file When creating a jar file it requires a manifest... options in jar file. What is Jar File? JAR files are packaged in the zip format  What is Jar File?JAR files are packaged in the zip format making
jar file with html
jar file with html  I have a jar file. On double click it shows an applet page. Please tell me how to connect that applet into html or jsp page
org.apache.commons.collections15.Transformer jar file
org.apache.commons.collections15.Transformer jar file  Dear, Please can you provide me the link for the following jar file: import org.apache.commons.collections15.Transformer; tahnks too much
Creating an executable jar file
Creating an executable jar file  When I try to create jar.exe through CMD, the manifest file created doesn't contain Main-Class attribute, even though it is included in text file used during creation of jar file
How to create a jar file
???   The given code creates a jar file using java. import java.io.*; import...(); System.out.println("Jar File is created successfully."); } catch (Exception ex...How to create a jar file  Hello!!!! I have a project which has
validation problem - Struts
only create object of that bean in that action class problem is that in which name i create my validation xml file on bean name or action class name i also... for this immdiatly  Hi friend, For solving the problem visit to : http
application context file problem
application context file problem  how to configure junit application context file with struts........? it is not finding sessionfactory method
Struts2 Validation Problem - Struts
in the browser having the example of handling the error in struts 2. http... information on Struts 2 visit to : http://www.roseindia.net
Properties File IN Struts - Struts
Properties File IN Struts  Can we break a large property file into small pieces? Suppose we have property file whose size is 64 kb .can we break an eight property file each of size 2kb.how can we manage? Could you provide
File Upload in Struts.
File Upload in Struts.  How to do File Upload in Struts
Code Problem - Struts
values.now i want to insert these 10 row values into databse usinf struts form
Code Problem - Struts
Code Problem  Sir, am using struts for my application.i want to uses session variable value in action class to send that values as parameter to function.ex.when i login into page,i will welcome with corresponding user homepage
Internationalisation problem - Struts
Internationalisation problem  In struts application how can i get telugu characters equivalent to english characters which my form user types. for example if you go to orkut.com to post a scrap,there is one choice box listing
iterator display problem - Struts
friend, Code to help in solving the problem : Iterator Tag
jsp usebean problem - Struts
popupwindow jsp below code run.. ...here iam getting the problem..in the below
java file upload in struts - Struts
java file upload in struts  i need code for upload and download file using struts in flex.plese help me  Hi Friend, Please visit the following links: http://www.roseindia.net/struts/strutsfileupload.shtml http
code problem - Struts
problem its urgent i dont know wht is exact primary key and foriegn key indicate

Ads