finally block saneario

Hi,What r the sanearia when finally block will not be executed except System.exit(1);Regards,Prabhat
[135 byte] By [arpita_jsr08a] at [2007-10-3 0:08:55]
# 1

There are various situations where none of the finally block will be executed. I.e.:

The currently running Java Virtual Machine is terminated normally with a status code of zero, or abnormally with a nonzero status code (or crash, power cut etc)

The thread is caused to sleep, block, loop or wait for an infinite amount of time

YoGeea at 2007-7-14 16:57:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Are you guys discussing about finalize() methods or finally blocks?
sundararajan.aa at 2007-7-14 16:57:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Hi, ya i m talking about the finally { } Block which we can use it in Exception Handling what are the Cases when this block will not execute,
arpita_jsr08a at 2007-7-14 16:57:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4

Hi,

I just want to create the environment for the J2ee Development in Tomcat webserver so that i can view web pages, I don't want to deploy the application. I just made a Context Dir name *eprosys* with path */bit*.

& then i shutdown & started tomcat. but still getting error so many times.

one more thing i m using linux o/s.

In server.xml of conf dir i edited like

--

<Context path="*/bit*" docBase=*"eprosys"* debug="0"

reloadable="true">

</Context>

</Host>

</Engine>

</Service>

</Server>

I just wanted to view my content in context through

http://localhost:8080/bit

but getting

HTTP Status 404 - /bit

*type* Status report

*message* _/bit_

*description* _The requested resource (/bit) is not available._

Apache Tomcat/5.5.17

And in catalina.out below line.

catalina.outusing

--tail -f catalina.out

SEVERE: Error starting static Resources

java.lang.IllegalArgumentException: Document base

/opt/tomcat/webapps/eprosys does not exist or is not a readable

directory

at

org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)

at

org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3814)

at

org.apache.catalina.core.StandardContext.start(StandardContext.java:3985)

at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

at

org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

at

org.apache.catalina.core.StandardService.start(StandardService.java:450)

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)

Jul 19, 2006 4:43:17 PM org.apache.catalina.core.StandardContext start

SEVERE: Error in resourceStart()

Jul 19, 2006 4:43:17 PM org.apache.catalina.core.StandardContext start

SEVERE: Error getConfigured

Jul 19, 2006 4:43:17 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/bit] startup failed due to previous errors

Jul 19, 2006 4:43:17 PM org.apache.catalina.core.StandardContext stop

INFO: Container*

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bit]*

has not been started Jul 19, 2006 4:43:17 PM

org.apache.catalina.startup.HostConfig deployDescriptor

what it is can you help me,

where i m wrong.

How i will correct it.

Regards,

Prabhat

arpita_jsr08a at 2007-7-14 16:57:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...