[Tomcat, HTTPD, Servlets & JSP] - java.lang.NoClassDefFoundError
by Vincent321
Hi guys,
I am facing a very strange problem with JbossAS 4.2.0GA.
I build a very simple servlet with some classes. Everthing compiled successfully, and is built in the war.
Whenever I called the servlet, the following exception is thrown even if the class is there ;-(
java.lang.NoClassDefFoundError com.vince.CustomerDAO
| at com.vince.TokenServlet.doGet(TokenServlet.java:43)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
Any idea will be very appreciated.
Thanks a lot
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119379#4119379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119379
18 years, 6 months
[JBossWS] - Re: How can I change mustUnderstand attribute of wsse:securi
by mariovvl
Thanks for the info! I tried your suggestion but run into another problem:
After I added in my own post handler, the outgoing soap message did not contain the wsse:Security element anymore! I basically got an empty header
| <env:Header/>
|
| my debug log shows:
|
| INFO [STDOUT] org.jboss.ws.soap.SOAPHeaderImpl@1093b10[[env:Header: null]]
| INFO [STDOUT] org.jboss.ws.soap.SOAPBodyImpl@104a340[[env:Body: null]]
| INFO [STDOUT] org.jboss.ws.soap.SOAPHeaderElementImpl@c22b28[[wsse:Security: null]]
|
| .
In my post handler I did not do anything except print out the header child elements as shown below, so I don't understand how the security element got removed. Here's my code and configuration (I'm using jboss4.0.4.GA and jbossws1.0.3.GA):
I added my post-handler to the standard-jbossws-client-config.xml as followed:
<?xml version="1.0" encoding="UTF-8"?>
|
| <!-- $Id: standard-jbossws-client-config.xml 283 2006-05-05 23:08:11Z jason.greene(a)jboss.com $ -->
|
| <jbossws-config xmlns="urn:jboss:jbossws-config:5.0"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
| xsi:schemaLocation="urn:jboss:jbossws-config:5.0 http://www.jboss.com/xml/jbossws-config_1_0.xsd">
| ...
| <client-config>
| <config-name>Standard Secure Client</config-name>
| <post-handler-chain>
| <handler-chain-name>PostHandlerChain</handler-chain-name>
| <handler> <j2ee:handler-name>WSSecurityHandlerOutbound</j2ee:handler-name>
| <j2ee:handler-class>org.jboss.ws.wsse.WSSecurityHandlerOutbound</j2ee:handler-class>
|
| </handler>
| <handler>
| <j2ee:handler-name>MyOutboundHandler</j2ee:handler-name>
| <j2ee:handler-class>org.test.soap.handler.MyOutboundHandler</j2ee:handler-class>
| </handler>
| </post-handler-chain>
| </client-config>
| ...
|
| </jbossws-config>
My handler looks like this:
| public class MyOutboundHandler extends GenericHandler {
| ...
| public MyOutboundHandler () {};
|
| public boolean handleRequest(MessageContext msgContext) {
| SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
| SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope();
|
| SOAPHeader soapHeader = soapEnvelope.getHeader();
| Iterator it4 = soapHeader.getAllAttributes();
| while (it4.hasNext()) {
| System.out.println(it4.next());
| };
|
| Iterator it = soapHeader.getChildElements();
| while (it.hasNext()) {
| System.out.println(it.next());
| };
| }
| ...
| }
|
|
Any idea what I'm doing wrong?
Thanks,
Mario
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119358#4119358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119358
18 years, 6 months
[Persistence, JBoss/CMP, Hibernate, Database] - Id var not updated after persist
by galrub
hello all, using jboss 4.2.2 (red-hat developer studio) and mysql 5;
after doing persist the Id retrun null... here is the code:
1st, the table in DB:
| create table test (
| ID int(10) NOT NULL auto_increment,
| NAME VARCHAR(15),
| PRIMARY KEY (ID)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
the -ds.xml
| <datasources>
| <local-tx-datasource>
| <jndi-name>work.datasource</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/work</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>un</user-name>
| <password>pw</password>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
| <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
the persistence.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" ...............
| <persistence-unit name="tester" transaction-type="JTA">
| <jta-data-source>java:/work.datasource</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
| <property name="hibernate.show_sql" value="true"/>
| </properties>
| </persistence-unit>
| </persistence>
|
the entity, manager, end tester EJB's:
| @Entity
| @Table(name = "test")
| public class TestEntity implements Serializable
| {
| @Id
| @Column(name = "id")
| @GeneratedValue
| private Integer someId;
|
| @Column(name = "name")
| private String someName;
|
| getters/Setters.......
|
| public String toString()
| {
| return "id = " + someId + ", Name = " + someName;
| }
| }
|
| public @Stateless class TestManagerBean implements TestManager
| {
| private String GET_BY_ID_EJBQL = "SELECT x FROM TestEntity x WHERE x.id = ?";
|
| @PersistenceContext(unitName="tester")
| private EntityManager manager;
|
| public void create(TestEntity test)
| {
| manager.persist(test);
| }
|
| public TestEntity getById(Integer id)
| {
| return (TestEntity) manager.createQuery(
| GET_BY_ID_EJBQL).setParameter(1, id).getSingleResult();
| }
|
| }
|
| public @Stateless class RunTestBean implements RunTest
| {
|
| @EJB private TestManager manager;
|
| public void test()
| {
| TestEntity testEntity = new TestEntity();
| testEntity.setSomeName("abcd");
| manager.create(testEntity);
| System.out.println("return = " + testEntity);
| }
|
| }
|
|
there is also a standalone the looks up "RunTestBean/remote"
and execute test().
the output print out is:
15:12:00,852 INFO [STDOUT] return = id = null, Name = abcd
can anyone tell me how to "persuade" the container to kindly update the id
from the table (the persist works, got a new line in table!).
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119327#4119327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119327
18 years, 6 months
[JBoss Seam] - Problem with validation and entityHome
by fjgarmu
Hi everybody, first overall I' m newbie in seam development.
I've developed an application generated with seamgen JBOSS-SEAM 1.2.1-GA.
The application has a ReportsHome class that extends from EntityHome.
| public class ReportsHome extends EntityHome<Reports> {
| ...
| }
|
On the model in the Reports class i ve written a constraint
| @AssertFalse(message="You must assign an author before close the report")
| public boolean isok(){
| return (authors.getId()==0 && reportstatus.getId()>=4);
| }
|
In my view i ve put a tag s:validateAll that enclose all the items that must be validated.
In theory i think it is all to use validation in seam.
But when isok is true the application crashes and go to the debug page. The expected behavior is the message that inform about the assert error.
There is something wrong in the application?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119323#4119323
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119323
18 years, 6 months
[JBossWS] - Re: WS-Attachment on jbossws
by paoletto
thanks for clarification.. i had a look on jbossws 2.0.1 examples now, but there is something i dont yet understand:
actually what i would expect is to have some api to "attach" a DataHandler to a web service invocation.
for example, im trying to invoke a web service exposed by ActiveBPEL engine which takes an array of strings.
ActiveBPEL engine provides a set of methods to get attachments from an incoming invocation, but as far as i understood, these attachments dont have to be declared among invocation parameters.
So what i would expect is a way to attach a payload (attachment) to my invocation without the need of having declared it somewhere..
is this possible with jbossws?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119322#4119322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119322
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - jboss-4.2.2.GA on Win2K3 does not respond to HTTP requests
by transclusion
Hi all,
Need help with jboss-4.2.2.GA on Win2K3 with JDK 1.5.0.14 that does not respond to http://localhost:8080 (and http://127.0.0.1:8080) requests. Tested both with MSIE and Firefox, still getting a request timeout error after quite a long time (>10 min).
Using netstat -ab, indicates that port 8080 is listening:
TCP myMachine:8080 myMachine:0 LISTENING 5304
| [java.exe]
Startup has as follows:
===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: D:\JBoss4.2.2\jboss-4.2.2.GA
|
| JAVA: D:\Program Files\Java\jdk1.5.0_14\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcIn
| terval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: D:\Program Files\Java\jdk1.5.0_14\lib\tools.jar;D:\JBoss4.2.2\jboss
| -4.2.2.GA\bin\run.jar
|
| ===============================================================================
|
| 13:54:18,671 INFO [Server] Starting JBoss (MX MicroKernel)...
| 13:54:18,671 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
| JBoss_4_2_2_GA date=200710221139)
| 13:54:18,671 INFO [Server] Home Dir: D:\JBoss4.2.2\jboss-4.2.2.GA
| 13:54:18,671 INFO [Server] Home URL: file:/D:/JBoss4.2.2/jboss-4.2.2.GA/
| 13:54:18,671 INFO [Server] Patch URL: null
| 13:54:18,671 INFO [Server] Server Name: default
| 13:54:18,671 INFO [Server] Server Home Dir: D:\JBoss4.2.2\jboss-4.2.2.GA\server
| \default
| 13:54:18,671 INFO [Server] Server Home URL: file:/D:/JBoss4.2.2/jboss-4.2.2.GA/
| server/default/
| 13:54:18,671 INFO [Server] Server Log Dir: D:\JBoss4.2.2\jboss-4.2.2.GA\server\
| default\log
| 13:54:18,687 INFO [Server] Server Temp Dir: D:\JBoss4.2.2\jboss-4.2.2.GA\server
| \default\tmp
| 13:54:18,687 INFO [Server] Root Deployment Filename: jboss-service.xml
| 13:54:18,953 INFO [ServerInfo] Java version: 1.5.0_14,Sun Microsystems Inc.
| 13:54:18,953 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_14-b03
| ,Sun Microsystems Inc.
| 13:54:18,953 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
| 13:54:19,359 INFO [Server] Core system initialized
| 13:54:21,265 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083
| /
| 13:54:21,281 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
| ce:jboss-log4j.xml
| 13:54:21,781 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
| version) - JBoss Inc.
| 13:54:21,781 INFO [TransactionManagerService] Setting up property manager MBean
| and JMX layer
| 13:54:21,984 INFO [TransactionManagerService] Starting recovery manager
| 13:54:22,078 INFO [TransactionManagerService] Recovery manager started
| 13:54:22,078 INFO [TransactionManagerService] Binding TransactionManager JNDI R
| eference
| 13:54:25,093 INFO [EJB3Deployer] Starting java:comp multiplexer
| 13:54:25,406 INFO [STDOUT] no object for null
| 13:54:25,406 INFO [STDOUT] no object for null
| 13:54:25,421 INFO [STDOUT] no object for null
| 13:54:25,453 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
| 13:54:25,453 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
| 13:54:27,484 INFO [NativeServerConfig] JBoss Web Services - Native
| 13:54:27,484 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=20071021
| 0837)
| 13:54:28,453 INFO [Embedded] Catalina naming disabled
| 13:54:28,609 INFO [AprLifecycleListener] The Apache Tomcat Native library which
| allows optimal performance in production environments was not found on the java
| .library.path: D:\Program Files\Java\jdk1.5.0_14\bin;.;D:\WINDOWS\system32;D:\WI
| NDOWS;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program Files\M
| icrosoft SQL Server\80\Tools\Binn\;D:\Program Files\ATI Technologies\ATI.ACE\;D:
| \Program Files\Microsoft SQL Server\90\Tools\binn\;D:\Program Files\Java\jre1.5.
| 0_07;D:\Program Files\Microsoft SQL Server\90\DTS\Binn\;D:\Program Files\Microso
| ft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files\Microsoft Visu
| al Studio 8\Common7\IDE\PrivateAssemblies\;d:\WATCOM\BINNT;d:\WATCOM\BINW;;D:\WI
| NDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program Files\Microsoft SQ
| L Server\80\Tools\Binn\;D:\Program Files\ATI Technologies\ATI.ACE\;D:\Program Fi
| les\Microsoft SQL Server\90\Tools\binn\;D:\Program Files\Java\jre1.5.0_07;D:\Pro
| gram Files\Microsoft SQL Server\90\DTS\Binn\;D:\Program Files\Microsoft SQL Serv
| er\90\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files\Microsoft Visual Studio 8
| \Common7\IDE\PrivateAssemblies\;d:\WATCOM\BINNT;d:\WATCOM\BINW;C:\PROGRA~1\COMMO
| N~1\MUVEET~1\030625
| 13:54:28,687 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0
| .1-8080
| 13:54:28,687 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80
| 09
| 13:54:28,687 INFO [Catalina] Initialization processed in 243 ms
| 13:54:28,687 INFO [StandardService] Starting service jboss.web
| 13:54:28,703 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
| 13:54:28,750 INFO [Catalina] Server startup in 62 ms
| 13:54:28,859 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w
| eb.deployer/ROOT.war/
| 13:54:29,421 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
| http-invoker.sar/invoker.war/
| 13:54:29,546 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/
| jbossws.sar/jbossws-context.war/
| 13:54:29,640 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
| deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 13:54:30,328 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
| loy/management/console-mgr.sar/web-console.war/
| 13:54:30,750 INFO [MailService] Mail Service bound to java:/Mail
| 13:54:31,218 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-ha-local-jdbc.rar
| 13:54:31,250 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 13:54:31,281 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-local-jdbc.rar
| 13:54:31,312 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-xa-jdbc.rar
| 13:54:31,359 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jms/jms-ra.rar
| 13:54:31,390 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/mail-ra.rar
| 13:54:31,437 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/quartz-ra.rar
| 13:54:31,437 INFO [QuartzResourceAdapter] start quartz!!!
| 13:54:31,515 INFO [SimpleThreadPool] Job execution threads will use class loade
| r of thread: main
| 13:54:31,546 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 13:54:31,546 INFO [RAMJobStore] RAMJobStore initialized.
| 13:54:31,546 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
| r' initialized from default resource file in Quartz package: 'quartz.properties'
|
| 13:54:31,546 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 13:54:31,546 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
| TERED started.
| 13:54:32,125 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
| oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 13:54:32,375 INFO [A] Bound to JNDI name: queue/A
| 13:54:32,375 INFO [B] Bound to JNDI name: queue/B
| 13:54:32,375 INFO [C] Bound to JNDI name: queue/C
| 13:54:32,375 INFO [D] Bound to JNDI name: queue/D
| 13:54:32,375 INFO [ex] Bound to JNDI name: queue/ex
| 13:54:32,390 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 13:54:32,390 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 13:54:32,390 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
|
| 13:54:32,406 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 13:54:32,453 INFO [UILServerILService] JBossMQ UIL service available at : /127.
| 0.0.1:8093
| 13:54:32,484 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 13:54:32,593 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
| oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 13:54:32,640 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
| loy/jmx-console.war/
| 13:54:32,828 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
| 080
| 13:54:32,843 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 13:54:32,859 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
| s_4_2_2_GA date=200710221139)] Started in 14s:172ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119321#4119321
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119321
18 years, 6 months
[JBoss Seam] - Adding dependencies to a Seam Eclipse (with JBoss Tools) EAR
by stian
When I create an Eclipse EAR project I get four "projects" in Eclipse:
projectname
projectname-ear
projectname-ejb
projectname-test
When I right click on projectname and select "New Seam Action" it creates java files in projectname-ejb/ejbModule and some xhtml-files in projectname/WebContent. I assume this is the correct beahviour?
projectname-ejb/ has a classpath container called EAR Libraries that references the libraries in projectname-ear/EarContent that was automatically added when I created a new Seam web project. If I try to edit this classpath container Eclipse tells me that "The EAR Libraries classpath container dynamically computes the J2EE project's module classpath dependencies using the META-INF/MANIFEST.MF Class-Path entries."
So I have tried adding my jar libraries directly to projectname-ear/EarContent, updating application.xml, and updating MANIFEST.MF but of no use. So, how do I properly add extra jars to my project that is accesible for the files in "project-name-ejb/ejbModule" (if this is where the files are supposed to be)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119319#4119319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119319
18 years, 6 months
[JBoss Seam] - is it possible to run seam gen for certain tables of the dat
by Mussie
Hello forum,
I tried to create a crud application from an existing database with seam-gen. I created a new project, but when trying to generate entities I get following error:
| ObjectName: persistence.units:ear=EclipseConnecsi.ear,unitName=EclipseConnecsi
| State: FAILED
| Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: SMOKING, expected: bit
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=EclipseConnecsiDatasource
|
Smoking is an attribute of the Booking table from the booking seam example, so I don't understand why the generator expects a certain value.
Then I tried to drop the table and run seam gen again then following error appeared:
ObjectName: persistence.units:ear=EclipseConnecsio.ear,unitName=EclipseConnecsio
| State: FAILED
| Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: MESSAGEBLOB, expected: varbinary(255)
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=EclipseConnecsioDatasource
|
Messageblob is an attribute from the table JMS_Messages unfortunately I can't drop that table.
So has anyone an idea what these errors mean and is it possible to create a crud application from a certain table of my database since I don't need all the tables in my database.
By the way I'm running my hsqldb in server-mode maybe this is important to know for solving the problem.
I'd appreciate any hints I spend the whole day trying to solve this problem.
thanks and best regards,
Mussie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119312#4119312
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119312
18 years, 6 months