[jBPM] - Re: new work item definition: email connection
by Renzo Tomaselli
Renzo Tomaselli [http://community.jboss.org/people/Tomarenz] created the discussion
"Re: new work item definition: email connection"
To view the discussion, visit: http://community.jboss.org/message/622196#622196
--------------------------------------------------------------
Done. Now no more access to Guvnor, log is:
| 2011-08-22 16:10:59,730 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-3) ERROR 22-08 16:10:59,729 (LoggingHelper.java:error:74) | Type '[Lorg.drools.guvnor.client.configurations.Capability;' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = [Lorg.drools.guvnor.client.configurations.Capability;@69b34f89 |
2011-08-22 16:10:59,732 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/drools-guvnor].[securityService]] (http-localhost%2F127.0.0.1-8080-3) Servlet.service() for servlet securityService threw exception
java.lang.NullPointerException
| | at org.drools.guvnor.server.util.LoggingHelper.error(LoggingHelper.java:76) |
| | at org.drools.guvnor.server.SecurityServiceServlet.doUnexpectedFailure(SecurityServiceServlet.java:55) |
| | at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:67) |
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) |
| | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) |
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) |
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) |
| | at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42) |
| | at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65) |
| | at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37) |
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) |
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) |
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) |
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) |
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) |
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) |
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) |
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) |
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) |
| | at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) |
| | at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) |
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) |
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) |
| | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) |
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) |
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) |
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) |
| | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) |
| | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) |
| | at java.lang.Thread.run(Thread.java:619) |
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622196#622196]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss AOP] - Problems when debug EJB intercepted by JBoss AOP
by Gustavo Gomes
Gustavo Gomes [http://community.jboss.org/people/gustavo.gomesc] created the discussion
"Problems when debug EJB intercepted by JBoss AOP"
To view the discussion, visit: http://community.jboss.org/message/622277#622277
--------------------------------------------------------------
I am using the JBoss AOP for intercept a static method.
The jboss-aop.xml used is:
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<interceptor class="com.prana.tools.jee.log.LogInterceptor"
scope="PER_VM" />
<bind pointcut="call(* com.prana.tools.jee.log.Log->getMessageKey(java.lang.Object))
OR call(* com.prana.tools.jee.log.Log->key(java.lang.Object))">
<interceptor-ref name="com.prana.tools.jee.log.LogInterceptor" />
</bind>
</aop>
The EJB class that will be intercepted is:
@Stateless
public class TesteMkImpl implements TesteMkLocal, TesteMkRemote {
private CampoMonetario teste1;
private CampoTexto teste2, teste3;
public TesteMkImpl() {
}
private String test(int a, int b) {
return Boolean.toString(a > b);
}
public void executaTeste() throws TesteMkException {
teste1 = new CampoMonetario(10);
teste2 = new CampoTexto("N");
teste3 = new CampoTexto("B./ID 9004915410/32460");
validaNroControleParticipante2();
validaNroControleParticipante(teste1, teste2, teste3);
if (!teste1.isPreenchido()
|| teste1.getValorBigDecimal().toString().equalsIgnoreCase("")) {
Object[] param = { "Teste", "Teste2" };
throw new TesteMkException(*Log.getMessageKey("teste")*, param);
}
if (!teste1.isPreenchido()
|| teste1.getValorBigDecimal().toString().equalsIgnoreCase("")) {
Object[] param = { "Teste", "Teste2" };
throw new TesteMkException(*Log.getMessageKey("teste")*, param);
}
if (test(5, 6).equalsIgnoreCase("XPTO")) {
Object[] param = { "Teste", "Teste2" };
throw new TesteMkException(*Log.getMessageKey("teste")*, param);
}
if (test(6, 7).equalsIgnoreCase("XPTO")) {
Object[] param = { "Teste", "Teste2" };
throw new TesteMkException(*Log.getMessageKey("teste")*, param);
}
}
private void execute() throws TesteMkException {
int i = 1;
Object[] param = null;
if (Boolean.parseBoolean(test(1, 2))
|| (test(3, 4).equalsIgnoreCase("XPTO"))
|| test(5, 6).equalsIgnoreCase("XYZ")) {
param = new Object[] { "Teste" + i, "Teste" + (i * 2) };
}
i++;
if (Boolean.parseBoolean(test(1, 2))
|| (test(3, 4).equalsIgnoreCase("XPTO"))
|| test(5, 6).equalsIgnoreCase("XYZ")) {
param = new Object[] { "Teste" + i, "Teste" + (i * 2) };
}
i++;
if (Boolean.parseBoolean(test(1, 2))
|| (test(3, 4).equalsIgnoreCase("XPTO"))
|| test(5, 6).equalsIgnoreCase("XYZ")) {
param = new Object[] { "Teste" + i, "Teste" + (i * 2) };
}
i++;
if (Boolean.parseBoolean(test(1, 2))
|| (test(3, 4).equalsIgnoreCase("XPTO"))
|| test(5, 6).equalsIgnoreCase("XYZ")) {
param = new Object[] { "Teste" + i, "Teste" + (i * 2) };
}
i++;
...
repeat this if condition some times.
...
if (Boolean.parseBoolean(test(1, 2))
|| (test(3, 4).equalsIgnoreCase("XPTO"))
|| test(5, 6).equalsIgnoreCase("XYZ")) {
param = new Object[] { "Teste" + i, "Teste" + (i * 2) };
}
i++;
... repe
}
}
And the class that test this EJB is:
public class TesteMkTest {
private TesteMkRemote testeMk;
private TestLookup lookup;
private TesteMkImpl testeMkImpl;
public void setUp() throws Exception {
lookup = new TestLookup();
testeMk = (TesteMkRemote)lookup.getInitialContext().lookup("testeMk/TesteMkImpl/remote");
testeMkImpl = new TesteMkImpl();
}
public void executeRemote() throws TesteMkException{
testeMk.execute();
}
public void executeLocal() throws TesteMkException{
testeMkImpl.execute();
}
public static void main(String[] args) throws Exception {
TesteMkTest test = new TesteMkTest();
test.setUp();
test.executeRemote();
test.executeLocal();
}
}
I deploy the EJB with the interception configuration (jboss-aop.xml) in the JBoss AS 5.1.0.GA that uses JBoss AOP 2.1.1.GA in debug mode.
When I run the test class with a breakpoint on the first line of the method execute of the EJB and step over the method lines, the debug shows the wrong line after some step over on the executeRemote call, but no problems on the executeLocal call.
Does anyone know if this is a bug?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622277#622277]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - Is WorkingMemoryLogger working?
by Lukasz Kozerski
Lukasz Kozerski [http://community.jboss.org/people/lukasz.kozerski] created the discussion
"Is WorkingMemoryLogger working?"
To view the discussion, visit: http://community.jboss.org/message/622265#622265
--------------------------------------------------------------
Hi,
it seems that WorkingMemoryLogger (WorkingMemoryConsoleLogger for example) is not working after session loading.
Example:
StatefulKnowledgeSession session = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, config,
environment);
new WorkingMemoryConsoleLogger(ksession);
In this example logger logs nothing.
Another question. My process looks like:
Start -> Script -> Work Item (which freeze the process - wating for complete) -> Script -> End
When I'm creating new session with WorkingMemoryConsoleLogger and starting the process it logs something like this:
OBJECT ASSERTED value:MyType( id=A, status=A ) factId: 1
BEFORE RULEFLOW VARIABLE CHANGED object=MyType( id=A, status=A ) process:process[id=process]
AFTER RULEFLOW VARIABLE CHANGED object=MyType( id=A, status=A ) process:process[id=process]
BEFORE RULEFLOW STARTED process:process[id=process]
BEFORE PROCESS NODE TRIGGERED node:Start[id=1] process:process[id=process]
BEFORE PROCESS NODE EXITED node:Start[id=1] process:process[id=process]
BEFORE PROCESS NODE TRIGGERED node:Script[id=7] process:process[id=process]
BEFORE PROCESS NODE EXITED node:Script[id=7] process:process[id=process]
BEFORE PROCESS NODE TRIGGERED node:Task[id=5] process:process[id=process]
AFTER PROCESS NODE TRIGGERED node:Task[id=5] process:process[id=process]
AFTER PROCESS NODE TRIGGERED node:Script[id=7] process:process[id=process]
AFTER PROCESS NODE TRIGGERED node:Script[id=7] process:process[id=process]
AFTER PROCESS NODE TRIGGERED node:Start[id=1] process:process[id=process]
AFTER PROCESS NODE TRIGGERED node:Start[id=1] process:process[id=process]
AFTER RULEFLOW STARTED process:process[id=process]
Why there is "NODE TRIGGERED node:Start" after node:Task?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622265#622265]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss Remoting] - How to use a HTTP(S) proxy without system properties?
by Robert Spielmann
Robert Spielmann [http://community.jboss.org/people/rspielmann] created the discussion
"How to use a HTTP(S) proxy without system properties?"
To view the discussion, visit: http://community.jboss.org/message/610667#610667
--------------------------------------------------------------
Hello world,
I'm facing the following situation: I have a webservice client generated by CXF which completely uses JAXWS APIs. A webservice call is supposed to be made through a HTTP/HTTPS proxy server. I rely on JBoss remoting for the call - there is no CXF or Axis implementation involved. Because the affected JBoss is used to run a bunch of applications which sometimes have individual proxy settings, I can NOT use the usual system properties for the proxy configuration.
Now my question is: is there any programmatic way to set proxy options? I read in the remoting guide that you can do things like passing a metadata map into the client call (Remoting Guide, 5.4.11, response = client.invoke(payload, metadata);) - but how would I be able to hook into that invocation?
Any hints would be greatly appreciated!
Regards,
Robert
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/610667#610667]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[Beginner's Corner] - Hibernate mapping resources - org.hibernate.MappingNotFoundException: resource: User.hbm.xml not found
by Red Militante
Red Militante [http://community.jboss.org/people/redmond007] created the discussion
"Hibernate mapping resources - org.hibernate.MappingNotFoundException: resource: User.hbm.xml not found"
To view the discussion, visit: http://community.jboss.org/message/621940#621940
--------------------------------------------------------------
JBoss AS 7.0.1.Final, Hibernate 3. We have a MySQL datasource.
I have mapping resources pointing to *hbm.xml files. I get deployment errors that tell me 'resource: *hbm.xml not found', so entities are not being mapped correctly - this stack trace is due to the User.hbm.xml not being found,
14:44:34,654 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-9) HHH00042:Configuring from file: hibernate.cfg.xml
14:44:34,668 WARN [org.hibernate.internal.util.xml.DTDEntityResolver] (MSC service thread 1-9) HHH00223:Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
14:44:34,670 INFO [org.hibernate.cfg.Configuration] (MSC service thread 1-9) HHH00221:Reading mappings from resource: User.hbm.xml
14:44:34,697 SEVERE [com.mycompany.myapp.common.persistence.HibernateUtil] (MSC service thread 1-9) Initial SessionFactory lookup failed.: org.hibernate.MappingNotFoundException: resource: User.hbm.xml not found
at org.hibernate.cfg.Configuration.addResource(Configuration.java:720) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5]
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2083) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5]
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2055) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5]
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2035) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5]
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1988) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5]
at org.hibernate.cfg.Configuration.configure(Configuration.java:1961) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5]
at com.mycompany.myapp.common.persistence.HibernateUtil.<clinit>(HibernateUtil.java:42) [classes:]
at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:216) [classes:]
at com.mycompany.myapp.common.servlet.SecurityFilter.init(SecurityFilter.java:55) [classes:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
14:44:34,698 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myapp-maventest]] (MSC service thread 1-9) Exception starting filter EnterpriseSecurityFilter: java.lang.NoClassDefFoundError: Could not initialize class com.mycompany.myapp.common.persistence.HibernateUtil
at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:224) [classes:]
at com.mycompany.myapp.common.servlet.SecurityFilter.init(SecurityFilter.java:55) [classes:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
14:44:34,699 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myapp-maventest]] (MSC service thread 1-9) Exception starting filter CompanySecurityFilter: java.lang.NoClassDefFoundError: Could not initialize class com.mycompany.myapp.common.persistence.HibernateUtil
at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:224) [classes:]
at com.mycompany.myapp.common.servlet.SecurityFilter.init(SecurityFilter.java:55) [classes:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
14:44:34,701 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myapp-maventest]] (MSC service thread 1-9) Exception starting filter StationSecurityFilter: java.lang.NoClassDefFoundError: Could not initialize class com.mycompany.myapp.common.persistence.HibernateUtil
at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:224) [classes:]
at com.mycompany.myapp.common.servlet.SecurityFilter.init(SecurityFilter.java:55) [classes:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
14:44:34,702 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myapp-maventest]] (MSC service thread 1-9) Exception starting filter StudioSecurityFilter: java.lang.NoClassDefFoundError: Could not initialize class com.mycompany.myapp.common.persistence.HibernateUtil
at com.mycompany.myapp.common.businessobjects.ServerSettings.GetServerSettings(ServerSettings.java:224) [classes:]
at com.mycompany.myapp.studio.StudioSecurityFilter.init(StudioSecurityFilter.java:46) [classes:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
Our project is structured like
Project
|
|-pom.xml
|
|-src
| |-main
| |-java
| | |-com... businessobjects
| |-resources
| | |-META-INF
| |-webapp
|
|-test
we have hibernate.cfg.xml in src/main/resources/META-INF, and various *.class and *hbm.xml in src/main/java/com/businessobjects/. Our hibernate.cfg.xml looks like
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="datasourceName">java:jboss/datasources/MySqlDS</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping resource="com/mycompany/myapp/common/businessobjects/User.hbm.xml"/>
<mapping resource="com/mycompany/myapp/common/businessobjects/Company.hbm.xml"/>
<mapping resource="com/mycompany/myapp/common/businessobjects/ServerSettings.hbm.xml"/>
<mapping resource="com/mycompany/myapp/common/businessobjects/Station.hbm.xml"/>
</session-factory>
</hibernate-configuration>
I've tried different paths to point to the *hbm.xml files - none seem to work. I've even tried giving it the absolute path to the *hbm.xml files, that didn't work either.
I've also tried copying the *hbm.xml into the same directory as hibernate.cfg.xml - that also didn't work, same error.
Looks like it errors out at this point in the code of my HibernateUtil class
static {
try {
InitialContext ctx = new InitialContext();
Configuration configuration = new Configuration();
Properties properties = new Properties();
sessionFactory = configuration.configure(new File("/path/to/src/main/resources/META-INF/hibernate.cfg.xml")).buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
log.error("Initial SessionFactory lookup failed.", ex);
throw new ExceptionInInitializerError(ex);
}
}
Any ideas what's going on? Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/621940#621940]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - Second login Screen
by hamsterdancer
hamsterdancer [http://community.jboss.org/people/hamsterdancer] created the discussion
"Second login Screen"
To view the discussion, visit: http://community.jboss.org/message/622223#622223
--------------------------------------------------------------
Hi there,
I've got a question to some behavior of the jBPM console I don't understand. I've installed the environment (the full package) on a remote server (that’s important. The local Version works fine).
When the server is started and I log me in, I have to log me in again in the Task-Form-Window when I try to start the task. It doesn't matter who loggs in there, the resulting problem is, when somone else gets a task of the started process and trys to perform it, he get's an exception. The exception says, that the user who has been logged in in the Task-Form-Login-Window has not the permissions to perform the Action "start" ...
Does anybody have an idea what the problem is and how to solve it?
Thanks
Mariano
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622223#622223]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months