This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!

amarkirt saroay

Ranch Hand
+ Follow
since Mar 16, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by amarkirt saroay

amarkirt saroay wrote:Hi,
Can anyone please help me with the below error,

Nov 12, 2009 11:38:19 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0
Nov 12, 2009 11:38:19 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Nov 12, 2009 11:38:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 10422 ms
Nov 12, 2009 11:38:19 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 12, 2009 11:38:19 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Nov 12, 2009 11:38:19 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 12, 2009 11:38:22 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Nov 12, 2009 11:38:22 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:23 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:23 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:23 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Nov 12, 2009 11:38:24 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:25 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:25 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:25 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Nov 12, 2009 11:38:26 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 12, 2009 11:38:26 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 12, 2009 11:38:26 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:27 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:27 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:27 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Nov 12, 2009 11:38:28 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 12, 2009 11:38:28 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Nov 12, 2009 11:38:34 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 12, 2009 11:38:34 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestUserSSH] startup failed due to previous errors
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
Nov 12, 2009 11:38:34 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Nov 12, 2009 11:38:35 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 12, 2009 11:38:35 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Nov 12, 2009 11:38:35 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 12, 2009 11:38:35 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15641 ms




Actually my tomcat gets started but i am not able to launch my page.
I looked on some forums which replied to point the path of spring.jar o the 'src' folder but when I download spring.jar compatible with 1.5 or even 1.4 + ,I get so many errors while unzipping it that I am not able to get src for Spring.

Is there any other way to solve this problem?
Please help, I am stuck since 2 days because of this issue

My web.xml looks like



<?xml version="1.0" encoding="UTF-8" ?>
<web-app id="person" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>person</display-name>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<welcome-file-list>
<welcome-file>/jsps/login.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
</web-app>
8 years ago
Hi,
Can anyone please help me with the below error,

Nov 12, 2009 11:38:19 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Sun\SDK\jdk\jre\bin;C:\Sun\SDK\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0
Nov 12, 2009 11:38:19 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Nov 12, 2009 11:38:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 10422 ms
Nov 12, 2009 11:38:19 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 12, 2009 11:38:19 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Nov 12, 2009 11:38:19 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 12, 2009 11:38:22 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Nov 12, 2009 11:38:22 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:23 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:23 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:23 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Nov 12, 2009 11:38:24 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:25 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:25 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:25 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Nov 12, 2009 11:38:26 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 12, 2009 11:38:26 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 12, 2009 11:38:26 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:27 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:27 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:27 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Nov 12, 2009 11:38:28 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 12, 2009 11:38:28 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Nov 12, 2009 11:38:29 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Nov 12, 2009 11:38:34 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 12, 2009 11:38:34 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestUserSSH] startup failed due to previous errors
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
Nov 12, 2009 11:38:34 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Nov 12, 2009 11:38:35 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 12, 2009 11:38:35 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Nov 12, 2009 11:38:35 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 12, 2009 11:38:35 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15641 ms




Actually my tomcat gets started but i am not able to launch my page.
I looked on some forums which replied to point the path of spring.jar o the 'src' folder but when I download spring.jar compatible with 1.5 or even 1.4 + ,I get so many errors while unzipping it that I am not able to get src for Spring.

Is there any other way to solve this problem?
Please help, I am stuck since 2 days because of this issue

8 years ago
My netstat window does not stay longer so that I can read something.It vanishes immediately.
But I could make it work by changing the server.xml port to 80.There was no need to change it in Eclipse.
Thanks .
Hi,
Can anyone help me in starting my tomcat? I have set the tomcat preferences in my eclipse IDE but on starting the server I am getting a Bind exception.
I have set the environment variables like CATALINA_HOME,JAVA_HOME,CLASSPATH .Where could be my mistake?


SEVERE: Error starting endpoint

java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:150)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75)
at org.apache.catalina.connector.Connector.start(Connector.java:1089)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Oct 26, 2009 4:53:24 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.Connector.start(Connector.java:1096)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Oct 26, 2009 4:53:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3469 ms
Oct 26, 2009 5:04:17 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Oct 26, 2009 5:04:17 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:678)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162)
at org.apache.catalina.connector.Connector.pause(Connector.java:1031)
at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Oct 26, 2009 5:04:18 AM org.apache.catalina.core.StandardService stop
HI Team !
Thank you so much for your support on Javaranch.I could pass the exam yesterday by 82%.
Although it was slightly tough .The best thing I like about Javaranch is that one can get answers to his or her queries anytime !

Thanks one and all
and Good luck to all those who are preparing.

Regards
Amarkirt
9 years ago
Please validate these scenarios for Get/Post:Some are taken fronm HFJS ,first chapter

1)User is returning a login name and a password---post
2)Requesting a new page via a hyperlink---get
3)Chat room user sends a written repsponse---post
4)User hits the next button to see the page---get/post ?
5)user hits a logout button on secure banking site---post
6)User hits a back button on the browser---get
7)User sends a name and address form to the server---post
8)User makes a radio button selection---get/post?
9)User refreshes the page from the broswer refresh--get/post?
10)user types a url in broser and hits enter-get

Thanks,i took this question from HFJS mock exam.
if there exists already a header by name and value :
MyHeader: mydata
Now what will be the result of following code on it?



Ans is mydata3,mydata ...Please explain how?
if the dot . operator is used to access a bean property but a property does not exist,it will throw a runtime exception?
Can static inclusion be used to include a path to a servlet? or is it only for JSP and htmls?
<%@include file="selectme.do"%>
Can a sendRedirect be used to redirect to a servlet path? like "/selectme.do" ? or is it only valid for jsp and htmls?
In <jsp:usebean> tag if there is no existing bean in the page scope,then does the new bean get created in the page scope? or which wever scope the user has specified for searching in?
please clarify:

1)If
<cut value='${user}'/>
Here what is the scope in which the container finds user? Does it use findAtttribute() to check in page scope first then request,session and then application?
or how?
2)<c:set var="${user}" value="pink" scope="session"/>

This will look for the variable 'only' in the session scope,if there is an attribute by name'user' it will fetch its value .


Without specifying scope:
<c:set var="${user}" value="pink" />
Now does it by default check 'user' in all scopes? If it does not find in page scope,are the rest of the scopes checked?

<c:set var="${user} value="" />
Now will it remove the attribute from all the scopes? or only from the scope in which it first encounters this variable?

<c:remove var="user" />
This will remove user from all the scopes.
whereas <c:remove var="user" scope="request"/>
This will remove user from only request scope.

Please validate these cases if my understanding is wrong.
In which scope does the variable declared inside the scriplet get created? page scope? can i access it inside any EL expression directly there after?
But this did not work for a map:

<% Map<String,String> mymap=new HashMap<String,String>();
mymap.put("5","val1");
%>
<c: out value='${mymap["5"]}' />

This did not show up anything
/virtual/mydir/ directories do not exist in my webapp structure,its just made up and appears in the URL pattern only.