Re: Split-brain problem.

2008-04-08 Thread Marcus Franke
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]



javac error compiling jsp with 1.5 code

2007-10-05 Thread Marcus Franke
Hello,

Ive got a problem with my tomcat 5.5.23 and java 1.5.0_12 on
Centos4 using the sun jdk.


The logfile keeps telling me about being unable to compile the jsp:

An error occurred at line: 109 in the jsp file:
/jsp/templates/nav.jsp
Syntax error on token , invalid AssignmentOperator
106: br /
107: 
108: !-- Product --
109: % ArrayListProductDBBean products =
CachedTopRetailerProductFactory.getProduct(navigation.getNavCategoryID(),navigation.getPartner());
110:if(products.size()0){
111: % 
112:   table width=100% border=0 cellspacing=3 cellpadding=0 


An error occurred at line: 109 in the jsp file:
/jsp/templates/nav.jsp
Syntax error on token =, != expected
106: br /
107: 
108: !-- Product --
109: % ArrayListProductDBBean products =
CachedTopRetailerProductFactory.getProduct(navigation.getNavCategoryID(),navigation.getPartner());
110:if(products.size()0){
111: % 
112:   table width=100% border=0 cellspacing=3 cellpadding=0 


Stacktrace:
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
at
org.apache.jsp.jsp..nav_005fhtml_jsp._jspService(nav_005fhtml_jsp.java:118)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


I tried jikes instead of javac as compiler, but jikes seems to be dead
wood and complains about compiling java 1.5 code, too.

I had an old 1.4 jdk installed and removed it, I did check all the path
variables and settings and Im very sure that my javac is 1.5:

[EMAIL PROTECTED]/etc/tomcat5# su - tomcat
-sh-3.00$ javac -version
javac 1.5.0_12

From my web.xml:

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class 
init-param
param-namefork/param-name
param-valuetrue/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
init-param
param-namejavaEncoding/param-name
param-valueISO-8859-1/param-value
/init-param

!--
init-param
param-namecompiler/param-name
param-valuejikes/param-value
/init-param
init-param
param-namejspCompilerPlugin/param-name

param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param
--

init-param
param-namecompilerSourceVM/param-name
param-value1.5/param-value
/init-param
init-param
param-namecompilerTargetVM/param-name
param-value1.5/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

As you can see, SourceVM and TargetVM are both set to 1.5, but javac
still complains about the files. Am nearly lost and I do not know where
to look next, as the local tomcat installation on the developer machines
have no problem compiling the jsps.



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]



Re: javac error compiling jsp with 1.5 code

2007-10-05 Thread Marcus Franke
On Fri, Oct 05, 2007 at 03:16:02PM +0200, Marcus Franke wrote:
 Hello,
 
 Ive got a problem with my tomcat 5.5.23 and java 1.5.0_12 on
 Centos4 using the sun jdk.
 
 

Ok, answering to my own post, tomcat version was 5.5.20.

I just fetched a current tarball from the homepage, extracted it and
copied over some jar files plus web.xml/server.xml from 5.5.20 to the
5.5.25 tarball version.

Fired up that beast and it works.

Even with the jasper-compiler-jdt.jar being present in common/lib which 
rendered the 5.5.20 useless.

I guess its time for some weekend.. 


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]



AW: rueh:Problem with charsets with apache,tomcat, mysql

2005-10-13 Thread Marcus Franke
Hi, 

have the same problem with a RHEL WS4.

Try using de_DE as your locale not the UTF-8 Version

 -Ursprüngliche Nachricht-
 Von: rueh hänä [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 13. Oktober 2005 15:32
 An: tomcat-user@jakarta.apache.org
 Betreff: rueh:Problem with charsets with apache,tomcat, mysql
 
 HI folks
 
 Soon i get desperate.
 
 I have a FC4 webserver, that runs apache 2.0.54 and tomcat 5.5, mysql 4.1.
 This server will be the replacement of our old FC2 webserver, that runs
 apache 2.0.48 and tomcat 5.0.18, mysql 3.23.
 
 What ive done: I took the old config from the FC2 server and adapted it
 for
 the new server. I also took the websites (jsp and html) on it.
 My problem ist, that special characters as äöü (im swiss) couldnt be
 displayed. Instead of them i get some unreadable cryptics. But i think,
 the
 charset settings are overall correct.
 
 If i configure the default charset in httpd.conf to UTF-8, i can read
 normal
 html-sites, that include special characters.. withouth any problems..But
 only html-sites.. But if i use ISO-8859-1, even html-sites are displayed
 cryptic.
 
 The system language is set to de_DE.UTF-8, as in httpd.conf and
 tomcat5.conf
 (LANG=de_DE.UTF-8), but i also tried it with the ISO-8859-1 charset. I
 also
 tried other charsets and different variations of them.. always with the
 same
 result. The best setting until now was UTF-8. But this only works for
 only-html sites. The special characters still arent displayed correct on
 jsp-sites alternatively mysql database entries.
 
 Now im on this problem since about 10 hours. Nothing helped yet, no
 similar
 problem/solution descriptions helped. Nothing in google is appropriate to
 my
 problem.
 
 Is there anything, that i forgot, didnt understand, made wrong?
 
 I think, either the problem is one little thing, or more than one thing,
 that i have to change. I hope, its the second one.
 
 I really hope, you can give me am advice
 
 --
 Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
 DSL-Flatrate für nur 4,99 Euro/Monat*  http://www.gmx.net/de/go/dsl
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]