[Installation, Configuration & Deployment] - basic 4.2 deploy and missing javax.servlet files
by wiggy
folks not sure whats going on .
downloaded the new 4.2 GA app server and unziped on my drive.
I run eclipse 3.2.2 with jboss ide (beta)
created a new server and pointed it at the new home directory for 4.2.
when i created a default dynamic web project within my eclipse and link to the new server - it doesnt compile.
it was missing several files in several directories in the install
first my /client directory didnt contain the javax.servlet.jar file.
second my /server/default/lib dir didnt contain either the javax.servlet.jsp.jar or the javax.servlet.jar files
third the directory didnt contain an jboss-ejb3x.jar (but did have the jboss-ejb3.jar - without the x).
all of which i meant i had to copy these files from 4.0.5 build dir equivs.
when i do this i seem i can get a basic dynamic web project to run under the new server.
Am i doing something wrong ? or is it my eclipse config thats not right? I run regular refreshes on the jboss ide dev site for refreshes.
either jboss tools is not upto date for the 4.2 build - or 4.2 is missing files that should be there
Any one else had difficulties - can advise. Somewhat concerned as i was going to try and use the ejb3 test deploy on 4.2 and wonder what else may be missing
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046657#4046657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046657
18 years, 11 months
[Clustering/JBoss] - Re: Sever Failover
by sboying
Is this just a matter of putting the "preferred server" definition in the jboss-service.xml and then implementing an interface to determine what server you are on? When I initially started down this path, I had written a small amount of code to compare the current server with a configured LDAP value to see if one is the preferred:
* PrimaryServer.java
*
*/
package com.eds.sea.common.jmx.service.config;
import org.apache.log4j.Logger;
import java.io.*;
import com.eds.sea.common.jmx.service.config.*;
public class PrimaryServer
{
public PrimaryServer() {}
public static boolean IsPrimary(String complex)
{
try
{
String currServer = null;
String outErrStr = null;
boolean rCode = false;
LDAPConfig lConfig = new LDAPConfig();
String priServer = lConfig.getPrimaryServer(complex);
String cmd = "/usr/bin/uname -n";
Logger.getLogger(PrimaryServer.class.getName()).info(cmd);
Process p = Runtime.getRuntime().exec(cmd);
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
while ((currServer = stdInput.readLine()) != null)
System.out.println(currServer);
while ((outErrStr = stdError.readLine()) != null)
System.out.println(outErrStr);
rCode = currServer.equalsIgnoreCase(priServer) ? true : false;
}
catch ( Exception e )
{
rCode = false;
Logger.getLogger(PrimaryServer.class.getName()).error(e);
}
return rCode;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046650#4046650
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046650
18 years, 11 months