[JBoss Seam] - Re: Cant able to use stateful bean in project
by kaviarasu
Hi i missed the annotations @Destroy @Remove not while adding the lines
@DataModelSelection
@Out(required=false)
private TblComments1 message;
im getting the error like
java.lang.UnsupportedOperationException: Stateless psuedo-scope does not have a Context object
17:00:10,625 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 17:00:10,625 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21])
| 17:00:10,625 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 17:00:10,625 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21])
| 17:00:10,640 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 17:00:10,640 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21])
| 17:00:10,640 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 17:00:10,640 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=sys/21, BranchQual=, localId=21])
thank u for ur reply
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064217#4064217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064217
19Â years
[JBoss Seam] - Re: flushMode= MANUAL, when does commit happen? And other qu
by ellenzhao
Thanks for Matt's tip, I tried this:
| @Destroy
| @Remove
| public void destroy() {
| UserTransaction tx = Transaction.instance();
| try {
| tx.begin();
| entityManager.remove(entityManager.merge(this.recipe));
| try {
| tx.commit();
| } catch (SecurityException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| } catch (IllegalStateException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| } catch (RollbackException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| } catch (HeuristicMixedException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| } catch (HeuristicRollbackException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| } catch (NotSupportedException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| } catch (SystemException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
|
And got a javax.transaction.NotSupportedException when trying to shut down the jboss during a mother conversation.
I wish Seam could provide something like @Begin(atomic = true). With this "atomic = true" flag on, if this conversation does not reach its own @end before time out or a application server crash, any insert/delete/update in the database could be rolled back, so that a long running conversation can map to an atomic database transaction and the correct semantic of an entity in the database can be guaranteed....Or if there is already something like this or there is some way I can achieve the atomic conversation behaviour, please let me know and I highly appreciate it!
For now I add a "status" flag in the database, my application is aware that only records with the status "created" or "updated" are semantically correct and usable.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064216#4064216
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064216
19Â years
[JBossWS] - Re: Unsupported content type: application/x-www-form-urlenco
by florian79
yes it sounds like a problem with the content-type. But I set the HTTP- HEADER with
'Content-Type':'text/xml'
And I tried the following encode variations:
plain:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><getHalloWorld xmlns="http://hibernate.base.dooris.com/jaws"></getHalloWorld></soap:Body></soap:Envelope>
escape:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A//schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoap%3ABody%3E%3CgetHalloWorld%20xmlns%3D%22http%3A//hibernate.base.dooris.com/jaws%22%3E%3C/getHalloWorld%3E%3C/soap%3ABody%3E%3C/soap%3AEnvelope%3E
encodeURI:
%3C?xml%20version=%221.0%22%20encoding=%22UTF-8%22?%3E%3Csoap:Envelope%20xmlns:soap=%22http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoap:Body%3E%3CgetHalloWorld%20xmlns=%22http://hibernate.base.dooris.com/jaws%22%3E%3C/getHalloWorld%3E%3C/soap:Body%3E%3C/soap:Envelope%3E
and encodeURIComponent:
%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%3E%3Csoap%3ABody%3E%3CgetHalloWorld%20xmlns%3D%22http%3A%2F%2Fhibernate.base.dooris.com%2Fjaws%22%3E%3C%2FgetHalloWorld%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
my HTTP-HEADER :
| Request Headers
| Host 18.nvmodules.netvibes.com
| User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
| Accept text/javascript, text/html, application/xml, text/xml, */*
| Accept-Language de
| Accept-Encoding gzip,deflate
| Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive 300
| Connection close
| Content-Type text/xml
| X-Requested-With XMLHttpRequest
| Referer http://18.nvmodules.netvibes.com/api/uwa/frame/uwa_netvibes.php?id=18&mod...
| Content-Length 324
| Pragma no-cache
| Cache-Control no-cache
|
always the same exception with IE and MOZILLA
is there any example in the web, how to call a jboss-webservice by browser?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064215#4064215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064215
19Â years
[JNDI/Naming/Network] - Re: JNDI Connection Problem! jboss.bind.address always 127.0
by cjc
Hi,
@ vedgunjan: I'm think your problem is something with FW too. If i install a fresh donwloaded JBoss it works well on Windows Server 2003. I havnt installed a Activ directory or somthing like that (dev system!)
maybe write your own programm and bind the requred Port so u can test if it is JBOSS or your system.
Javaservice:
http://forge.objectweb.org/projects/javaservice/
Is a programm to run Javaprogramms as Windows Services under windows.
Try it its creat!
The Directorys for the logfiles (%JBOSS_HOME%/log) must exist or the service will not start and no Error message are Posted!
My installing script to use Javaservice looks something like that:
rem Folgende Parameter nach bedarf anpassen
| rem Javaservice kann man auf http://forge.objectweb.org/project/showfiles.php?group_id=137 runterladen
| rem copy Javaservice.exe and this Script in %JBOSS_HOME%/bin.
| rem rename Javaservice.exe in to %jbossexe%
|
| set JDK_HOME=%JDK_HOME%
| set JBOSS_HOME=%JBOSS_HOME%
| set XMS=64
| set XMX=128
| set OUT_LOG=%JBOSS_HOME%/log/stdout.log
| set ERR_LOG=%JBOSS_HOME%/log/stderr.log
| set dependopt=MySQL
|
| rem -auto / -manual
| set svcmode=-manual
| set jbossexe=JbossService.exe
| set SERVICE_NAME=JBOSS
|
| SET jvmdll=%JDK_HOME%\jre\bin\server\jvm.dll
| SET toolsjar=%JDK_HOME%\lib\tools.jar
| SET jbossjar=%JBOSS_HOME%\bin\run.jar
|
|
| rem remove the following 2 rem's to make this script working!
| rem %jbossexe% -uninstall %SERVICE_NAME%
|
| rem "%jbossexe%" -install %SERVICE_NAME% "%jvmdll%" -Djava.class.path="%jbossjar%;%toolsjar%" -Xms%XMS%M -Xmx%XMX%M -start org.jboss.Main -stop org.jboss.Main -method systemExit -out "%OUT_LOG%" -err "%ERR_LOG%" -current "%JBOSS_HOME%\bin" -depends %dependopt% %svcmode% -overwrite -startup 6
|
| echo bitte das script anpassen!!!
| pause
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064212#4064212
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064212
19Â years