Tomcat clustering

2008-03-24 Thread Ch Praveena
Hi all,

   I want to cluster Tomcat6 along with session replication to implement
Loadbalancing. From the document,
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html I have started
making the things.

Let me know where can I identify the default value of Multicast address
is 228.0.0.4

Please let me know if any other tutorials or articles in a detailed way for
performing Tomcat6 clustering.
-- 
Regards,

Praveena Chalamcharla,
Securview


Tomcat clustering

2008-03-24 Thread Ch Praveena
Hi all,

   I want to cluster Tomcat6 along with session replication to implement
Loadbalancing. From the document,
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html I have started
making the things.

Let me know where can I identify the default value of Multicast address
is 228.0.0.4

Please let me know if any other tutorials or articles in a detailed way for
performing Tomcat6 clustering.

-- 
Regards,

Praveena Chalamcharla,
Securview


Re: Classes and lib sub-derectories

2008-03-24 Thread Ch Praveena
Hi,

WEB-INF directory will be found under ROOT of
. And this is a default directory that comes
along with the software. You create manulally a folder as  "Sample"(Your
application or war file)at TOMCAT_HOME/webapps directory. Now let this
Sample contain a WEB-INF and follow the directory structure rules.

My suggestion is to use the latest version of Tomcat like 6.0, for more
features

You may get some help from this  link
http://www.roseindia.net/servlets/index.shtml




On 25/03/2008, Susantha de Silva <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I installed Apache Tomcat 4.1.37 server in my computer. However there are
> no "classes" and "lib" sub-directories in "WEB_INF" directory.
>
> When I created them manually even simple programs with JSP and Java beans
> don't work.
>
> Please advice me what to do.
>
> Regards
>
>
> Susantha de Silva




-- 
Regards,

Praveena Chalamcharla,
Securview


Clustering Tomcat 6.0

2008-03-25 Thread Ch Praveena
Hi all,

I am trying to cluster Tomcat 6.0. I am getting many doubts in the link
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html
I am not able to identify those attributes for those default values
mentioned in the article.
Please let me know if anyone have done Tomcat 6.0 clustering.

-- 
Regards,

Praveena Chalamcharla,
Securview


Tomcat 6.0 clustering

2008-03-25 Thread Ch Praveena
Hi,

Are there anyone who have done with clustering Tomcat 6.0?
I have lot many doubts about them.


-- 
Regards,

Praveena Chalamcharla,
Securview


Re: Tomcat 6.0 clustering

2008-03-26 Thread Ch Praveena
Hi Filip,

These may be very basic questions.

1. What is heart beat in Tomcat clustering?
2. From which version of Tomcat, clustering is implemented?
3. In how many ways clustering is done in Tomcat 6.x?
4. In the article,
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html, It was
mentioned  like
a) "If your Tomcat instances are running on the same machine, make sure the
tcpListenPort attribute is unique for each instance, in most cases Tomcat is
smart enough to resolve this on it's own by autodetecting available ports in
the range 4000-4100". Please tell me where I can find tcpListenPort
attribute.

b) Do I need to update my server.xml file with the default setting given for
the cluster element.


Please tell me if any other  documentation available for clustering  Tomcat
6.x





On 25/03/2008, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
>
> Ch Praveena wrote:
> > Hi,
> >
> > Are there anyone who have done with clustering Tomcat 6.0?
> > I have lot many doubts about them.
> >
>
> what's your question?
> >
> >
> > 
> >
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date:
> 3/23/2008 6:50 PM
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards,

Praveena Chalamcharla,
Securview


Split-brain problem.

2008-04-08 Thread Ch Praveena
Hi all,

   While going on with Terracotta article,
-- http://www.terracotta.org/confluence/display/explore/How+Terracotta+Works
,
For implementing application server clustering, I found this phrase,
"Split-brain problem."..

Please let me know about this in detail..



Regards,

Praveena Chalamcharla,
Securview


Re: Split-brain problem.

2008-04-08 Thread Ch Praveena
Thankyou Marcus,
But let me know the reasons for the occurence of the Netsplit, which lead
Split brain problem.




2008/4/8 Marcus Franke <[EMAIL PROTECTED]>:

