[Advanced Documentation] - jboss4guide v5 example does not compile
by wenjie_tong
I have downloaded jboss AS 4.04GA and jboss4guide example code. I tried to compile the example code, but allways get error as:
E:\JBOSSD~1\JBOSS4~1\examples>ant
Buildfile: build.xml
validate:
fail_if_not_valid:
init:
[echo] Using jboss.dist=D:/jboss-4.0.4.GA
compile:
[javac] Compiling 139 source files to E:\JBOSSD~1\JBOSS4~1\examples\output\classes
[javac] E:\JBOSSD~1\JBOSS4~1\examples\src\main\org\jboss\chap8\ex3a\service\DistributedCacheService.java:20: package org.jboss.ha.framework.server.util does
exist
[javac] import org.jboss.ha.framework.server.util.DistributedTimedCachePolicy;
[javac] ^
[javac] E:\JBOSSD~1\JBOSS4~1\examples\src\main\org\jboss\chap8\ex3a\service\DistributedCacheService.java:37: cannot find symbol
[javac] symbol : class DistributedTimedCachePolicy
[javac] location: class org.jboss.chap8.ex3a.service.DistributedCacheService
[javac] private DistributedTimedCachePolicy cache;
[javac] ^
[javac] E:\JBOSSD~1\JBOSS4~1\examples\src\main\org\jboss\chap8\ex3a\service\DistributedCacheService.java:47: cannot find symbol
[javac] symbol : class DistributedTimedCachePolicy
[javac] location: class org.jboss.chap8.ex3a.service.DistributedCacheService
[javac] cache = new DistributedTimedCachePolicy(jndiName, partitionName, cacheTimeout);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors
BUILD FAILED
E:\JBOSSD~1\JBOSS4~1\examples\build.xml:85: Compile failed; see the compiler error output for details.
The only thing I did is change is jboss.dist
I have no idea where class DistributedTimedCachePolicy is located .
Please give me some clue,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963941#3963941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963941
19 years, 9 months
[JBoss jBPM] - Re: Programmatically creating workflows
by jmjava
"kukeltje" wrote : I've advised people internally at the company I work for to NOT do this... I mean do not have managers or customers change processes themselves. I know, the business want to skip the tech people, but instead of having them do it themselves (yuck) create a new role, 'process designer' who does some invisible tech work on the days the business suite is not there and use a graphical designer if he is... Works perfectly here.
I understand that in most use cases where JBPM will be used workflow can be controlled by the tech people, but in our use case having managers customize the workflow per person is integral to the solution. What i was hoping is that we could create tested pieces of workflow (possibly define workflow segments that are fully debugged) then allow managers to combine these segments into a "master" workflow.
I don't know alot about JBPM at the moment and i'm not sure JBPM is the product for us - we may need something more flexible. It sounds like JBPM is designed to be used in a set manner. I think we may need something more flexible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963940#3963940
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963940
19 years, 9 months
[JBoss Portal] - NPE using JSTL format
by PeterJ
Trying to use the format taglib in a JSP within a portlet. But use of f:message leads to:
2006-08-08 16:27:05,734 ERROR [org.jboss.portal.core.command.ControllerCommand] Rendering portlet window default.default.ImagePortletWindow triggered the following error :
| ...
| Caused by: java.lang.NullPointerException
| at org.apache.taglibs.standard.tag.common.core.Util.getRequestLocales(Util.java:281)
| at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.findMatch(BundleSupport.java:249)
| at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(BundleSupport.java:186)
| at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(BundleSupport.java:137)
| at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag(MessageSupport.java:153)
| at org.apache.jsp.WEB_002dINF.jsp.edit_jsp._jspx_meth_f_message_0(edit_jsp.java:133)
| at org.apache.jsp.WEB_002dINF.jsp.edit_jsp._jspService(edit_jsp.java:70)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| . . .
|
Looking at the Util class, I see:
public static Enumeration getRequestLocales(HttpServletRequest request) {
| Enumeration values = request.getHeaders("accept-language");
| if (values.hasMoreElements()) { //<== line 281
| // At least one "accept-language". Simply return
| // the enumeration returned by request.getLocales().
| // System.out.println("At least one accept-language");
| return request.getLocales();
| } else {
| // No header for "accept-language". Simply return
| // the empty enumeration.
| // System.out.println("No accept-language");
| return values;
| }
| }
It appears that the portal is stripping the language sent by the browser, and thus returning a null when asked for "accept-language". I even added a supported-locale entry in my portal.xml file, but still get the same NPE.
Does anyone have a JSP using the format JSTL and it works?
JBoss AS 4.0.4.GA, JBoss Portal 2.4.0CR3, Sun JDK 1.5.0_06
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963933#3963933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963933
19 years, 9 months
[JBoss jBPM] - Re: Programmatically creating workflows
by kukeltje
Did you look at the documentation and examples/testcases? This is possible, but watch out with managers customizing workflows. Read all blog by Tom. It depends what you mean by customizing. Changing some parameters or changing flow. If the latter is the case you need an editor for it. Then you most likely want it web based... right... Lots of issues arise then. How do you test these for errors? Do you allow them to do it in production? etc..etc...etc.... I've advised people internally at the company I work for to NOT do this... I mean do not have managers or customers change processes themselves. I know, the business want to skip the tech people, but instead of having them do it themselves (yuck) create a new role, 'process designer' who does some invisible tech work on the days the business suite is not there and use a graphical designer if he is... Works perfectly here.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963931#3963931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963931
19 years, 9 months