1 Reply Latest reply on Dec 27, 2006 3:24 PM by Syed Rizvi

    javax.persistence does exist

    Syed Rizvi Newbie

      I have download jboss 4.0.4.GA without an installer, downloaded the patch from the following link:
      http://docs.jboss.org/ejb3/app-server/tutorial/installing.html

      ran the install.xml file, the code won't compile as ejb3.deployer and jboss-aop-5.0deployer is not available in server/default/deploy, After the copying then to the location, I am getting the the following errors, I would really appreciate any help.



      D:\workbook\ex04_1>ant
      Buildfile: build.xml

      prepare:

      compile:
      [javac] Compiling 4 source files to D:\workbook\ex04_1\build\classes
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:3: package javax.persistence does not exist
      [javac] import javax.persistence.Entity;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:4: package javax.persistence does not exist
      [javac] import javax.persistence.Table;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:5: package javax.persistence does not exist
      [javac] import javax.persistence.Column;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:6: package javax.persistence does not exist
      [javac] import javax.persistence.Id;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\travelagent\TravelAgentBean.java:4: package javax.persistence does not
      exist
      [javac] import javax.persistence.EntityManager;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\travelagent\TravelAgentBean.java:5: package javax.persistence does not
      exist
      [javac] import javax.persistence.PersistenceContext;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\travelagent\TravelAgentBean.java:12: cannot find symbol
      [javac] symbol : class EntityManager
      [javac] location: class com.titan.travelagent.TravelAgentBean
      [javac] @PersistenceContext(unitName="titan") private EntityManager manager;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:8: cannot find symbol
      [javac] symbol: class Entity
      [javac] @Entity
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:9: cannot find symbol
      [javac] symbol: class Table
      [javac] @Table(name="CABIN")
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:18: cannot find symbol
      [javac] symbol : class Id
      [javac] location: class com.titan.domain.Cabin
      [javac] @Id
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:19: cannot find symbol
      [javac] symbol : class Column
      [javac] location: class com.titan.domain.Cabin
      [javac] @Column(name="ID")
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:29: cannot find symbol
      [javac] symbol : class Column
      [javac] location: class com.titan.domain.Cabin
      [javac] @Column(name="NAME")
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:39: cannot find symbol
      [javac] symbol : class Column
      [javac] location: class com.titan.domain.Cabin
      [javac] @Column(name="DECK_LEVEL")
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:49: cannot find symbol
      [javac] symbol : class Column
      [javac] location: class com.titan.domain.Cabin
      [javac] @Column(name="SHIP_ID")
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\domain\Cabin.java:59: cannot find symbol
      [javac] symbol : class Column
      [javac] location: class com.titan.domain.Cabin
      [javac] @Column(name="BED_COUNT")
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\travelagent\TravelAgentBean.java:12: cannot find symbol
      [javac] symbol : class PersistenceContext
      [javac] location: class com.titan.travelagent.TravelAgentBean
      [javac] @PersistenceContext(unitName="titan") private EntityManager manager;
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:22: warning: [deprecation] com.titan.domain.Cabin
      in com.titan.domain has been deprecated
      [javac] Cabin cabin_1 = new Cabin();
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:22: warning: [deprecation] com.titan.domain.Cabin
      in com.titan.domain has been deprecated
      [javac] Cabin cabin_1 = new Cabin();
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:31: warning: [deprecation] com.titan.domain.Cabin
      in com.titan.domain has been deprecated
      [javac] Cabin cabin_2 = dao.findCabin(1);
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:32: warning: [deprecation] getName() in com.titan.
      domain.Cabin has been deprecated
      [javac] System.out.println(cabin_2.getName());
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:33: warning: [deprecation] getDeckLevel() in com.t
      itan.domain.Cabin has been deprecated
      [javac] System.out.println(cabin_2.getDeckLevel());
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:34: warning: [deprecation] getShipId() in com.tita
      n.domain.Cabin has been deprecated
      [javac] System.out.println(cabin_2.getShipId());
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\clients\Client.java:35: warning: [deprecation] getBedCount() in com.ti
      tan.domain.Cabin has been deprecated
      [javac] System.out.println(cabin_2.getBedCount());
      [javac] ^
      [javac] D:\workbook\ex04_1\src\main\com\titan\travelagent\TravelAgentBean.java:21: warning: [deprecation] com.titan.
      domain.Cabin in com.titan.domain has been deprecated
      [javac] return manager.find(Cabin.class, pKey);
      [javac] ^
      [javac] 16 errors
      [javac] 8 warnings

      BUILD FAILED
      D:\workbook\ex04_1\build.xml:54: Compile failed; see the compiler error output for details.

      Total time: 26 seconds
      D:\workbook\ex04_1>