> On Tue, Apr 08, 2008 at 01:00:54PM +0530, Ch Praveena wrote:
> > Hi all,
> >
> >While going on with Terracotta article,
> > --
> http://www.terracotta.org/confluence/display/explore/How+Terracotta+Works
> > ,
> > For implementing application server clustering, I found this phrase,
> > "Split-brain problem."..
> >
> > Please let me know about this in detail..
> >
>
> Easy,
>
> if you have a cluster of 4 nodes, and you have a netsplit, you'll end with
> two clusters with two nodes. Split brain problem is that both parts are
> equal in size, so how can the software decide, which side is the correct
> one and which nodes shall drop dead and restart?
>
> Because of this you may want an uneven number of nodes in your cluster.
> This
> way you cannot have a split'ed cluster with equal numbers of nodes on each
> side.
>
>
>
> regards,
> Marcus
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards,

Praveena Chalamcharla,
Securview


Re: Java Stands

2008-04-08 Thread Ch Praveena
Hello Dorababu!!

Better use Google, for all the basic knowledge..



2008/4/8 Dorababu <[EMAIL PROTECTED]>:

>
> Hi
>
> I am learning java .
>
> Plz tell me anyone java stands for
>
> dora




-- 
Regards,

Praveena Chalamcharla,
Securview


Hi..

2008-05-08 Thread Ch Praveena
Hi all,

  Can anyone send me any sample source code(war file) that implements
session for a very important testing purpose of clustering.

-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Re: deploy a war file

2008-05-19 Thread Ch Praveena
webapps directory is under Tomcat_home directory..  For more information for
the directory structure of Tomcat refer www.roseindia.com . Soon after you
download Tomcat, you can find this. There under webapps, copy the war file.





2008/5/20 ashok prabhu - Sun Microsystems - Bangalore India <
[EMAIL PROTECTED]>:

> Hi,
>
> I am running solaris 10. Where do I find the webapps directory. Let me know
> the command to restart tomcat.
>
> Thanks,
> ~Ashok.
>
>
> Dilip Diascore Kolandairaj wrote:
>
>> Just place the war file in tomcat/webapps directory and restart your
>> tomcat.
>>
>> Note : Please make sure that you are not having the any other application
>> in the same name as that of WAR file.
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, May 20, 2008 9:56 AM
>> To: users@tomcat.apache.org
>> Subject: deploy a war file
>>
>> Hi folks,
>>
>> I downloaded a war file. I need to deploy the war file in tomcat. Please
>> let me know how do i do it?
>>
>> Thanks,
>> ~Ashok.
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>  CAUTION - Disclaimer *
>> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
>> solely for the use of the addressee(s). If you are not the intended
>> recipient, please notify the sender by e-mail and delete the original
>> message. Further, you are not to copy, disclose, or distribute this e-mail
>> or its contents to any other person and any such actions are unlawful. This
>> e-mail may contain viruses. Infosys has taken every reasonable precaution to
>> minimize this risk, but is not liable for any damage you may sustain as a
>> result of any virus in this e-mail. You should carry out your own virus
>> checks before opening the e-mail or attachment. Infosys reserves the right
>> to monitor and review the content of all messages sent to or from this
>> e-mail address. Messages sent to or from this e-mail address may be stored
>> on the Infosys e-mail system.
>> ***INFOSYS End of Disclaimer INFOSYS***
>>
>>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Re: deploy a war file

2008-05-19 Thread Ch Praveena
its exact location can be..
http://www.roseindia.net/servlets/introductiontoconfigrationservlet.shtml
Hope this will definitely helps u..



2008/5/20 Ch Praveena <[EMAIL PROTECTED]>:

> webapps directory is under Tomcat_home directory..  For more information
> for the directory structure of Tomcat refer www.roseindia.com . Soon after
> you download Tomcat, you can find this. There under webapps, copy the war
> file.
>
>
>
>
>
> 2008/5/20 ashok prabhu - Sun Microsystems - Bangalore India <
> [EMAIL PROTECTED]>:
>
> Hi,
>>
>> I am running solaris 10. Where do I find the webapps directory. Let me
>> know the command to restart tomcat.
>>
>> Thanks,
>> ~Ashok.
>>
>>
>> Dilip Diascore Kolandairaj wrote:
>>
>>> Just place the war file in tomcat/webapps directory and restart your
>>> tomcat.
>>>
>>> Note : Please make sure that you are not having the any other application
>>> in the same name as that of WAR file.
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>> Sent: Tuesday, May 20, 2008 9:56 AM
>>> To: users@tomcat.apache.org
>>> Subject: deploy a war file
>>>
>>> Hi folks,
>>>
>>> I downloaded a war file. I need to deploy the war file in tomcat. Please
>>> let me know how do i do it?
>>>
>>> Thanks,
>>> ~Ashok.
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>  CAUTION - Disclaimer *
>>> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
>>> solely for the use of the addressee(s). If you are not the intended
>>> recipient, please notify the sender by e-mail and delete the original
>>> message. Further, you are not to copy, disclose, or distribute this e-mail
>>> or its contents to any other person and any such actions are unlawful. This
>>> e-mail may contain viruses. Infosys has taken every reasonable precaution to
>>> minimize this risk, but is not liable for any damage you may sustain as a
>>> result of any virus in this e-mail. You should carry out your own virus
>>> checks before opening the e-mail or attachment. Infosys reserves the right
>>> to monitor and review the content of all messages sent to or from this
>>> e-mail address. Messages sent to or from this e-mail address may be stored
>>> on the Infosys e-mail system.
>>> ***INFOSYS End of Disclaimer INFOSYS***
>>>
>>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
>
>
> -Coolest Regards,
>
> Praveena Chalamcharla,
> Securview




