[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, 3 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, 3 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, 3 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, 3 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, 3 months