[JBoss Portal] - Portlet : SPRING + HIBERNATE + RICHFACES
by guybedo
Hi,
i'm trying to setup a portlet using those frameworks :
- spring 2.5.6
- hibernate-core 3.3.1
- richfaces 3.2.2
i have setup all the configuration files and deployed in jboss portal 2.6.7.
i'm now encoutering the following exception :
Caused by: java.lang.LinkageError: Class org/slf4j/ILoggerFactory violates loader constraints
I don't really know what is causing that.
What i found is that
- my portlet is requiring slfj-api-1.4.2.jar
- another instance of slf4j is required by the deployed jboss-portal.sar. it is slf4f-log4j12.jar
maybe there's a conflict ? i'm currently downloading jboss portal 2.7 hoping it requires another version of slf4j.
thanks for helping me.
COMPLETE STACK TRACE :
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.LinkageError: Class org/slf4j/ILoggerFactory violates loader constraints
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
... 174 more
Caused by: java.lang.LinkageError: Class org/slf4j/ILoggerFactory violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
at org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:75)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103)
at org.hibernate.cfg.Configuration.(Configuration.java:151)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.class$(LocalSessionFactoryBean.java:174)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.(LocalSessionFactoryBean.java:174)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
... 176 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187979#4187979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187979
17 years, 7 months
[JBoss jBPM] - find a process instance
by tbee
I'm a bit confused; the documentation has an example on how to set context variables. In the part where it updates some variables, it takes the following steps:
- findLatestProcessDefinition
- findProcessInstances using the ProcessDefinition's id
- get(0) because in the unit test there can only be one
Now, I find it strange that it is just assumed that a process instance is based on the LATEST process definition. Normally I have a process instance id and have no idea if a newer version of the definition has been uploaded, so I cannot make that assumption.
How do I retrieve the process instance based on just the id? I can probably query the tables, find the definition id from the jbpm_procesinstance table and from there continue, but I assume there must be an API for this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187977#4187977
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187977
17 years, 7 months
[Installation, Configuration & DEPLOYMENT] - Re: Cannot start Jboss
by jesfalso
Thanks for the answer. I have just tried to start it from the run.bat (I have windows XP) and it seems to start but it doen´t load localhost al 8080 port (http://localhost:8080). I have saved the output of jboss when starting and I show it here if it helps. The browser seems to hung.
Thanks.
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\Eclipse\Mi Workspace\jboss-4.2.3.GA
JAVA: C:\Archivos de programa\Java\jdk1.6.0_10\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Archivos de programa\Java\jdk1.6.0_10\lib\tools.jar;C:\Eclipse\Mi Workspace\jboss-4.2.3.GA\bin\run.jar
===============================================================================
18:47:01,953 INFO [Server] Starting JBoss (MX MicroKernel)...
18:47:01,968 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
18:47:01,968 INFO [Server] Home Dir: C:\Eclipse\Mi Workspace\jboss-4.2.3.GA
18:47:01,968 INFO [Server] Home URL: file:/C:/Eclipse/Mi Workspace/jboss-4.2.3.GA/
18:47:01,968 INFO [Server] Patch URL: null
18:47:01,968 INFO [Server] Server Name: default
18:47:01,968 INFO [Server] Server Home Dir: C:\Eclipse\Mi Workspace\jboss-4.2.3.GA\server\default
18:47:01,968 INFO [Server] Server Home URL: file:/C:/Eclipse/Mi Workspace/jboss-4.2.3.GA/server/default/
18:47:01,968 INFO [Server] Server Log Dir: C:\Eclipse\Mi Workspace\jboss-4.2.3.GA\server\default\log
18:47:01,968 INFO [Server] Server Temp Dir: C:\Eclipse\Mi Workspace\jboss-4.2.3.GA\server\default\tmp
18:47:01,968 INFO [Server] Root Deployment Filename: jboss-service.xml
18:47:03,390 INFO [ServerInfo] Java version: 1.6.0_10,Sun Microsystems Inc.
18:47:03,390 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b15,Sun Microsystems Inc.
18:47:03,390 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
18:47:04,484 INFO [Server] Core system initialized
18:47:07,281 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
18:47:07,281 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
18:47:09,781 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
18:47:09,781 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
18:47:10,218 INFO [TransactionManagerService] Starting recovery manager
18:47:10,437 INFO [TransactionManagerService] Recovery manager started
18:47:10,437 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
18:47:14,140 INFO [EJB3Deployer] Starting java:comp multiplexer
18:47:16,765 INFO [NativeServerConfig] JBoss Web Services - Native
18:47:16,765 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
18:47:17,828 INFO [Embedded] Catalina naming disabled
18:47:18,046 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Archivos de programa\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Archivos de programa\MiKTeX 2.5\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\Archivos de programa\MATLAB\R2006b\bin;C:\Archivos de programa\MATLAB\R2006b\bin\win32;c:\matlabr11\bin;c:\archivos de programa\quicktime\qtsystem\;;C:\Archivos de programa\Archivos comunes\GTK\2.0\bin;c:\Archivos de programa\Microsoft SQL Server\90\Tools\binn\;;C:\MATLABR11\bin;;C:\Archivos de programa\SSH Communications Security\SSH Secure Shell
18:47:18,140 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
18:47:18,156 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
18:47:18,156 INFO [Catalina] Initialization processed in 322 ms
18:47:18,156 INFO [StandardService] Arrancando servicio jboss.web
18:47:18,156 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
18:47:18,218 INFO [Catalina] Server startup in 64 ms
18:47:18,421 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
18:47:19,718 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
18:47:19,937 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
18:47:20,156 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
18:47:21,062 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
18:47:21,687 INFO [MailService] Mail Service bound to java:/Mail
18:47:21,890 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
18:47:21,953 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
18:47:22,000 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
18:47:22,046 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
18:47:22,125 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
18:47:22,171 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
18:47:22,234 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
18:47:22,234 INFO [QuartzResourceAdapter] start quartz!!!
18:47:22,312 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
18:47:22,343 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
18:47:22,343 INFO [RAMJobStore] RAMJobStore initialized.
18:47:22,343 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
18:47:22,343 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
18:47:22,343 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
18:47:23,953 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
18:47:24,343 INFO [A] Bound to JNDI name: queue/A
18:47:24,343 INFO [B] Bound to JNDI name: queue/B
18:47:24,343 INFO [C] Bound to JNDI name: queue/C
18:47:24,343 INFO [D] Bound to JNDI name: queue/D
18:47:24,343 INFO [ex] Bound to JNDI name: queue/ex
18:47:24,375 INFO [testTopic] Bound to JNDI name: topic/testTopic
18:47:24,375 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
18:47:24,375 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
18:47:24,375 INFO [testQueue] Bound to JNDI name: queue/testQueue
18:47:24,437 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
18:47:24,484 INFO [DLQ] Bound to JNDI name: queue/DLQ
18:47:24,609 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
18:47:24,765 INFO [TomcatDeployer] deploy, ctxPath=/InteContConfig, warUrl=.../deploy/InteContConfig.war/
18:47:24,968 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
18:47:25,234 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
18:47:25,265 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
18:47:25,312 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 23s:328ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187971#4187971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187971
17 years, 7 months