Win a copy of Rust Web Development this week in the Other Languages forum!

tarunv Verma

Greenhorn
+ Follow
since Dec 14, 2011
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 tarunv Verma

i have already done that many times. I have downloaded tomcat 4 5 6 7 8 32bit zip but nothing is working for me. I guess some outer linkage is there outside of tomcat.
7 years ago
I am facing problem in starting up the tomcat zip file. I am totally new to jsp and servlets. I have installed tomcat 7.0.52 and set the path and java_home both. In one of my system its working fine but in another system with same configuration its creating trouble i don't know why. I have installed the installer earlier of tomcat but now i have uninstall it and download the zip of tomcat. So now i am facing the following exception i guess the problem is the tomcat is not able to deploy its existing projects. I have searched across the web but i am not able to figure it out.

Mar 06, 2014 11:04:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4
.8.
Mar 06, 2014 11:04:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
Mar 06, 2014 11:04:48 AM org.apache.catalina.core.AprLifecycleListener initializ
eSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2525 ms
Mar 06, 2014 11:04:49 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 06, 2014 11:04:49 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\docs
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\docs
java.lang.ExceptionInInitializerError
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NullPointerException
at org.apache.tomcat.util.descriptor.DigesterFactory.idFor(DigesterFacto
ry.java:107)
at org.apache.tomcat.util.descriptor.DigesterFactory.<clinit>(DigesterFa
ctory.java:59)
... 18 more

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\examples
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\examples
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\host-manager
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\host-manager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\manager
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\manager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\ROOT
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\ROOT
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 227 ms
7 years ago

Jk Robbins wrote:Ok, let me see if I understand. I'm thinking something like this:

Send a request to a servlet which will determine which images to display.

Put the image file names into a collection and send it to a jsp to display the images as links.

Now you can either use the links to take you to the log page, or initiate a download, or you can use Ajax to capture the click event on any image and use that to fetch the log.

I hope I'm understanding the requirements correctly.



Thats what i want to know how to request servlet without window=onload. I was using .net technology before in that there is a function page_load() in which we can apply what we want at loading of page. So i am looking similar kind of thing. Hope to see your reply on that.
9 years ago

Bear Bibeault wrote:

tarunv Verma wrote:On basis on those files i have to make dynamic image for each file.


How?

When the user open the page he should see all the images without clicking anywhere


So why cannot you just use an image tag?

but when he clicks on the image a log file should be available for downloading.


Sounds like a simple link.



But i have to run the servlet to run the logic, to pick the data from the files to make it available for images.
9 years ago

Bear Bibeault wrote:

tarunv Verma wrote:I required onload = submit because i have to show some dynamic images when the page opens.


That makes no sense to me at all. I agree with Jk -- you're doing it wrong.

Why not back up and instead of getting us to try and help you do it wrong, describe what you are actually trying to accomplish so we can help you do it right.



May be i am doing it in a wrong way. I will explain you my problem. Please have a look at it.

I have some text file which keep on changing after 5 mins. On basis on those files i have to make dynamic image for each file. When the user open the page he should see all the images without clicking anywhere but when he clicks on the image a log file should be available for downloading. I hope that has given you a good idea about my problem.
9 years ago

Jk Robbins wrote:The onload event is submitting your form the same as if you had clicked a submit button. This performs a POST which will clear the page.

In addition, you are doing things backwards. The browser should be calling the servlet which will put your data into a request (or other scope) and then forward to the jsp page.



I understand what you are saying but how to overcome from this problem. I required onload = submit because i have to show some dynamic images when the page opens.
9 years ago

Seetharaman Venkatasamy wrote:System.out.println("hello world"); are you getting this output on server console? any error on server log(console)?



No no error is coming infact every computation is going smooth. But at last index.jsp shows for a while and went off to the URL as i have mentioned.
9 years ago
hello everyone i have to show a page index.jsp and in this page i have used the onload submit


the above is my jsp code and i have printed hello on this page. But when i hit the URL localhost:8090/tempmonitoringsystem/index.jsp.
It shows index.jsp for nanosec den went away to the folowing URL localhost:8090/tempmonitoringsystem/tempmonitor and i don't know where it is redirecting to.
I am Attaching my servlet code as well as xml code.

TempMonitorServlet.java


web.xml



9 years ago
But how to insert the data which will keep on changing. There are flat files by which data data will come in every 5 mins. And the data will be fed to the image. So everytime there will be new dynamic image. But still you can suggest your idea hope i am not getting you. It will be much better if you can give me an example.
9 years ago
JSP
The below problem has already been implemented as standalone and has to be implemented on web jsp-servlet

hello everyone i am stuck with a problem hope all you pros can help me out. The problem is that we have a standalone app for temperature monitoring system in which whenever any senser added it shows the temp related data like temp, device id, time stamp room no etc. And whenever the device is turned off the circle is disappeared.
I am completed with the logic like when to show circle when to disable the circle but the major problem is that i am not able to draw circles as image with data at run time. And how to delete that image.

Please help me out in this problem guys. Thanks in advance...:)
9 years ago
JSP
i fix the problem there are more than 1 tomcat folder are there....that should be removed first then it will run fine....hope it help others....
10 years ago
thanks but i am new to this forum...so please tell me how to track that topic which you are forwarding....??
10 years ago
i have not intalled tomcat i am using the zip file that we don't have to install...i suppose...i am doing it in another system...its running fine there...some system issues i think...
10 years ago
i m delpoyed in webapps folder of tomcat...
10 years ago