-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Clustering

2008-05-22 Thread Ch Praveena
Hi all,

  I think I can get a proper response and can solve my issue.  I am
trying to cluster Jboss(Mainitans tomcat as a web container) using APACHE as
load balancer, to run my application written using Hibernate and Echo2. I am
finding a common exception called NOTSERIALIZABLE EXCEPTION pinning at
RequestFacade.java available in the Tomcat source. Here is the stack trace
of it. http://rifers.org/paste/show/7354

Please let me know If I can be helped in any way.



-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Re: [EMAIL PROTECTED] Clustering

2008-05-22 Thread Ch Praveena
Thank you all for your responses..
 But still I am at lot of confusion as I was not the actual person who have
designed the code. Anyway, I will try to solve the issue at the earliest.
And here is an issue for the Tomcat designers. It was already known that
Jboss internally use Tomcat as a web container.
I already found that RequestFacade.java be be not serialised class. And
also  I found that RequestFacade.java file with in the internal jars of
Jboss at JBOSS_HOME/server/all/deploy/jboss-web.deployer/jbossweb.jar file.
Now, I would like to ask you if there would be any technical problem to the
jboss architecture or Tomcat when we serialize this RequestFacade.java
file?



2008/5/23 Eric Lennon Bowman <[EMAIL PROTECTED]>:

>
> On Thu, May 22, 2008 2:36 pm, Scott Courtney wrote:
> > There really are only two solutions:
> >
> > 1. Modify your application so that RequestFacade is not stored in the
> > session
> >object. You probably won't learn much from the stack trace, because
> > that is
> >tracing the replication process that failed, not the application code
> > that
> >stored the object. Look for a Serializable object in your app which
> has
> > a
> >reference to RequestFacade, perhaps in a member variable. Find a way
> > not to
> >use that reference, or not to store your containing object in the
> > session.
> >
> > 2. Modify the Echo2 or Catalina source code so that RequestFacade is
> > declared
> >Serializable. I would be *very* cautious about doing that, because
> just
> >declaring the Serializable interface doesn't mean that your object can
> >be sensibly serialized -- it just means *you* think it can. As someone
> > else
> >suggested, read up on the serialization process before trying this.
> And
> > in
> >any case, this means forking a library module, which is usually a
> > horrible
> >idea.
> >
> > As others have said, this question is really more related to Tomcat than
> > it
> > is to Apache, so you will probably have better luck on the Tomcat forums.
> > I'm
> > hoping the above hints will give you a headstart on a Google search of
> > those
> > forums and/or a closer look at your application code.
>
> There's actually a 3rd option -- if you need to hang on to a request
> object, mark it transient.  It makes NO sense to move a request object
> around the cluster; I wouldn't recommend trying to make that work.
>
> (Sorry about the formatting...:) )
>
> --
> Eric Lennon Bowman
> Bobo Company Ltd
> [EMAIL PROTECTED]
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Tomcat clustering

2008-05-27 Thread Ch Praveena
Hi all,

I want to test tomcat 6 clustering when deploying my war file
written using Echo2 and hibernate. Please let me know if anyone have proper
and specific documentation other than the HOW-TO!!! Please let me know at
the earliest.

Thank you
-- 


-Coolest Regards,

Praveena Chalamcharla,
Securview


Re: Regarding Service Unavailable

2008-08-07 Thread Ch Praveena
Hi,
   You have to wait until the application is loaded to the tomcat
container and the server has to respond. But, when did u get this 503 error?
is it soon after ur startup? if so, jus check the command console page to
read the status of the tomcat container/server is completely loaded and
ready to respond to the request made by you.



