Hi all,
I am currently doing a project about j2ee using xdoclet, jboss and java.
I have written a session bean called AdministratorEJB. Then there are 2 entity beans called CounterEJB and ItemEJB. And I have written a servlet and html. When i ant the proj. It works fine. However in the JBOSS dos windows, I saw the following errors.
02:49:01,019 WARN [EntityMetaData] sr.Item: The ejb-name for a CMP 2.x Entity m
ust be a valid Java Identifier
02:49:01,039 WARN [EntityMetaData] sr.Item: The abstract-schema-name must be a
valid Java Identifier 'sr.Item'
02:49:01,049 WARN [EntityMetaData] sr.Counter: The ejb-name for a CMP 2.x Entit
y must be a valid Java Identifier
02:49:01,069 WARN [EntityMetaData] sr.Counter: The abstract-schema-name must be
a valid Java Identifier 'sr.Counter'
02:49:01,300 INFO [EjbModule] Creating
02:49:01,350 INFO [EjbModule] Deploying sr.Item
02:49:01,400 INFO [EjbModule] Deploying sr.Counter
02:49:01,450 INFO [EjbModule] Deploying Administrator
02:49:01,610 INFO [EjbModule] Created
02:49:01,620 INFO [EjbModule] Starting
02:49:02,061 WARN [ServiceController] Problem starting service jboss.j2ee:jndiN
ame=sr/Item,service=EJB
org.jboss.deployment.DeploymentException: Error while creating table; - nested t
hrowable: (java.sql.SQLException: Column not found: ) in statement [CREATE TABLE
SR_COUNTER (counter INTEGER NOT NULL, CONSTRAINT PK_SR_COUNTER PRIMARY KEY ())]
I then tried to try the html. However, when i click submit. It will show me this error at the following page:
HTTP ERROR: 404 /Warehouse/AddItem Not Found
RequestURI=/Warehouse/AddItem
Can someone please help me. I have been trying out and checking all the related files for 2 nights but i just can't solve these 2 problems. I really appreciate any help given.
I am currently doing a project about j2ee using xdoclet, jboss and java.
I have written a session bean called AdministratorEJB. Then there are 2 entity beans called CounterEJB and ItemEJB. And I have written a servlet and html. When i ant the proj. It works fine. However in the JBOSS dos windows, I saw the following errors.
02:49:01,019 WARN [EntityMetaData] sr.Item: The ejb-name for a CMP 2.x Entity m
ust be a valid Java Identifier
02:49:01,039 WARN [EntityMetaData] sr.Item: The abstract-schema-name must be a
valid Java Identifier 'sr.Item'
02:49:01,049 WARN [EntityMetaData] sr.Counter: The ejb-name for a CMP 2.x Entit
y must be a valid Java Identifier
02:49:01,069 WARN [EntityMetaData] sr.Counter: The abstract-schema-name must be
a valid Java Identifier 'sr.Counter'
02:49:01,300 INFO [EjbModule] Creating
02:49:01,350 INFO [EjbModule] Deploying sr.Item
02:49:01,400 INFO [EjbModule] Deploying sr.Counter
02:49:01,450 INFO [EjbModule] Deploying Administrator
02:49:01,610 INFO [EjbModule] Created
02:49:01,620 INFO [EjbModule] Starting
02:49:02,061 WARN [ServiceController] Problem starting service jboss.j2ee:jndiN
ame=sr/Item,service=EJB
org.jboss.deployment.DeploymentException: Error while creating table; - nested t
hrowable: (java.sql.SQLException: Column not found: ) in statement [CREATE TABLE
SR_COUNTER (counter INTEGER NOT NULL, CONSTRAINT PK_SR_COUNTER PRIMARY KEY ())]
I then tried to try the html. However, when i click submit. It will show me this error at the following page:
HTTP ERROR: 404 /Warehouse/AddItem Not Found
RequestURI=/Warehouse/AddItem
Can someone please help me. I have been trying out and checking all the related files for 2 nights but i just can't solve these 2 problems. I really appreciate any help given.