[JBoss Portal] - How to disable i18n ?
by jfelfouly
I've done quite a bunch of multilingual portal projects, not all of them in Java technology, but I have a particular problem here. I'm setting up the new version of a dynamic site that extracts quite a bunch of textual content from a database. This content is not available in any other language than French and the site is targeted to French-speaking users. Now the default language of the portal is English even on a server that has FR as default language. The site (JBP 2.4) has CMS content in French and no content in English.
So basically when someone connects to the site with a browser configured to request content in another language than French he/she get quite a bunch of 404 error portlets.
I would like to be able to enforce the portal to deliver content in FR or at least have FR as default for unauthentified users.
Is this strange behaviour related to the following error message I get at startup ?
2006-10-07 20:13:27,406 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 2006-10-07 20:13:27,578 ERROR [org.apache.myfaces.util.LocaleUtils] Locale name null or empty, ignoring
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976769#3976769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976769
19 years, 7 months
[JBoss jBPM] - Is jbpm-bpel compatible with jbpm applications?
by vineeth.varghese
Hi,
I have been using jbpm for quite sometime now. I have even extended jPDL to include a lot of custom constructs basically jbpm enabled user to develop a richer language when the need arises. Cool wf engine you guys have here :)
I need to use the BPEL constructs in my process for a usecase where my process calls an external system and my process has to wait till it is intimated by the external system about the result. BPEL has inbuilt support for this type of interaction so I am looking to use jbpm-bpel and I have tried the examples given along with the jbpm-bpel release. I have a few queries regarding jbpm-bpel :-
1) Can I mix jbpm constructs with BPEL constructs (I am not bothered about interoperability with other wf engines)?. I think we can't do this but I just want some confirmation on this since I can't find any documentation about this?
2) Can I use both jbpm and BPEL processes in the same application (sharing the same db)?. It seems that the bpel constructs are internally converted to jbpm constructs and store is the db.
3) For the usecase that I want, if I can't mix both jbpm and bpel constructs in one process, can I, from a jbpm process, call a bpel subprocess and achieve the same things?
4) I want to use jbpm-bpel in a tomcat/jetty env and want to know what are the basic infrastructure/dependencies required to run jbpm-bpel. I saw reference to jms in the source code, so I am assuming it needs jms. How do I make it run in a tomcat/jetty env?. Has anyone tried this before?.
Cheerio,
Vineeth.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976759#3976759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976759
19 years, 7 months
[Tomcat, HTTPD, Servlets & JSP] - Exception in the Lookup Operation
by Luke2006
Hi everybody!
I'm new at JBoss so I'm created a simply web application to begin, but I've encountered a strange Exception:
javax.servlet.ServletException: Lookup of java:/comp/env/ failed -- java.lang.ClassCastException
saluti.web.HolaServlet.init(HolaServlet.java:49)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Unknown Source)
My application asks for a sentence and display it on the screen with some changes. Here is the code.
HOLABEAN.JAVA:
package saluti.ejb;
import java.rmi.RemoteException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.ejb.CreateException;
/**
* @ejb.bean name="Hola"
* display-name="Name for Hola"
* description="Description for Hola"
* jndi-name="ejb/Hola"
* type="Stateless"
* view-type="remote"
*/
public class HolaBean implements SessionBean {
public HolaBean() {
super();
// TODO Auto-generated constructor stub
}
public void setSessionContext(SessionContext ctx)
throws EJBException,
RemoteException {
// TODO Auto-generated method stub
}
public void ejbRemove() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
/**
* Default create method
*
* @throws CreateException
* @ejb.create-method
*/
public void ejbCreate() throws CreateException {
// TODO Auto-generated method stub
}
/**
* Business method
* @ejb.interface-method view-type = "remote"
*/
public String passer(String fraseInit) {
fraseInit=fraseInit+" + 'Never give up!!'";
return fraseInit;
}
}
HOLASERVLET.JAVA:
package saluti.web;
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletConfig;
import java.io.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import saluti.interfaces.*;
import javax.rmi.*;
import java.util.*;
import javax.naming.*;
/**
*
* @web.servlet name="Hola"
* display-name="Hola Servlet"
* description="It's change the sentence"
* @web.servlet-mapping url-pattern="/Hola"
*
* @web.ejb-ref
* name="ejb/Hola"
* type="Session"
* home="saluti.interfaces.HolaHome"
* remote="saluti.interfaces.Hola"
* description="Reference to the Hola EJB"
*
* @jboss.ejb-ref-jndi
* ref-name="ejb/Hola"
* ndi-name="ejb/Hola"
*
*/
public class HolaServlet extends HttpServlet {
private HolaHome home;
public HolaServlet() {
super();
// TODO Auto-generated constructor stub
}
public void init(ServletConfig config) throws ServletException {
try {
Context context = new InitialContext();
Object ref = context.lookup("java:/comp/env/ejb/Hola");
home = (HolaHome) PortableRemoteObject.narrow(ref, HolaHome.class);
} catch (Exception e) {
throw new ServletException("Lookup of java:/comp/env/ failed -- "+e);
}
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException,
IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("");
out.println("E divenne...");
out.println("");
out.println("");
out.println("<h1>");
out.println("Magggggia");
out.println("</h1>");
try {
Hola bean = home.create();
String value = request.getParameter("inizio");
String newValue = null;
if (value!=null)
newValue = bean.passer(value);
bean.remove();
out.println("");
out.print("Ed ecco il risultato: ");
out.println(newValue);
out.println("");
} catch (Exception e) {
out.println(e.getMessage());
e.printStackTrace(out);
} finally {
out.println("");
out.close();
}
}//doPost
}//HolaServlet
INDEX.HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Inizi di Web Service
QUESTO E' L'INDEX DEL MIO
PICCOLO WEB SERVICE....DA QUI...COMINCIA TUTTO........
Inserisci la frase
Thanks in advance for everything!!
Luke
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976757#3976757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976757
19 years, 7 months
[JBoss Seam] - Re: Any experiences with the Tomahawk components?
by bfo81
Well, there are many useful Tomahawk components that I do not want to miss anymore (e.g. t:inputFileUpload or t:column). But there are even many sloppy components or code parts.
E.g. the schedule component supports a lot of custom style classes (as per API) but the corresponding attributes are not implemented (and thus ignored)!!! The shuttle selectmanymenu is very nice, too, but there are no headlines (so which box represents the selected items and which one the non-selected ones?). And the best is the UploadedFile class: getName() used to return the filename, but in the newest release this method returns the filename PLUS the local path in front. You update your jars and BANG your app doesn't work anymore as expected. *imagine some insulting words targeted at the Tomahawk developers responsible for those cardinal errors here >:D*
The idea of components is a huge strength but also a weakness of the JSF technology. There are many good components you can easily apply in your app and that save you lot of time, but there's also very much rubbish out there that can drive you crazy.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976756#3976756
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976756
19 years, 7 months