2008/8/7 welcome.partha <[EMAIL PROTECTED]>

>
> i run my web application after started my apache-tomcat server,it displayed
> service unavailable.If i refreshed it its run successfully.Actually
> sometimes its working initially ,sometimes i give refresh then only its run
> successfully.
>
> Please help me..
>
> Thanks in advance
> P.Parthasarathi
> --
> View this message in context:
> http://www.nabble.com/Regarding-Service-Unavailable-tp18865692p18865692.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

-Coolest Regards,

Praveena Chalamcharla,


Doubts regarding the TOMCAT url

2008-08-12 Thread Ch Praveena
Hi all,

   It would be my great experience if you share your views in making
up the solution :

I am having an application running on my tomcat. And could run it like
http://10.30.330.45:8080/sample

When I am trying to run on the default port its saying "BIND EXCEPTION" and
I am sure I ve nothing running on port 80.

and also can anyone gimme a solution to display that
http://com.praveena.sample   (with out changing my DNS name)

Thank you in advance

-- 

-Coolest Regards,

Praveena Chalamcharla,


Re: Doubts regarding the TOMCAT url

2008-08-12 Thread Ch Praveena
Great!!

You are absolutely right!! I could run perfectly on ROOT user!

But how to give the previllages to the USER as similar to ROOT?



Thank you in advance!!



2008/8/12 David Smith <[EMAIL PROTECTED]>

> A complete stack trace would be wonderful as well as your OS and tomcat
> version.  On the outset, I would guess this is a unix/linux based system
> where ports below 1024 are privileged ports, not accessible except by the
> root user.  If that's the case, you might want to consider using jsvc from
> the commons-daemon project.
>
> --David
>
>
> Ch Praveena wrote:
>
>> Hi all,
>>
>>   It would be my great experience if you share your views in
>> making
>> up the solution :
>>
>> I am having an application running on my tomcat. And could run it like
>> http://10.30.330.45:8080/sample
>>
>> When I am trying to run on the default port its saying "BIND EXCEPTION"
>> and
>> I am sure I ve nothing running on port 80.
>>
>> and also can anyone gimme a solution to display that
>> http://com.praveena.sample   (with out changing my DNS name)
>>
>> Thank you in advance
>>
>>
>>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 

-Coolest Regards,

Praveena Chalamcharla,


unable to run tomcat

2008-08-18 Thread Ch Praveena
Hi all,

   I am currently running apache-tomcat 6.0.14 version and worked
well before with it. suddenly I could not run it giving a message at the
command console:
I am running on my linux m/c

