[JBoss jBPM] - Re: Detecting Presence of ProcessInstance Without Exception?
by diathesis
anonymous wrote : There isn't? The source is open.. write a small wrapper, catch the exception and return null.
If we go forward with jBPM, I may well look into contributing something to solve this issue; catching the exception doesn't solve the problem, since it's the creation of an exception (rather, the population of its stack trace) that causes slowdown. I'd have to look deeper and see if there's a way to solve the problem without triggering an exception.
In any case, I'm not ready to commit to that work at this stage, was just trying to learn if there was an existing way to accomplish what I was looking for in the API that I'd missed. There isn't, so, as I said, no big deal, I'll just catch the exception in my code for now, and consider contributing a patch later.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072148#4072148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072148
18Â years, 9Â months
[Management, JMX/JBoss] - ClassNotFound: JBoss Scheduler Service
by eelgueta
Hi All,
I'm trying to implement a Scheduler-compatible class as per instructions on http://www.huihoo.org/jboss/online_manual/3.0/ch13s58.html.
I'm getting a ClassNotFoundException at startup:
2007-08-07 15:40:35,997 DEBUG [org.jboss.system.ServiceConfigurator]
| SchedulableClass set to my.package.MyClass in jboss:service=Scheduler
| 2007-08-07 15:40:35,997 INFO [org.jboss.varia.scheduler.Scheduler] Failed to find: my.package.MyClass
| java.lang.ClassNotFoundException: No ClassLoaders found for: my.package.MyClass
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at
| org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
| at
| org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at...
My ear-deployer.xml already is set to no isolation for the classloaders (http://wiki.jboss.org/wiki/Wiki.jsp?page=Scheduler):
<?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.deployment.EARDeployer"
| name="jboss.j2ee:service=EARDeployer">
| <attribute name="Isolated">false</attribute>
| <attribute name="CallByValue">false</attribute>
| <attribute name="EnablelibDirectoryByDefault">true</attribute>
| </mbean>
| </server>
My class is inside an ejb3 package.
Any hint, much appreciated.
Edo.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072144#4072144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072144
18Â years, 9Â months
[JBoss Portal] - JBoss 2.6 CMS Security Issue
by david.hoffman
I am using jboss-portal-2.6.1.GA using builtin database, auth module, and CMS capabilities.
When I have a window assigned to a region on a page, pointed to CMS content "XYZ", and I have CMS content "XYZ" security set such that the user I am logging into the portal with does not have access to that piece of content, the following shows up inside the context of the window associated with that content:
| Access Denied
| You are not allowed to access the following resource - /default/Common/ServiceAdvisories/default.htm
|
The desired behavior would be for the window to simply disappear and not be available to the user.
In previous versions, we could define multiple instances of the CMS Content Portlet and by setting the permissions on the instance, the window associated with that instance would simply disappear if the user did not have access to it.
Given that "CHANGE IS GOOD", and I don't want to go back to a previous version, how can I achieve the same effect as I was able to achieve previously while still leveraging the latest and greatest CMS functionality and not going off and developing my own JSR 168 porlet.
Because of the way my UI is designed, even being able to make that message (above) be a blank space would solve my problem.
Thank you in advance for any assistance you may be able to offer in this regard.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072142#4072142
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072142
18Â years, 9Â months