[JBoss Seam] - Re: Error Compiling generated entities from Postgre
by vcordaro12
I seemed to have resolved the database connection problem by fixing my jdbc url in seam-gen/build.properties it seems that somehow I got extra backslashes in it.
However my new error has to do with the definition of a column type.
12:47:44,370 INFO [SchemaValidator] Running schema validator
12:47:44,370 INFO [SchemaValidator] fetching database metadata
12:47:44,410 INFO [TableMetadata] table found: adlib.annotation
12:47:44,411 INFO [TableMetadata] columns: [capture_id, end_time, at_name, description, content, updated_on, updated_by, start_time, name, a_id]
12:47:44,424 INFO [TableMetadata] table found: adlib.annotation_tsearch
12:47:44,424 INFO [TableMetadata] columns: [full_text_index, a_id]
12:47:44,426 WARN [ServiceController] Problem starting service persistence.units:ear=adlib_persistence_serivce_generator.ear,unitName=adlib_persistence_serivce_generator
javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: full_text_index, expected: bytea
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
Here is the AnnotationTSearch Entity:
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.validator.NotNull;
/**
* AnnotationTsearch generated by hbm2java
*/
@Entity
@Table(name = "annotation_tsearch")
public class AnnotationTsearch implements java.io.Serializable {
private int AId;
private Annotation annotation;
private Serializable fullTextIndex;
public AnnotationTsearch() {
}
public AnnotationTsearch(int AId, Annotation annotation) {
this.AId = AId;
this.annotation = annotation;
}
public AnnotationTsearch(int AId, Annotation annotation,
Serializable fullTextIndex) {
this.AId = AId;
this.annotation = annotation;
this.fullTextIndex = fullTextIndex;
}
@Id
@Column(name = "a_id", unique = true, nullable = false)
@NotNull
public int getAId() {
return this.AId;
}
public void setAId(int AId) {
this.AId = AId;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "a_id", unique = true, nullable = false, insertable = false, updatable = false)
@NotNull
public Annotation getAnnotation() {
return this.annotation;
}
public void setAnnotation(Annotation annotation) {
this.annotation = annotation;
}
@Column(name = "full_text_index")
public Serializable getFullTextIndex() {
return this.fullTextIndex;
}
public void setFullTextIndex(Serializable fullTextIndex) {
this.fullTextIndex = fullTextIndex;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107841#4107841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107841
18 years, 5 months
[JBossWS] - Re: Webservice not starting in AS 4.2.2
by isthisusernameavailable
"richard.opalka(a)jboss.com" wrote : Hi,
|
| which version of JBossWS are you using? Just FYI there will be a new version of JBossWS 2.0.2 downloadable soon which is well tested on JBossAS 4.2.2. I suggest you to upgrade.
|
| Richard
Hi Richard,
I've upgraded to JBoss 4.2.2 and JbossWS 2.0.2, but I'm still seeing the same problem. Here's sample code that I'm using.
@Remote
| public interface IHelloWorld {
| public String hello();
| }
|
| @Stateless
| @Clustered(partition="DefaultPartition")
| @WebService(serviceName="HelloWorld")
| public class HelloWorld implements IHelloWorld {
| @WebMethod
| public String hello() {
| return "hello, world";
| }
| }
I'm creating a simple jar file with these two classes in it. When I copy this jar file to my deploy directory in JBoss 4.2.1/JBossws 1.2.1, I see this message:
WebService started: http://127.0.0.1:8080/HelloWorldService/HelloWorld
When I deploy it to JBoss 4.2.2/JBossws 2.0.2, I do not see this line, and the web service is not started.
Is there something I need to do to explicitly start the webservice in 4.2.2/2.0.2?
Thanks,
John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107839#4107839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107839
18 years, 5 months
[JBoss Getting Started Documentation] - Re: Duke's Bank Application Problem
by PeterJ
Could you post the full output from running "ant -f jboss-build.xml db-create-table"? Also, what version of JBossAS are you using?
You do have the application server running and Hypersonic configured to open a port, right? You should see console output like this when starting the app server:
09:44:56,713 INFO [STDOUT] [Server@9021e3]: [Thread[hypersonic-default,5,jboss]
]: checkRunning(false) entered
09:44:56,713 INFO [STDOUT] [Server@9021e3]: [Thread[hypersonic-default,5,jboss]
]: checkRunning(false) exited
09:44:56,713 INFO [STDOUT] [Server@9021e3]: Startup sequence initiated from mai
n() method
09:44:56,713 INFO [STDOUT] [Server@9021e3]: Loaded properties from [F:\opt\jbos
s\jboss-4.0.5.GA\bin\server.properties]
09:44:56,713 INFO [STDOUT] [Server@9021e3]: Initiating startup sequence...
09:44:56,729 INFO [STDOUT] [Server@9021e3]: Server socket opened successfully i
n 16 ms.
09:44:57,510 INFO [STDOUT] [Server@9021e3]: Database [index=0, id=0, db=file:F:
\opt\jboss\jboss-4.0.5.GA\server\bank\data\hypersonic\default, alias=] opened su
cessfully in 750 ms.
09:44:57,510 INFO [STDOUT] [Server@9021e3]: Startup sequence completed in 797 m
s.
09:44:57,510 INFO [STDOUT] [Server@9021e3]: 2007-11-26 09:44:57.510 HSQLDB serv
er 1.8.0 is online
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107834#4107834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107834
18 years, 5 months