*Aug 18, 2008 2:00:51 PM org.apache.catalina.ha.session.DeltaManager
waitForSendAllSessions
SEVERE: Manager [localhost#/Test1]: No session state send at 8/18/08 1:59 PM
received, timing out after 60,040 ms.
Aug 18, 2008 2:00:51 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [localhost#/Test1]: Drop message SESSION-GET-ALL inside
GET_ALL_SESSIONS sync phase start date 8/18/08 1:59 PM message date 1/1/70
5:30 AM
Aug 18, 2008 2:00:51 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/home/praveena/software/apache-tomcat-6.0.14/webapps/Tesct/WEB-INF/lib/servlet-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
Aug 18, 2008 2:00:51 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager /Tesct to cluster element Engine with name Catalina
Aug 18, 2008 2:00:51 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at /Tesct
Aug 18, 2008 2:00:51 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [localhost#/Tesct], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://
praveena.securview.com:4000,praveena.securview.com,4000, alive=2517360,id={5
-16 17 99 101 23 66 -17 -121 19 124 78 -113 -123 54 1 }, payload={},
command={}, domain={}, ]. This operation will timeout if no session state
has been received within 60 seconds.
Aug 18, 2008 2:01:51 PM org.apache.catalina.ha.session.DeltaManager
waitForSendAllSessions
SEVERE: Manager [localhost#/Tesct]: No session state send at 8/18/08 2:00 PM
received, timing out after 60,030 ms.
Aug 18, 2008 2:01:51 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [localhost#/Tesct]: Drop message SESSION-GET-ALL inside
GET_ALL_SESSIONS sync phase start date 8/18/08 2:00 PM message date 1/1/70
5:30 AM
Aug 18, 2008 2:01:51 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager /docs to cluster element Engine with name Catalina
Aug 18, 2008 2:01:51 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at /docs
Aug 18, 2008 2:01:51 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [localhost#/docs], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://
praveena.securview.com:4000,praveena.securview.com,4000, alive=2577372,id={5
-16 17 99 101 23 66 -17 -121 19 124 78 -113 -123 54 1 }, payload={},
command={}, domain={}, ]. This operation will timeout if no session state
has been received within 60 seconds.
Aug 18, 2008 2:02:51 PM org.apache.catalina.ha.session.DeltaManager
waitForSendAllSessions
SEVERE: Manager [localhost#/docs]: No session state send at 8/18/08 2:01 PM
received, timing out after 60,032 ms.
Aug 18, 2008 2:02:51 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [localhost#/docs]: Drop message SESSION-GET-ALL inside
GET_ALL_SESSIONS sync phase start date 8/18/08 2:01 PM message date 1/1/70
5:30 AM
Aug 18, 2008 2:02:51 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/home/praveena/software/apache-tomcat-6.0.14/webapps/example/WEB-INF/lib/servlet-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
Aug 18, 2008 2:02:51 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/home/praveena/software/apache-tomcat-6.0.14/webapps/example/WEB-INF/lib/servlet.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
Aug 18, 2008 2:02:51 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager /example to cluster element Engine with name Catalina
Aug 18, 2008 2:02:51 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at /example
Aug 18, 2008 2:02:51 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [localhost#/example], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://
praveena.securview.com:4000,praveena.securview.com,4000, alive=2637385,id={5
-16 17 99 101 23 66 -17 -121 19 124 78 -113 -123 54 1 }, payload={},
command={}, domain={}, ]. This operation will timeout if no session state
has been received within 60 seconds.
*

Please let me know where would be the problem.

-- 

-Coolest Regards,

Praveena Chalamcharla,


Problem when running JSP

2008-08-19 Thread Ch Praveena
Hi all,

   I have run a very basic helloworld program. But, when I am
accessing the jsp file, I am getting the following exception stack trace.

javax.servlet.ServletException: java.lang.VerifyError: (class:
org/apache/jasper/runtime/JspApplicationContextImpl, method:
createELResolver signature: ()Ljavax/el/ELResolver;) Incompatible
argument to function
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

*root cause*

java.lang.VerifyError: (class:
org/apache/jasper/runtime/JspApplicationContextImpl, method:
createELResolver signature: ()Ljavax/el/ELResolver;) Incompatible
argument to function

org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:199)
org.apache.jsp.hello_jsp._jspInit(hello_jsp.java:22)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:158)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

*note*


Please let me know the reason why is my JSP container is getting inactive
many times... while the servlets are running perfectly!! I am facing the
similar problem when running from eclipse too..
-- 

-Coolest Regards,

Praveena Chalamcharla,


public class SessionTestServlet extends WebContainerServlet implements Serializable { private static final long serialVersionUID = 1L; public ApplicationInstance newApplicationInstance() { return new

2008-08-26 Thread Ch Praveena
Hi all,

 I am trying to cluster an application. I found the following
exception stack trace. Hope there are very experts in this group, who
involved in designing of Tomcat container and utilizing the tomcat too.
Please respond me who ever have a very good idea about this.


*
11:22:51,362 ERROR [JBossCacheService] externalizeSession(): exception
occurred externalizing session SessionBasedClusteredSession[id:
jFdwj9uBb2SnaFbZjiTSaQ**.node1 lastAccessedTime: 1219729960683
version: 17 lastOutdated: 0]
*
*
java.io.NotSerializableException: org.apache.catalina.connector.RequestFacade
*
*
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
*
*
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
*
*
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
*
*
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
*
*
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
*
*
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
*
*
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
*
*
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
*
*
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
*
*
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
*
*
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
*
*
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
*
*
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
*
*
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
*
*
at 
java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
*
*at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)*
*
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
*
*at java.lang.reflect.Method.invoke(Method.java:597)*
*
at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
*
*
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
*
*
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
*
*
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
*
*
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
*
*
at 
org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175)
*
*
at 
org.jboss.web.tomcat.service.session.JBossCacheService.externalizeSession(JBossCacheService.java:1027)
*
*
at 
org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:316)
*
*
at 
org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:121)
*
*
at 
org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1097)
*
*
at 
org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:652)
*
*
at 
org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:49)
*
*
at 
org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:98)
*
*
at 
org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
*
*
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
*
*
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
*
*
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
*
*
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
*
*
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
*
*
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
*
*
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
*
*
at 
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
*
*
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
*
*at java.lang.Thread.run(Thread.java:619)*

-- 

-Coolest Regards,

