[JBoss jBPM] - Parse process definition xml error.
by frankl
With some chinese chars defined in the processdefinition.xml, jbpm-console encountered an error like following:
couldn't parse xml.
Stack trace:
org.jbpm.util.XmlException: couldn't parse xml
at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:68)
at org.jbpm.webapp.tag.jbpm.ui.Coordinates.(Coordinates.java:41)
at org.jbpm.webapp.tag.jbpm.ui.Coordinates.getCoordinates(Coordinates.java:33)
at org.jbpm.webapp.tag.jbpm.renderer.ProcessImageRenderer.encodeBegin(ProcessImageRenderer.java:55)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:792)
at org.jbpm.webapp.tag.jbpm.ui.ComponentBase.doEncode(ComponentBase.java:31)
at org.jbpm.webapp.tag.jbpm.ui.ComponentBase.doEncode(ComponentBase.java:58)
at org.jbpm.webapp.tag.jbpm.ui.Tab.encodeChildren(Tab.java:112)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
at org.jbpm.webapp.application.JbpmViewHandler.renderView(JbpmViewHandler.java:58)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:66)
... 38 more
any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092440#4092440
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092440
18Â years, 8Â months
[Security & JAAS/JBoss] - Question on security model for separate modules
by konstandinos
Hi
I have JBoss AS setup and dedicated to servicing a franchise-based business.
I have a couple of modules deployed in JBoss AS (4.2.1), that are completely unrelated (but together serve a higher purpose). JSPWiki at example.com/wiki/ and JForum at example.com/forum/ - (note: I have enabled forwarding of port 80 to 8080).
I also have a custom built module deployed as ROOT.war, and is hence available at example.com - For all intensive purposes, you can consider this module the "main system module", with the wiki and forum installed for collaboration purposes.
>From what I've read briefly (I'm still wrapping my mind around it), JSPWiki fully supports JAAS. I'm not entirely sure about JForum, but that's ok. With the forum, I just need to secure the top level folder, example.com/forum/ and so long as an authenticated user can access the top-level folder, they have access to the entire forum. With the JSPWiki however, I'd like the JAAS settings to "carry over" to it once the user has signed on at ROOT level, to be able to apply Wiki page-based security (JSPWiki allows this).
So in a nutshell, my user navigates to www.example.com and is prompted to login with a form. Based on their username, they get assigned a role or denied access. Assuming they're authenticated, they proceed to the ROOT.war home page, and from there they either use the main system, or collaborate on the wiki and forum. Based on their role, their access to the wiki is limited, meanwhile access to the forum is a given so long as they managed to log in to begin with.
Fwiw, I aim to use JBoss's DdatabaseServerLoginModule to allow my client's IT admin staff to CRUD users and roles online. We're estimating to have around 400 users at most.
Thus goal is to implement user/role-based security at the ROOT level, that carries over to the wiki/ (fully JAAS) and forum/ (just top-level folder), using DatabaseServerLoginModule. Is this possible?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092432#4092432
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092432
18Â years, 8Â months
[EJB/JBoss] - remote client exception
by tarek7elmy
i have deploy session bean on jboss application server (jboss-4.0.3SP1)
and when i'am trying to debug it remotely(from jdeveloper 10.1.2.2.0) it give Exception when trying to invoke create method
like this :
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
env.put("jnp.disableDiscovery", "true");
Context context = new InitialContext(env);
ArithmeticHome arithmeticHome = (ArithmeticHome)PortableRemoteObject.narrow(context.lookup("java:/Arithmetic"), ArithmeticHome.class);
Arithmetic arithmetic;
arithmetic = arithmeticHome.create();
the error message is
error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp12288testdeploy.ear-contents/testdeploy-exp.war/WEB-INF/classes/
please, can any one help me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092424#4092424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092424
18Â years, 8Â months