6 Replies Latest reply on Feb 23, 2006 4:50 PM by William DeCoste

    Problem with ejb and Servlet

    Jose Antonio Alarcon Newbie

      Hi

      I am new in JBoss. I am releasing a example but it doesn't work. I don't know why.

      Can someone help me?.

      I am going to show all thing i have done.

      First all I am using the version jboss-4.0.4RC1.

      Now I am going to write all files that I am using.

      file persistece.xml

      
      <?xml version="1.0" encoding="UTF-8"?>
      <persistence>
       <persistence-unit name="test">
       <jta-data-source>java:/MySqlDS</jta-data-source>
       <properties>
       <property name="entity.manager.factory.jndi.name" value="java:/MyEntityManagerFactory"/>
       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
       <property name="hibernate.hbm2ddl.auto" value="update"/> <!-- Tables werden erzeugt beim Deployment falls nicht existierend -->
       <property name="hibernate.show_sql" value="false"/>
      
      
      <!-- <property name="hibernate.hbm2ddl.auto"
       value="create-drop"/>-->
       </properties>
       </persistence-unit>
      </persistence>
      


      the file jboss-app.xml


      ?xml version="1.0" encoding="UTF-8"?>
      <jboss-app>
       <loader-repository>
       db:app=ejb3
      <!-- dot.com:loader=unique-archive-name
       <loader-repository>localhost:loader=inmovil.ear</loader-repository>
      -->
      
       </loader-repository>
      </jboss-app>
      


      the file application.xml


      
      <?xml version="1.0" encoding="UTF-8"?>
      <application version="1.4"
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
       http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
       <display-name>Inmoviliaria</display-name>
      <!-- <description>Inmoviliaria</description> -->
       <module>
       <ejb>inmovil.par</ejb>
       </module>
       <module>
       <ejb>inmovil.ejb3</ejb>
       </module>
       <module>
       <web>
       <web-uri>inmovil.war</web-uri>
       <context-root>/propiedades</context-root>
       </web>
       </module>
      </application>
      


      Here I know the file par are depredated with this version. But it is a test.


      the web.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.4"
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      
       <servlet>
       <servlet-name>PropiedadServlet</servlet-name>
       <servlet-class>org.jboss.web.PropiedadServlet</servlet-class>
      
       </servlet>
      
      
       <servlet-mapping>
       <servlet-name>PropiedadServlet</servlet-name>
       <url-pattern>/Propiedad</url-pattern>
       </servlet-mapping>
      </web-app>
      



      Now the POJOS

      This is the Empleados' table




      package org.jboss.miBd;
      
      import javax.persistence.*;
      import java.util.*;
      
      
      @Entity
      @Table(name="Empleados")
      public class Empleado {
       private int idEmpleado;
       private String nombreApellidos;
       private List<Propiedad> propiedades;
      
      
       @Id //(generate = GeneratorType.AUTO)
       @GeneratedValue
       @Column (name = "idEmpleado")
       public int getIdEmpleado() {
       return idEmpleado;
       }
       public void setIdEmpleado(int idEmpleado) {
       this.idEmpleado = idEmpleado;
       }
       public String getNombreApellidos() {
       return nombreApellidos;
       }
       public void setNombreApellidos(String nombreApellidos) {
       this.nombreApellidos = nombreApellidos;
       }
      
       @OneToMany (cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "idEmpleado")
       @JoinColumn (name = "idEmpleado")
       public List<Propiedad> getPropiedades() {
       return propiedades;
       }
       public void setPropiedades(List<Propiedad> propiedades) {
       this.propiedades = propiedades;
       }
      
      
      }
      


      Propiedades' table.

      package org.jboss.miBd;
      import java.io.Serializable;
      
      import javax.persistence.*;
      import javax.persistence.Id;
      
      @Entity
      @Table(name="Propiedades")
      public class Propiedad implements Serializable{
       private int referencia;
       private double precio1;
       private String referenciaCliente;
       private int nHabitaciones;
       private int cuartosDeBaño;
       private Empleado empleado;
       static final long serialVersionUID = 0L;;
      
       public int getCuartosDeBaño() {
       return cuartosDeBaño;
       }
       public void setCuartosDeBaño(int cuartosDeBaño) {
       this.cuartosDeBaño = cuartosDeBaño;
       }
      
       public int getNHabitaciones() {
       return nHabitaciones;
       }
      
       public void setNHabitaciones(int habitaciones) {
       nHabitaciones = habitaciones;
       }
      
       public double getPrecio1() {
       return precio1;
       }
      
       public void setPrecio1(double precio1) {
       this.precio1 = precio1;
       }
      
      
       @Id //(generate = GeneratorType.AUTO)
       @GeneratedValue
       @Column (name = "Referencia")
       public int getReferencia() {
       return referencia;
       }
      
       public void setReferencia(int referencia) {
       this.referencia = referencia;
       }
      
       public String getReferenciaCliente() {
       return referenciaCliente;
       }
      
       public void setReferenciaCliente(String referenciaCliente) {
       this.referenciaCliente = referenciaCliente;
       }
      
       @ManyToOne
       @JoinColumn (name = "idEmpleado")
       public Empleado getEmpleado() {
       return empleado;
       }
       public void setEmpleado(Empleado empleado) {
       this.empleado = empleado;
       }
      
      }
      
      


      Now I' m going to show the beans

      the name of the file is Empleados.java

      package org.jboss.ejb;
      
      import javax.ejb.Remote;
      
      import org.jboss.miBd.Empleado;
      
      import java.util.List;
      
      @Remote
      public interface Empleados {
       public void addEmpleado(String nombreApellidos);
       public List<Empleado> getAllEmpleados();
      }
      


      this one is EmpleadosBean.java

      package org.jboss.ejb;
      
      import java.util.List;
      import java.util.ArrayList;
      import javax.ejb.Stateless;
      import javax.persistence.Query;
      import javax.persistence.EntityManager;
      import javax.persistence.PersistenceContext;
      
      import org.jboss.miBd.Empleado;
      
      public @Stateless class EmpleadosBean implements Empleados {
      
       @PersistenceContext
       EntityManager em;
      
       public void addEmpleado(String nombreApellidos) {
       Empleado stuff = new Empleado();
       stuff.setNombreApellidos(nombreApellidos);
       em.persist(stuff);
       }
      
       public List<Empleado> getAllEmpleados() {
       ArrayList<Empleado> empleados = new ArrayList<Empleado>();
      
       Query q = em.createQuery("FROM Empleados");
      
       for (Object o: q.getResultList()) {
       empleados.add((Empleado) o);
       }
       return empleados;
       }
      
      }
      


      To the another table the files are

      Propiedades.java

      package org.jboss.ejb;
      
      import java.util.List;
      import javax.ejb.Remote;
      
      import org.jboss.miBd.Empleado;
      import org.jboss.miBd.Propiedad;
      
      @Remote
      public interface Propiedades {
      
       public List<Propiedad> getAllProperties();
      
       public List<Propiedad> getAllPropertiesFromStuff(Empleado empleado);
      
       public void addPropiedad(String ref, double precio1, String refCliente, int nHabitaciones, int nBath, Empleado emp);
      
      
      }
      


      and PropiedadesBean.java
      package org.jboss.ejb;
      
      import java.util.List;
      import java.util.ArrayList;
      
      //import javax.ejb.Remote;
      import javax.ejb.Stateless;
      import javax.persistence.EntityManager;
      import javax.persistence.PersistenceContext;
      import javax.persistence.Query;
      
      
      import org.jboss.miBd.Empleado;
      import org.jboss.miBd.Propiedad;
      
      //@Remote ({PropiedadesBean.class})
      @Stateless
      public class PropiedadesBean implements Propiedades {
      
       @PersistenceContext(unitName="test")
       private EntityManager em;
      
       public void addPropiedad(String ref, double precio1, String refCliente, int nHabitaciones, int nBath, Empleado emp) {
      
       Propiedad propiedad = new Propiedad();
      
       propiedad.setReferenciaCliente(ref);
       propiedad.setCuartosDeBaño(nBath);
       propiedad.setEmpleado(emp);
       propiedad.setNHabitaciones(nHabitaciones);
       propiedad.setPrecio1(precio1);
      
       em.persist(propiedad);
       }
      
       public List<Propiedad> getAllProperties() {
       ArrayList<Propiedad> propiedades = new ArrayList<Propiedad>();
      
       Query q = em.createQuery("From propiedades");
       for (Object o: q.getResultList()) {
       propiedades.add((Propiedad) o);
       }
       return propiedades;
       }
      
       public List<Propiedad> getAllPropertiesFromStuff(Empleado empleado) {
       ArrayList<Propiedad> propiedades = new ArrayList<Propiedad>();
      
       Query q = em.createQuery("From propiedades WHERE idEmpleado = " + empleado.getIdEmpleado());
       for (Object o: q.getResultList()) {
       propiedades.add((Propiedad) o);
       }
       return propiedades;
       }
      }
      


      The last file is the servlet
      package org.jboss.web;
      
      import java.io.IOException;
      import java.io.PrintWriter;
      
      import javax.naming.Context;
      import javax.naming.InitialContext;
      import javax.naming.NamingException;
      import javax.servlet.ServletException;
      import javax.servlet.http.HttpServlet;
      import javax.servlet.http.HttpServletRequest;
      import javax.servlet.http.HttpServletResponse;
      //import java.io.IOException;
      
      import org.jboss.ejb.Propiedades;
      //import org.jboss.ejb.PropiedadesBean;
      import org.jboss.miBd.Propiedad;
      
      public class PropiedadServlet extends HttpServlet {
      
       private Propiedades propiedadesBean;
      
       protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
       super.doPost(req, resp);
      // this.mostrarPropiedades(req, resp);
       }
      
       protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
       String modo = req.getParameter("modo");
       if (modo == null) {
       modo = "mostrar";
       }
      
       if (modo.equals("mostrar")) {
       mostrarPropiedades(req, resp);
       }
       else {
       crearPropiedad(req, resp);
       }
      
       }
      
       public void init() throws ServletException {
       try {
       Context context = new InitialContext();
      // Na<List>context.list();
      // System.out.println(PropiedadesBean.class.getName().toString());
      // this.propiedadesBean = (PropiedadesBean) context.lookup(PropiedadesBean.class.getName());
       this.propiedadesBean = (Propiedades) context.lookup("inmovil/PropiedadesBean/remote");
       } catch (NamingException e) {
       // TODO Auto-generated catch block
       System.out.println(e.getMessage());
      // e.printStackTrace();
       }
      
       }
      
       private void crearPropiedad(HttpServletRequest req, HttpServletResponse resp) throws ServletException ,IOException {
      
       }
      
       private void mostrarPropiedades(HttpServletRequest req, HttpServletResponse resp) throws ServletException ,IOException {
       PrintWriter out = resp.getWriter();
       for (Propiedad prop: this.propiedadesBean.getAllProperties()) {
       out.println("<b>" +
       prop.getReferencia() + "</b>" +
       "<b>" + prop.getReferenciaCliente() + "</b>" +
       "<b>" + prop.getCuartosDeBaño() + "</b>" +
       "<b>" + prop.getNHabitaciones() + "</b>" +
       "<b>" + prop.getPrecio1() + "</b>");
      
       out.println("  ");
       }
       out.println("<form method=\"POST\" action=\"propiedades\">");
       out.println("<input type=\"hidden\" name=\"modo\" value=\"crear\">");
       out.println("<input type=\"submit\" value=\"Crear Propiedad\">");
       out.println("</form>");
      
       }
      }
      


      when I deploy the application it shows some warnigns. Maybe there are the trouble but I don't know.
      10:27:38,826 INFO [Server] Starting JBoss (MX MicroKernel)...
      10:27:38,846 INFO [Server] Release ID: JBoss [Zion] 4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519)
      10:27:38,866 INFO [Server] Home Dir: C:\Archivos de programa\jboss-4.0.4RC1
      10:27:38,866 INFO [Server] Home URL: file:/C:/Archivos de programa/jboss-4.0.4RC1/
      10:27:38,886 INFO [Server] Patch URL: null
      10:27:38,886 INFO [Server] Server Name: default
      10:27:38,886 INFO [Server] Server Home Dir: C:\Archivos de programa\jboss-4.0.4RC1\server\default
      10:27:38,886 INFO [Server] Server Home URL: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/
      10:27:38,886 INFO [Server] Server Temp Dir: C:\Archivos de programa\jboss-4.0.4RC1\server\default\tmp
      10:27:38,896 INFO [Server] Root Deployment Filename: jboss-service.xml
      10:27:40,639 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
      10:27:40,649 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
      10:27:40,649 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      10:27:42,622 INFO [Server] Core system initialized
      10:27:46,237 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      10:27:54,229 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.205:3873/]
      10:27:57,994 INFO [AspectDeployer] Deployed AOP: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/deploy/ejb3-interceptors-aop.xml
      10:28:03,141 INFO [WebService] Using RMI server codebase: http://dani:8083/
      10:28:03,702 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound
      10:28:04,734 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45551;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
      10:28:04,834 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
      10:28:04,924 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      10:28:05,004 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.CacheLoaderInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      class org.jboss.cache.interceptors.CacheStoreInterceptor
      10:28:05,294 INFO [TreeCache] cache mode is REPL_SYNC
      10:28:06,486 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dani:1209
      -------------------------------------------------------
      10:28:08,599 INFO [TreeCache] viewAccepted(): new members: [dani:1209]
      10:28:08,609 INFO [TreeCache] state could not be retrieved (must be first member in group)
      10:28:08,609 INFO [TreeCache] new cache is null (maybe first member in cluster)
      10:28:08,609 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.ejb3.cache.tree.StatefulEvictionPolicy
      10:28:08,609 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 1
      10:28:09,020 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=2;loopback=false;mcast_addr=228.1.2.3;mcast_port=43333;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
      10:28:09,060 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
      10:28:18,343 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      10:28:18,403 INFO [DefaultPartition] Initializing
      10:28:18,654 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dani:1212 (additional data: 18 bytes)
      -------------------------------------------------------
      10:28:20,697 INFO [DefaultPartition] Number of cluster members: 1
      10:28:20,697 INFO [DefaultPartition] Other members: 0
      10:28:20,697 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
      10:28:20,707 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [192.168.1.205:1099]
      10:28:20,737 INFO [DefaultPartition] I am (192.168.1.205:1099) received membershipChanged event:
      10:28:20,737 INFO [DefaultPartition] Dead members: 0 ([])
      10:28:20,737 INFO [DefaultPartition] New Members : 0 ([])
      10:28:20,737 INFO [DefaultPartition] All Members : 1 ([192.168.1.205:1099])
      10:28:21,017 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
      10:28:21,057 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.1.205:1100
      10:28:21,548 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=true, hibernate.cglib.use_reflection_optimizer=false, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.connection.release_mode=after_statement}
      10:28:21,638 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      10:28:21,678 INFO [TreeCache] cache mode is REPL_SYNC
      10:28:21,818 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dani:1215
      -------------------------------------------------------
      10:28:23,831 INFO [TreeCache] state could not be retrieved (must be first member in group)
      10:28:23,831 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.cache.eviction.LRUPolicy
      10:28:23,831 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 5
      10:28:23,831 INFO [TreeCache] viewAccepted(): new members: [dani:1215]
      10:28:23,831 INFO [TreeCache] new cache is null (maybe first member in cluster)
      10:28:26,124 INFO [Embedded] Catalina naming disabled
      10:28:28,177 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      10:28:28,187 INFO [Catalina] Initialization processed in 1772 ms
      10:28:28,187 INFO [StandardService] Starting service jboss.web
      10:28:28,217 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.12
      10:28:28,398 INFO [StandardHost] XML validation disabled
      10:28:28,548 INFO [Catalina] Server startup in 361 ms
      10:28:29,409 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      10:28:31,142 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      10:28:33,154 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=8;loopback=false;mcast_addr=230.1.2.7;mcast_port=45577;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
      10:28:33,185 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      10:28:33,185 INFO [TreeCache] cache mode is REPL_ASYNC
      10:28:34,286 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is dani:1219
      -------------------------------------------------------
      10:28:36,429 INFO [TreeCache] viewAccepted(): new members: [dani:1219]
      10:28:36,439 INFO [TreeCache] state could not be retrieved (must be first member in group)
      10:28:36,439 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      10:28:36,449 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      10:28:36,449 INFO [TreeCache] cache mode is local, will not create the channel
      10:28:36,469 INFO [TreeCache] new cache is null (maybe first member in cluster)
      10:28:37,310 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      10:28:37,741 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      10:28:42,047 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      10:28:43,169 INFO [A] Bound to JNDI name: queue/A
      10:28:43,169 INFO [B] Bound to JNDI name: queue/B
      10:28:43,179 INFO [C] Bound to JNDI name: queue/C
      10:28:43,189 INFO [D] Bound to JNDI name: queue/D
      10:28:43,189 INFO [ex] Bound to JNDI name: queue/ex
      10:28:43,309 INFO [testTopic] Bound to JNDI name: topic/testTopic
      10:28:43,319 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      10:28:43,329 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      10:28:43,329 INFO [testQueue] Bound to JNDI name: queue/testQueue
      10:28:43,439 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      10:28:43,750 INFO [DLQ] Bound to JNDI name: queue/DLQ
      10:28:44,551 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      10:28:45,052 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to JNDI name 'java:MySqlDS'
      10:28:45,252 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      10:28:46,263 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      10:28:47,024 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      10:28:47,115 INFO [JkMain] Jk running ID=0 time=0/401 config=null
      10:28:47,165 INFO [Server] JBoss (MX MicroKernel) [4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519)] Started in 1m:8s:259ms
      10:29:01,615 INFO [Ejb3Deployment] EJB3 deployment time took: 90
      10:29:01,625 INFO [EJB3Deployer] Deployed: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/deploy/inmovil.ejb3
      10:29:01,846 FATAL [PersistenceXmlLoader] test JTA
      10:29:01,886 INFO [Ejb3Deployment] EJB3 deployment time took: 180
      10:29:01,926 INFO [JmxKernelAbstraction] installing MBean: persistence.units:unitName=test with dependencies:
      10:29:01,926 INFO [JmxKernelAbstraction] jboss.jca:name=MySqlDS,service=ManagedConnectionFactory
      10:29:02,286 INFO [Environment] Hibernate 3.1.2
      10:29:02,316 INFO [Environment] hibernate.properties not found
      10:29:02,326 INFO [Environment] using CGLIB reflection optimizer
      10:29:02,336 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      10:29:03,558 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      10:29:03,668 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      10:29:04,900 INFO [SettingsFactory] RDBMS: MySQL, version: 4.1.16-nt
      10:29:04,900 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
      10:29:05,130 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
      10:29:05,591 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      10:29:05,611 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      10:29:05,641 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      10:29:05,641 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
      10:29:05,641 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      10:29:05,641 INFO [SettingsFactory] JDBC batch size: 15
      10:29:05,641 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      10:29:05,641 INFO [SettingsFactory] Scrollable result sets: enabled
      10:29:05,651 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      10:29:05,651 INFO [SettingsFactory] Connection release mode: after_statement
      10:29:05,651 INFO [SettingsFactory] Maximum outer join fetch depth: 2
      10:29:05,651 INFO [SettingsFactory] Default batch fetch size: 1
      10:29:05,651 INFO [SettingsFactory] Generate SQL with comments: disabled
      10:29:05,661 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      10:29:05,661 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      10:29:05,691 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      10:29:05,691 INFO [SettingsFactory] Query language substitutions: {}
      10:29:05,691 INFO [SettingsFactory] Second-level cache: enabled
      10:29:05,691 INFO [SettingsFactory] Query cache: disabled
      10:29:05,691 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      10:29:05,701 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      10:29:05,701 INFO [SettingsFactory] Structured second-level cache entries: disabled
      10:29:05,781 INFO [SettingsFactory] Statistics: disabled
      10:29:05,781 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      10:29:05,821 INFO [SettingsFactory] Default entity-mode: pojo
      10:29:06,032 INFO [SessionFactoryImpl] building session factory
      10:29:06,062 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      10:29:06,082 INFO [SchemaUpdate] Running hbm2ddl schema update
      10:29:06,082 INFO [SchemaUpdate] fetching database metadata
      10:29:06,092 INFO [SchemaUpdate] updating schema
      10:29:06,102 INFO [SchemaUpdate] schema update complete
      10:29:06,122 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      10:29:06,182 INFO [EJB3Deployer] Deployed: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/deploy/inmovil.par
      10:29:06,442 INFO [TomcatDeployer] deploy, ctxPath=/inmovil, warUrl=.../tmp/deploy/tmp17128inmovil-exp.war/
      10:29:07,123 INFO [EARDeployer] Init J2EE application: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/deploy/inmovil.ear
      10:29:07,594 INFO [Ejb3Deployment] EJB3 deployment time took: 0
      10:29:07,664 FATAL [PersistenceXmlLoader] test JTA
      10:29:07,674 INFO [Ejb3Deployment] EJB3 deployment time took: 40
      10:29:07,744 INFO [EJB3Deployer] Deployed: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/tmp/deploy/tmp17129inmovil.ear-contents/inmovil.ejb3
      10:29:07,794 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=inmovil.ear.ear,unitName=test with dependencies:
      10:29:07,794 INFO [JmxKernelAbstraction] jboss.jca:name=MySqlDS,service=ManagedConnectionFactory
      10:29:07,924 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      10:29:07,924 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      10:29:07,924 INFO [SettingsFactory] RDBMS: MySQL, version: 4.1.16-nt
      10:29:07,924 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
      10:29:07,935 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
      10:29:07,935 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      10:29:07,935 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      10:29:07,935 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      10:29:07,935 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
      10:29:07,935 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      10:29:07,935 INFO [SettingsFactory] JDBC batch size: 15
      10:29:07,935 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      10:29:07,935 INFO [SettingsFactory] Scrollable result sets: enabled
      10:29:07,935 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      10:29:07,935 INFO [SettingsFactory] Connection release mode: after_statement
      10:29:07,935 INFO [SettingsFactory] Maximum outer join fetch depth: 2
      10:29:07,935 INFO [SettingsFactory] Default batch fetch size: 1
      10:29:07,935 INFO [SettingsFactory] Generate SQL with comments: disabled
      10:29:07,935 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      10:29:07,945 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      10:29:07,945 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      10:29:07,945 INFO [SettingsFactory] Query language substitutions: {}
      10:29:07,945 INFO [SettingsFactory] Second-level cache: enabled
      10:29:07,945 INFO [SettingsFactory] Query cache: disabled
      10:29:07,945 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      10:29:07,945 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      10:29:07,945 INFO [SettingsFactory] Structured second-level cache entries: disabled
      10:29:07,945 INFO [SettingsFactory] Statistics: disabled
      10:29:07,945 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      10:29:07,945 INFO [SettingsFactory] Default entity-mode: pojo
      10:29:07,965 INFO [SessionFactoryImpl] building session factory
      10:29:07,965 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      10:29:07,965 INFO [SchemaUpdate] Running hbm2ddl schema update
      10:29:07,965 INFO [SchemaUpdate] fetching database metadata
      10:29:07,965 INFO [SchemaUpdate] updating schema
      10:29:07,965 INFO [SchemaUpdate] schema update complete
      10:29:07,965 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      10:29:07,995 INFO [EJB3Deployer] Deployed: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/tmp/deploy/tmp17129inmovil.ear-contents/inmovil.par
      10:29:08,025 INFO [TomcatDeployer] deploy, ctxPath=/propiedades, warUrl=.../tmp/deploy/tmp17129inmovil.ear-contents/inmovil-exp.war/
      10:29:08,595 INFO [EARDeployer] Started J2EE application: file:/C:/Archivos de programa/jboss-4.0.4RC1/server/default/deploy/inmovil.ear

      if I write this address "http://localhost:8080/propiedades/Propiedad" happens

      10:29:43,095 INFO [STDOUT] inmovil not bound


      I hope somebody know where is the problem. And he shows the tunnel's light

      Thanks in advaced and greetings.