[Beginner's Corner] - @RemoteBinding and jboss.xml jndi-name (JBoss 5)
by wooysiah
wooysiah [http://community.jboss.org/people/wooysiah] created the discussion
"@RemoteBinding and jboss.xml jndi-name (JBoss 5)"
To view the discussion, visit: http://community.jboss.org/message/611507#611507
--------------------------------------------------------------
Hi,
I'm a total noob to both JEE as well as JBoss, though a seasoned programmer.
I started out exploring JEE world with Mastering EJB3 (5th edition) - but for good or the bad I use JBoss 5 GA. I stumbled into few problems (mostly with the need for dtd's in xml files), but what intrigues me now is:
Does the @RemoteBinding annotation override jndi-name defined in jboss.xml? In the book it's clearly stated, that the xml files override annotations, alas when I got to example 24.3 and chose a different jndi-binding for the remote interface then the one annotated I got an exception (name not bound).
When I looked to JBoss' console I saw that the name was bound to the value from jboss.xml first and then to the one provided by @RemoteBinding annotation.
Annotations are IMO much more verbose way to state what I want, and _are_ in a bean class, but if they coudn't be overriden by xml descriptors they would loose a lot of their appeal. Am I missing something?
regs,
Pawel
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611507#611507]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - How to force a transition when HttpSession in which task was started is no longer valid
by Sylvain Catudal
Sylvain Catudal [http://community.jboss.org/people/scatudal] created the discussion
"How to force a transition when HttpSession in which task was started is no longer valid"
To view the discussion, visit: http://community.jboss.org/message/611416#611416
--------------------------------------------------------------
Hi all,
I'm currently working on a web form workflow where forms are created, edited, approved and published.
We don't want two users to edit the same form simultaneously so there is a state availableToEdit. From there, a user can start editing the web form. If the user uses the web interface approprietly, it will either go back to availableToEdit or go on to the next state. As you well know, it is impossible to enforce that. This is why I want to know how I can force a transition when the HttpSession in which the task was started is no longer valid.
I know I could create a ServletContextListener that could force those transitions when sessions are destroyed or create a Quartz task that roots them out and do what is needed. But I'm sure I'm not the only one with this kind of problem and it feels like there should be an easy solution within JBPM. Maybe with timers, but I haven't found out yet.
Thanks for your time,
Sylvain
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611416#611416]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Tools] - Jboss crash
by Enrique Skater
Enrique Skater [http://community.jboss.org/people/kike_skater] created the discussion
"Jboss crash"
To view the discussion, visit: http://community.jboss.org/message/611472#611472
--------------------------------------------------------------
Hi when i do "run on serer" my proyect give this error .. HTTP 404. On the console appears this when i start jboss tools .. and nathing happend on the console when i run my proyect.
Any ideas??
thanks!
<code>
11:50:09,368 INFO [Server] Starting JBoss (MX MicroKernel)...
11:50:09,369 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
11:50:09,370 INFO [Server] Home Dir: C:\Jboss
11:50:09,370 INFO [Server] Home URL: file:/C:/Jboss/
11:50:09,371 INFO [Server] Patch URL: null
11:50:09,371 INFO [Server] Server Name: default
11:50:09,371 INFO [Server] Server Home Dir: C:\Jboss\server\default
11:50:09,372 INFO [Server] Server Home URL: file:/C:/Jboss/server/default/
11:50:09,372 INFO [Server] Server Log Dir: C:\Jboss\server\default\log
11:50:09,372 INFO [Server] Server Temp Dir: C:\Jboss\server\default\tmp
11:50:09,372 INFO [Server] Root Deployment Filename: jboss-service.xml
11:50:09,616 INFO [ServerInfo] Java version: 1.6.0_25,Sun Microsystems Inc.
11:50:09,617 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.0-b11,Sun Microsystems Inc.
11:50:09,617 INFO [ServerInfo] OS-System: Windows 7 6.1,amd64
11:50:09,958 INFO [Server] Core system initialized
11:50:11,530 INFO [WebService] Using RMI server codebase: http://localhost:8083/ http://localhost:8083/
11:50:11,532 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
11:50:11,873 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
11:50:11,873 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
11:50:11,998 INFO [TransactionManagerService] Starting recovery manager
11:50:12,060 INFO [TransactionManagerService] Recovery manager started
11:50:12,060 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
11:50:13,993 INFO [EJB3Deployer] Starting java:comp multiplexer
11:50:15,708 INFO [NativeServerConfig] JBoss Web Services - Native
11:50:15,708 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
11:50:16,359 INFO [Embedded] Catalina naming disabled
11:50:16,473 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;native
11:50:16,522 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-localhost%2F127.0.0.1-8080
11:50:16,523 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8081
11:50:16,523 INFO [Catalina] Initialization processed in 164 ms
11:50:16,523 INFO [StandardService] Arrancando servicio jboss.web
11:50:16,526 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
11:50:16,572 INFO [Catalina] Server startup in 48 ms
11:50:16,704 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
11:50:17,165 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
11:50:17,268 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
11:50:17,341 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
11:50:17,932 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
11:50:18,340 INFO [MailService] Mail Service bound to java:/Mail
11:50:18,448 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
11:50:18,491 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
11:50:18,525 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
11:50:18,558 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
11:50:18,617 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
11:50:18,661 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
11:50:18,713 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
11:50:18,725 INFO [QuartzResourceAdapter] start quartz!!!
11:50:18,807 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
11:50:18,824 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
11:50:18,827 INFO [RAMJobStore] RAMJobStore initialized.
11:50:18,828 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
11:50:18,828 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
11:50:18,828 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
11:50:19,454 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
11:50:19,636 INFO [A] Bound to JNDI name: queue/A
11:50:19,638 INFO [B] Bound to JNDI name: queue/B
11:50:19,640 INFO [C] Bound to JNDI name: queue/C
11:50:19,641 INFO [D] Bound to JNDI name: queue/D
11:50:19,642 INFO [ex] Bound to JNDI name: queue/ex
11:50:19,656 INFO [testTopic] Bound to JNDI name: topic/testTopic
11:50:19,658 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
11:50:19,659 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
11:50:19,662 INFO [testQueue] Bound to JNDI name: queue/testQueue
11:50:19,691 INFO [UILServerILService] JBossMQ UIL service available at : localhost/127.0.0.1:8093
11:50:19,716 INFO [DLQ] Bound to JNDI name: queue/DLQ
11:50:19,800 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
11:50:19,826 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
11:50:19,971 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-localhost%2F127.0.0.1-8080
11:50:20,003 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8081
11:50:20,027 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 10s:653ms
<code>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611472#611472]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Tools] - JBosstoolsVisualEditorFAQ
by Vlado Pakan
Vlado Pakan [http://community.jboss.org/people/vpakan] modified the document:
"JBosstoolsVisualEditorFAQ"
To view the document, visit: http://community.jboss.org/docs/DOC-10862
--------------------------------------------------------------
*Q: Which platforms are supported by* *Visual Editor?*
*A:* The list of supported platforms (and their IDs):
* Windows with Java 32-bit (win32.win32.x86)
* Linux x86 (gtk.linux.x86)
* Linux x86-64 (gtk.linux.x86_64)
* Mac OS X Cocoa with Java 32-bit (cocoa.macosx.x86)
* Mac OS X Carbon with Java 32-bit (carbon.macosx.x86) [not supported by JBoss Tools 3.3.0 and later, JBDS 5.0 and later]
In brief, Java 64-bit is supported on Linux only, on all other systems Visual Editor requires Java 32-bit.
*Q: Eclipse crashes when I use Visual Editor, what can I do?*
*A:* This may happen in JBoss Tools 3.3.0.M2 due to https://issues.jboss.org/browse/JBIDE-9144 the WebKit and XULRunner conflict. You can disable Visual Editor by adding the option –Dorg.jboss.tools.vpe.loadxulrunner=false to the eclipse.ini (or jbdevstudio.ini if you use JBoss Developer Studio).
*Q: Visual Editor does not start under Linux*
*A:* Linux users may need to do the following to get the visual editor to work correctly on their machines.
* The Visual Page Editor (before JBoss Tools 3.1.0.M4) requires the library libstdc++.so.5. This library is contained in the compat-libstdc++-33.i386 package.
* To install this package on Fedora Core or Red Hat Enterprise Linux run the following command:
yum install compat-libstdc++-33.i386
** On any other rpm based distributions download libstdc++.so.5 and run the following command:
rpm -Uvh compat-libstdc++-33.i386
** On Debian and Debian based distributions (e.g. Ubuntu) run the following command:
apt-get install libstdc++5
* In case you have the library installed and you still have issue with starting the visual page editor then close all browser views/editors and leave one visual page editor open and restart eclipse. This should force a load of the right XULRunner viewer.
*Q: Visual Editor doesn't start at any platform and shows message 'The VPE editor can't be run because your system environment needs to be changed slightly'*
*A:* Check if you version of JBoss Developer Studio/JBoss Tools is compatible with you version of Eclipse, see the compatibility matrix http://community.jboss.org/docs/DOC-14297 http://www.jboss.org/community/wiki/Matrixofsupportedplatformsruntimesand...
*Q: Visual Editor starts OK, but the following message dialog appears:*
http://community.jboss.org/servlet/JiveServlet/showImage/102-10862-40-195... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-10862-40...
*A:* Some functionality of Visual Editor may not work if a project doesn't have org.jboss.tools.jsf.jsfnature or org.jboss.tools.jst.web.kb.kbnature in .project configuration. To fix this problem and turn off the message box execute next steps:
* Right mouse button click on a project in Package Explorer.
* Select +Configure -> Add JSF Capabilities+ from the context menu.
* Configure your project using +Add JSF Capabilities+ wizard and press Finish.
*P.S.* If you are shure that your project does not need JSF capabilities, just disable this message box by checking "+Do not show this dialog again!+" checkbox.
*Q: Visual Part doesn't start and "XPCOM error -2147467259" is shown*
*A:* Something bad happened with buildin xulrunner. To check it you should:
* Go to Eclipse -> Help -> About -> Installation Details... -> Configuration
* find +org.eclipse.swt.browser.XULRunnerPath+ and open this path in terminal
* try xulrunner.exe -version or ./xulrunner -version and it should show what is needed for XR to work
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-10862]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 9 months
[jBPM] - Unable to load session snapshot
by Francesco Pietrobelli
Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion
"Unable to load session snapshot"
To view the discussion, visit: http://community.jboss.org/message/611223#611223
--------------------------------------------------------------
Hi,
i have a problem about persistence that i don't know how to resolve it. Particularly i'm not able to load a session with some facts into an entry point of working memory.
I have attached a very simple eclipse project in which there is only one rule file and one java class:
In the rule file i define a entry-point called "eventStream"
In java class inside a single transaction i:
1. create a StatefulKnowledgeSession
2. add some facts in entry point
3. dispose session
After that in another transaction i try to load the session, but the following exception is thrown
java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:103)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)
at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:118)
at jpaSession.TestJPASession.loadKnowledgeSession(TestJPASession.java:148)
at jpaSession.TestJPASession.testLoadSessionWithFactsInEntryPoint(TestJPASession.java:97)
at jpaSession.TestJPASession.main(TestJPASession.java:65)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)
... 5 more
Caused by: java.lang.RuntimeException: Unable to load session snapshot
at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:96)
at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:196)
at org.drools.persistence.SingleSessionCommandService.(LeftTuple.java:144)
at org.drools.marshalling.impl.InputMarshaller.readLeftTuple(InputMarshaller.java:599)
at org.drools.marshalling.impl.InputMarshaller.readFactHandles(InputMarshaller.java:372)
at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:220)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:92)
at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:91)
... 12 more
the problem occurs only when i dispose the session with some facts in entry-point, if i insert some facts in workingmemory everything works fine.
does anyone have any suggestion?
i'm using jBPM 5.1 CR1
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611223#611223]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months