[JBoss Portal] - Re: MyFaces 1.1.2 Portal 2.4
by alain_fr
well, what you tell me solve my error but i have another one.
2006-09-12 18:47:18,828 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/helloworldportlet]] Exception sending context initialized event to listener instance of class de.mindmatters.faces.spring.config.ConfigLoaderListener
| java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
| A typical config looks like this;
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
| at de.mindmatters.faces.spring.AbstractContextLoader.validateFacesConfiguration(AbstractContextLoader.java:106)
| at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext(AbstractContextLoader.java:71)
| at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized(AbstractContextLoaderListener.java:52)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
i don't know what it is, i have no idea, i'm using jsf-spring.jar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971087#3971087
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971087
19 years, 7 months
[JBoss Eclipse IDE (users)] - cannot deploy using jboss ide
by anjita
Hi, we have connected jboss to a firebird server, and now are trying to deploy using the eclipse ide.
Firebird version 2.0, eclipse version 1.6
The test connection passes, but when we hit the deploy process achive button from the ide, we the following error message in the error log:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/jbpm/upload
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.jbpm.ui.util.ProcessDeployer.deployProcessWithServlet(Unknown Source)
at org.jbpm.ui.util.ProcessDeployer.access$3(Unknown Source)
at org.jbpm.ui.util.ProcessDeployer$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at org.jbpm.ui.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
at org.jbpm.ui.util.ProcessDeployer.deploy(Unknown Source)
at org.jbpm.ui.editor.form.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Can someone please point me in the right direction ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971085#3971085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971085
19 years, 7 months
[EJB 3.0] - EntityManager find does not fill Entities
by sebasjm
Hello, I'm using Jboss 4.0.4 installed with EJB. and I'm having a problem with the EntityManager.
It seems that it does not initialize the Entitys when I try to get an object from the DB with the find method.
This is my test unit code:
| public void testIngresarPrestacion(){
| TipoPractica tp = (TipoPractica) controladorEjb.cargar(TipoPractica.class,new Integer(1));
| System.out.println("tipoPractica.descripcion = " + tp.getDescripcion());
| }
|
controladorEjb: an stateless session bean access remotely through JNDI
controladorEjb.cargar: exactly the same than EntityManager.find()
When I debug it, controladorEjb.cargar() return an instance of TipoPractica but with no property set.
In the log file I get:
anonymous wrote :
| 2006-09-12 11:58:10,359 DEBUG [org.hibernate.pretty.Printer] listing entities:
| 2006-09-12 11:58:10,359 DEBUG [org.hibernate.pretty.Printer] ar.com.selenca.TipoPractica{valorBase=10.0, titulo=10905, descripcion=Lifemia o lipidos totales en sangre, nomenclado=true, id=1, activo=true, fechaAlta=null, usuarioAlta=null, especialidad=null, capitulo=10904, usuarioModificacion=null, fechaModificacion=null, codigo=8614}
|
when the query is executed, so it gets all the information from the DB but for some reason it does not complete the bean properly.
I have isolate the problem in a mini Java proyect, feel free to ask me for it.
Here is the TipoPractica java file:
| package ar.com.selenca;
|
| import java.io.Serializable;
|
| import javax.persistence.DiscriminatorValue;
| import javax.persistence.Entity;
|
|
| @Entity
| @DiscriminatorValue("TP")
| public class TipoPractica extends TipoPrestacion implements Serializable
| {
| private static final long serialVersionUID = 3688507705476263988L;
|
|
| }
|
and TipoPrestacion :
| package ar.com.selenca;
|
| import java.util.Date;
|
| import javax.persistence.Column;
| import javax.persistence.DiscriminatorColumn;
| import javax.persistence.DiscriminatorType;
| import javax.persistence.DiscriminatorValue;
| import javax.persistence.Entity;
| import javax.persistence.GeneratedValue;
| import javax.persistence.Id;
| import javax.persistence.Inheritance;
| import javax.persistence.InheritanceType;
| import javax.persistence.Table;
| import javax.persistence.Transient;
|
| @Entity
| @Table(name="PRESTACION_TIPO")
| @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
| @DiscriminatorColumn(name="PRT_TIPO",discriminatorType=DiscriminatorType.STRING)
| @DiscriminatorValue("XX")
| public abstract class TipoPrestacion
| {
| private Integer id;
| private String codigo;
| private String descripcion;
|
| private double valorBase;
| private String especialidad;
| private Integer capitulo;
| private Integer titulo;
|
| private boolean nomenclado = true;
|
| private Date fechaAlta;
| private String usuarioAlta;
| private Date fechaModificacion;
| private String usuarioModificacion;
|
| private boolean activo = true;
|
| @Column(name="PRT_CODIGO",nullable=false)
| public String getCodigo()
| {
| return this.codigo;
| }
| public void setCodigo(String codigo)
| {
| this.codigo = codigo;
| }
|
| @Column(name="PRT_DESCRIPCION")
| public String getDescripcion()
| {
| return this.descripcion;
| }
| public void setDescripcion(String descripcion)
| {
| this.descripcion = descripcion;
| }
|
| @Id
| @GeneratedValue
| @Column(name="PRT_ID")
| public Integer getId()
| {
| return this.id;
| }
| public void setId(Integer id)
| {
| this.id = id;
| }
|
| @Column(name="PRT_ACTIVO")
| public boolean getActivo()
| {
| return activo;
| }
| public void setActivo(boolean activo)
| {
| this.activo = activo;
| }
|
| @Column(name="PRT_FECHA_ALTA")
| public Date getFechaAlta()
| {
| return fechaAlta;
| }
| public void setFechaAlta(Date fechaAlta)
| {
| this.fechaAlta = fechaAlta;
| }
|
| @Column(name="PRT_FECHA_MODIFICACION")
| public Date getFechaModificacion()
| {
| return fechaModificacion;
| }
| public void setFechaModificacion(Date fechaModificacion)
| {
| this.fechaModificacion = fechaModificacion;
| }
|
| @Column(name="PRT_USUARIO_ALTA")
| public String getUsuarioAlta()
| {
| return usuarioAlta;
| }
| public void setUsuarioAlta(String usuarioAlta)
| {
| this.usuarioAlta = usuarioAlta;
| }
|
| @Column(name="PRT_USUARIO_MODIFICACION")
| public String getUsuarioModificacion()
| {
| return usuarioModificacion;
| }
| public void setUsuarioModificacion(String usuarioModificacion)
| {
| this.usuarioModificacion = usuarioModificacion;
| }
|
| @Column(name="PRT_ESPECIALIDAD")
| public String getEspecialidad()
| {
| return this.especialidad;
| }
| public void setEspecialidad(String especialidad)
| {
| this.especialidad = especialidad;
| }
|
| @Column(name="PRT_IDCAPITULO")
| public Integer getCapitulo()
| {
| return this.capitulo;
| }
| public void setCapitulo(Integer capitulo)
| {
| this.capitulo = capitulo;
| }
|
| @Column(name="PRT_IDTITULO")
| public Integer getTitulo()
| {
| return this.titulo;
| }
| public void setTitulo(Integer titulo)
| {
| this.titulo = titulo;
| }
|
| @Column(name="PRT_NOMENCLADO")
| public boolean isNomenclado()
| {
| return this.nomenclado;
| }
| public void setNomenclado(boolean nomenclado)
| {
| this.nomenclado = nomenclado;
| }
|
| @Column(name="PRT_VALOR_BASE")
| public double getValorBase()
| {
| return valorBase;
| }
| public void setValorBase(double valorBase)
| {
| this.valorBase = valorBase;
| }
|
| @Transient
| public String getIdentidad()
| {
| return this.descripcion + " [" + this.codigo + "] ";
| }
| }
|
Thanks in advance.
----
Sebastian Javier Marchano
www.selenca.com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971084#3971084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971084
19 years, 7 months