Praveena Chalamcharla,


Re: public class SessionTestServlet extends WebContainerServlet implements Serializable { private static final long serialVersionUID = 1L; public ApplicationInstance newApplicationInstance() { return

2008-08-26 Thread Ch Praveena
Hi Mark!!

 Please find the testcase I am trying to cluster.
http://rifers.org/paste/show/7959
As I found no wrong with the program, please Suggest me what ever the
modifications are expected.

Thankyou in advance.

2008/8/26 Mark Thomas <[EMAIL PROTECTED]>

> Ch Praveena wrote:
> > Hi all,
> >
> >  I am trying to cluster an application. I found the following
> > exception stack trace. Hope there are very experts in this group, who
> > involved in designing of Tomcat container and utilizing the tomcat too.
> > Please respond me who ever have a very good idea about this.
>
> Don't put request objects in the session. As you have found it will
> break replication. Additionally, since request objects are re-used, it
> nearly always ends in disaster.
>
> Mark
>
> >
> >
> > *
> > 11:22:51,362 ERROR [JBossCacheService] externalizeSession(): exception
> > occurred externalizing session SessionBasedClusteredSession[id:
> > jFdwj9uBb2SnaFbZjiTSaQ**.node1 lastAccessedTime: 1219729960683
> > version: 17 lastOutdated: 0]
> > *
> > *
> > java.io.NotSerializableException:
> org.apache.catalina.connector.RequestFacade
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> > *
> > *
> > at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > *
> > *
> > at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > *
> > *
> > at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> > *
> > *
> > at
> java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
> > *
> > *at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)*
> > *
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > *
> > *at java.lang.reflect.Method.invoke(Method.java:597)*
> > *
> > at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> > *
> > *
> > at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> > *
> > *
> > at
> org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175)
> > *
> > *
> > at
> org.jboss.web.tomcat.service.session.JBossCacheService.externalizeSession(JBossCacheService.java:1027)
> > *
> > *
> > at
> org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:316)
> > *
> > *
> > at
> org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:121)
> > *
> > *
> > at
> org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1097)
> > *
> > *
> > at
> org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:652)
&g

Re: Can't generate class file from Interface

2008-08-26 Thread Ch Praveena
Hi,

   Make sure about all the classes like Customer, be accessable. And also be
careful in naming the packages.



2008/8/26 sam wun <[EMAIL PROTECTED]>

> Hi,
>
>
>
> In Eclipse 3.4 (not sure about the previous version), I have a project, in
> the src, there is a interface file called "DatabaseCommand.java". This file
> is an interface file.
>
> It s content is shown below:
>
> package command;
>
> import java.sql.Connection;
> import java.sql.SQLException;
>
> public interface DatabaseCommand {
> public Object executeDatabaseOperation(Connection conn) throws
> SQLException ;
> }
>
>
>
>
>
> Another file CreateOrder.java *implements* this interface.
>
> Its content shown as below:
>
>
>
> Package command;
>
> import java.sql.Connection;
> import java.sql.SQLException;
> import java.sql.Statement;
> import java.sql.ResultSet;
> import java.util.ArrayList;
> import domain.Customer;
>
> /**
>  * List existing customers in the database
>  */
>
> public class ListCustomers implements DatabaseCommand {
>
> public Object executeDatabaseOperation(Connection conn) throws
> SQLException {
> // List customers in the database
>
> ArrayList list = new ArrayList();
> Statement sta = conn.createStatement();
> ResultSet rs = sta.executeQuery("SELECT ID, FIRST_NAME,
> LAST_NAME, ADDRESS FROM CUSTOMER");
> while(rs.next()) {
> Customer cust = new Customer();
> cust.setId(rs.getInt(1));
> cust.setFirstName(rs.getString(2));
> cust.setLastName(rs.getString(3));
> cust.setAddress(rs.getString(4));
> list.add(cust);
> }
>
> rs.close();
> sta.close();
>
> return list;
> }
> }
>
>
>
> When I press Clt-B to build the project(All), DatabaseCommand.java does not
> get compiled, no DatabaseCommand.class generated in the
> build\classes\command\ directory. The syntax highlithed in the
> CreateOrder.java file indicated that DatabaseCommand is an unknown type,
> that meant no class found.
>
>
>
> How can I get around this issue? may be I should ask how to generate an
> interface dot class file (eg. DatabaseCommand.class in this instance)?
>
>
>
> Thanks
>
> Sam
>
>
>


-- 

-Coolest Regards,

Praveena Chalamcharla,