[jBPM Users] - Re: Problem moving from 4.1 to 4.2 using Spring configuratio
by suganda
Hi Saraswati,
Thanks for the reply
Below is complete snippet for this weird exception
Spring Configuration
| <?xml version="1.0" encoding="UTF-8"?>
| <beans xmlns="http://www.springframework.org/schema/beans"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:aop="http://www.springframework.org/schema/aop"
| xmlns:tx="http://www.springframework.org/schema/tx"
| xsi:schemaLocation="
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
| http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
| http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
|
| <bean id="dol.jdbcDatasource"
| class="org.springframework.jdbc.datasource.DriverManagerDataSource" lazy-init="true" >
| <property name="driverClassName" value="com.mysql.jdbc.Driver" />
| <property name="url" value="jdbc:mysql://${dol.jdbc.server}:${dol.jdbc.port}/${dol.jdbc.database}" />
| <property name="username" value="${dol.jdbc.loginuser}" />
| <property name="password" value="${dol.jdbc.password}" />
| </bean>
|
| <bean id="dol.hbSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
| <property name="dataSource"> <ref bean="${dol.datasource}"/> </property>
| <property name="mappingLocations">
| <list>
| <value>classpath:com/gda/dol/comp/resources/hibernate/jbpm.repository.hbm.xml</value>
| <value>classpath:com/gda/dol/comp/resources/hibernate/jbpm.execution.hbm.xml</value>
| <value>classpath:com/gda/dol/comp/resources/hibernate/jbpm.history.hbm.xml</value>
| <value>classpath:com/gda/dol/comp/resources/hibernate/jbpm.task.hbm.xml</value>
| <value>classpath:com/gda/dol/comp/resources/hibernate/jbpm.identity.hbm.xml</value>
| </list>
| </property>
| <property name="schemaUpdate" value="false"/>
| <property name="hibernateProperties">
| <props>
| <prop key="hibernate.show_sql">true</prop>
| <prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop>
| <prop key="hibernate.jdbc.batch_size">50</prop>
| <prop key="hibernate.cache.use_second_level_cache">false</prop>
| <prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</prop>
| <prop key="hibernate.cache.provider_class">org.hibernate.cache.OSCacheProvider</prop>
| <prop key="hibernate.current_session_context_class">thread</prop>
| <prop key="hibernate.connection.release_mode">after_transaction</prop>
| </props>
| </property>
| <property name="configLocations">
| <list>
| <value>classpath:com/gda/dol/comp/resources/jbpm/hibernate.cfg.xml</value>
| </list>
| </property>
| </bean>
|
| <bean id="dol.hbTxManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" lazy-init="true">
| <property name="sessionFactory" ref="dol.hbSessionFactory"/>
| </bean>
|
| <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
| <constructor-arg value="com/gda/dol/comp/resources/jbpm/jbpm.cfg.xml" />
| </bean>
|
| <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
| <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
| <bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
| <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
|
| <bean id="_deployService" class="com.gda.dol.comp.jbpm.impl.DeployServiceImpl">
| <property name="repositoryService" ref="repositoryService" />
| </bean>
|
| <bean id="processInformationService"
| class="com.gda.dol.comp.jbpm.impl.ProcessInformationServiceImpl">
| <property name="repositoryService" ref="repositoryService" />
| <property name="executionService" ref="executionService" />
| </bean>
|
| <bean id="simpleProcessService"
| class="com.gda.dol.comp.jbpm.impl.SimpleProcessServiceImpl">
| <property name="repositoryService" ref="repositoryService" />
| <property name="executionService" ref="executionService" />
| </bean>
|
| <bean id="_echoService" class="com.gda.dol.comp.jbpm.impl.EchoServiceImpl" />
|
| <bean id="_initialFillService" class="com.gda.dol.comp.jbpm.impl.InitialFillServiceImpl">
| <property name="repositoryService" ref="repositoryService" />
| </bean>
|
| <bean id="abstractService"
| class="com.gda.abc.xxx.framework.springSupport.SpringServiceFactory"
| abstract="true">
| <property name="transactionManager">
| <ref bean="${dol.application.txManager}" />
| </property>
| <property name="transactionAttributes">
| <props>
| <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
| </props>
| </property>
| </bean>
|
| <bean id="echoService" parent="abstractService">
| <property name="target">
| <ref bean="_echoService" />
| </property>
| <property name="proxyInterfaces">
| <list>
| <value>
| com.gda.dol.comp.jbpm.EchoService
| </value>
| </list>
| </property>
| </bean>
|
| <bean id="initialFillService" parent="abstractService">
| <property name="target">
| <ref bean="_initialFillService" />
| </property>
| <property name="proxyInterfaces">
| <list>
| <value>
| com.gda.dol.comp.jbpm.InitialFillService
| </value>
| </list>
| </property>
| </bean>
|
| <bean id="deployService" parent="abstractService">
| <property name="target">
| <ref bean="_deployService" />
| </property>
| <property name="proxyInterfaces">
| <list>
| <value>
| com.gda.dol.comp.jbpm.DeployService
| </value>
| </list>
| </property>
| </bean>
| </beans>
|
JBPM Configuration
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jbpm-configuration xmlns="http://jbpm.org/xsd/cfg">
|
| <process-engine-context>
|
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <task-service />
| <identity-service />
|
| <command-service name="txRequiredCommandService">
| <retry-interceptor />
| <environment-interceptor transactionManager="dol.hbTxManager"/>
| <spring-transaction-interceptor />
| </command-service>
|
| <deployer-manager>
| <jpdl-deployer />
| </deployer-manager>
|
| <object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
| <field name="commandService"><ref object="txRequiredCommandService" /></field>
| </object>
|
| <object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
|
| <script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment,
| process-engine, spring"
| write-context="">
| <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
| <authentication />
|
| <job-executor auto-start="false" />
|
| <id-generator />
| <types resource="jbpm.variable.types.xml" />
|
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00"/>
| <tuesday hours="9:00-12:00 and 12:30-17:00"/>
| <wednesday hours="9:00-12:00 and 12:30-17:00"/>
| <thursday hours="9:00-12:00 and 12:30-17:00"/>
| <friday hours="9:00-12:00 and 12:30-17:00"/>
| <holiday period="01/07/2008 - 31/08/2008"/>
| </business-calendar>
|
| </process-engine-context>
|
| <transaction-context>
| <repository-session />
| <db-session />
| <pvm-db-session />
| <job-db-session />
| <task-db-session />
| <message-session />
| <timer-session />
| <history-session />
| <!--<transaction />
| <hibernate-session />-->
| <hibernate-session current="true"/>
| <identity-session />
| </transaction-context>
| </jbpm-configuration>
|
hibernate.cfg.xml
| <?xml version="1.0" encoding="utf-8"?>
| <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
| <hibernate-configuration>
| <!--<session-factory name="jbpm4-spring">-->
| <session-factory>
| <property name="hibernate.bytecode.use_reflection_optimizer">false</property>
| </session-factory>
| </hibernate-configuration>
InitialFillServiceImpl class
| public class InitialFillServiceImpl implements InitialFillService{
| private RepositoryService repositoryService;
|
| public void testGanda(){
| /*NewDeployment newDeployment = repositoryService.createDeployment();
| newDeployment.setName("TestSpring");
| newDeployment.setTimestamp(new Date().getTime());
| newDeployment.addResourceFromClasspath("com/gda/dol/comp/jbpm/impl/process.jpdl.xml");
| newDeployment.deploy();*/
| List<Deployment> deploymentIdList = repositoryService.createDeploymentQuery().list();
| for(Deployment deployment : deploymentIdList){
| int i = 1;
| System.out.println("Retrieve element : "+i);
| System.out.println("Deployment ID : "+deployment.getId());
| System.out.println("Deployment Name : "+deployment.getName());
| i++;
| }
| }
|
| public void setRepositoryService(RepositoryService repositoryService) {
| this.repositoryService = repositoryService;
| }
|
| }
|
process.jpdl.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="EndState" xmlns="http://jbpm.org/4.2/jpdl">
|
| <start g="16,96,48,48">
| <transition to="get return code"/>
| </start>
|
| <state name="get return code" g="96,94,110,52">
| <transition name="200" to="ok" g="150,63:-36,11"/>
| <transition name="400" to="bad request" g=":-16,-27"/>
| <transition name="500" to="internal server error" g="150,177:-33,-32"/>
| </state>
|
| <end name="ok" state="completed" g="239,40,48,48"/>
| <end-cancel name="bad request" g="239,97,48,48"/>
| <end-error name="internal server error" g="240,154,48,48"/>
|
| </process>
Same Exception that i have posted earlier.
Yup, I noticed if i make it current="true" for <spring-transaction-interceptor />, I will get another exception something like Mandatory Exception. Thatys why I enable it, and can run with it.
I already double check the table schema, and i have that JBPM4_EXECUTION table because previously i run the script in install directory.
The Weird things is located in this 3 lines in jbpm.cfg.xml
<!--
<hibernate-session />-->
<hibernate-session current="true"/>
if I make current="false" in hibernate-session , I can run my program without any error, I can deploy as well as retrieve information's from JBPM Tables, However the problem ONLY occurs when i set current="true" in hibernate-session which is recommended by everyone including mandatory by JBPM Documentation. I am not sure why this happened ?
any clue ?
Thanks in advance,
Best Regards,
Suganda
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268658#4268658
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268658
16 years, 4 months
[Installation, Configuration & Deployment] - JBoss 5.1.0 and JDK14LoggerPlugin
by ToeCheez
Hi.
We have written several apps that run on JBoss. We are using java.util.logging in the code we have writtten. We are currently using JBoss 4.2.3 and everything is fine. We are in the process of porting it to JBoss 5.1.0 and we cannot get the java.util.logging statements to log to our log file. Here is the run.bat statements:
| set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.config.file="%JBOSS_HOME%\bin\terradatum-logging.properties"
| set JAVA_OPTS=%JAVA_OPTS% "-Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.jdk.JDK14LoggerPlugin"
|
Here is the terradatum-logging.properties:
| # To also add the FileHandler, use the following line instead.
| handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler
|
| # setting to limit messages printed to the console.
| .level=INFO
| com.terradatum.metrics.level=FINEST
| com.terradatum.data.level=FINEST
| com.terradatum.common.level=FINEST
| com.terradatum.menu.level=FINEST
| com.terradatum.mlsupdate.level=FINEST
| com.terradatum.www.level=FINEST
| com.terradatum.agentmetricsonline.level=FINEST
|
| # default file output is in user's home directory.
| java.util.logging.FileHandler.level=FINEST
|
| java.util.logging.FileHandler.pattern=C:/jboss-5.1.0.GA/server/all/log/MetricsServer%u.%g.log
| java.util.logging.FileHandler.limit=1000000
| java.util.logging.FileHandler.count=5
| java.util.logging.FileHandler.formatter=com.terradatum.common.logging.LogFormatter
|
Another thing that happens on start-up is we get this message in the server log:
| AbstractVFSDeploymentContext@31578074{vfsfile:/C:/jboss-5.1.0.GA/server/all/deploy/profileservice-secured.jar/}
| 2009-12-02 09:13:43,009 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss:service=CorbaORB state=Create mode=Manual requiredState=Installed
| java.lang.NullPointerException
| at org.apache.avalon.framework.logger.Log4JLogger.isDebugEnabled(Log4JLogger.java:115)
| at org.jacorb.orb.ORBSingleton.configure(Unknown Source)
| at org.jacorb.orb.ORB.configure(Unknown Source)
| at org.jacorb.orb.ORB.set_parameters(Unknown Source)
| at org.omg.CORBA.ORB.init(ORB.java:337)
| at org.jboss.iiop.CorbaORBService.startService(CorbaORBService.java:297)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy38.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
| at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
| at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
| 2009-12-02 09:13:43,040 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/C:/jboss-5.1.0.GA/server/all/deploy/iiop-service.xml state=PreReal mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=CorbaORB
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
| at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
| at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.NullPointerException
| at org.apache.avalon.framework.logger.Log4JLogger.isDebugEnabled(Log4JLogger.java:115)
| at org.jacorb.orb.ORBSingleton.configure(Unknown Source)
| at org.jacorb.orb.ORB.configure(Unknown Source)
| at org.jacorb.orb.ORB.set_parameters(Unknown Source)
| at org.omg.CORBA.ORB.init(ORB.java:337)
| at org.jboss.iiop.CorbaORBService.startService(CorbaORBService.java:297)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy38.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
| ... 34 more
|
Anyone have any ideas? Thanks for any help.
-ToeCheez
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268654#4268654
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268654
16 years, 4 months
[JBoss Tools Users] - Re: Web Resources folder is empty
by htfv
To have clean results, I decided to make a completely new installation of Eclipse. So I re-downloaded everything and unpacked into a new folder and... it worked. I compared contents of the new Eclipse folder with my usual environment and it turned out that I was using Eclipse 3.5.0 with JBoss Tools 3.1.0.M4 by mistake and not Eclipse 3.5.1. Silly me, I screwed up.
If you are still interested in steps to reproduce, here they are:
| * Download Eclipse 3.5.1 (Galileo SR1) for Java EE from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downlo....
|
| * Unpack eclipse-jee-galileo-SR1-win32.zip to C:\Test-3.5.1.
|
| * Add the following parameter to C:\Test-3.5.1\eclipse\eclipse.ini (required for m2eclipse):
| -vm
| | C:/Program Files (x86)/Java/jdk1.6.0_13/bin/javaw.exe
|
| * Run Eclipse by executing C:\Test-3.5.1\eclipse\eclipse.exe
|
| * Use C:\Test-3.5.1\workspace as workspace.
|
| * Install all components from http://download.eclipse.org/birt/update-site/2.5/.
|
| * Restart Eclipse when requested.
|
| * Install the following components from http://m2eclipse.sonatype.org/update-dev:
|
| | * Maven Integration/*
| | * Maven Projects Configurators/Maven Integration for WTP (Optional)
| | * Maven Projects Configurators/Project configurators for commonly used maven plugins (temporary)
| |
|
| * Restart Eclipse when requested.
|
| * Install all components from http://download.jboss.org/jbosstools/updates/JBossTools-3.1.0.M4/.
|
| * Restart Eclipse when requested.
|
| * Create C:\Test-3.5.1\project\pom.xml with the following content:
| <project xmlns="http://maven.apache.org/POM/4.0.0"
| | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
| |
| | <modelVersion>4.0.0</modelVersion>
| |
| | <groupId>org.htfv.test</groupId>
| | <artifactId>web-resources-test</artifactId>
| | <version>0.0.1-SNAPSHOT</version>
| | <packaging>war</packaging>
| |
| | <build>
| | <plugins>
| | <plugin>
| | <groupId>org.apache.maven.plugins</groupId>
| | <artifactId>maven-compiler-plugin</artifactId>
| | <configuration>
| | <source>1.6</source>
| | <target>1.6</target>
| | </configuration>
| | </plugin>
| | </plugins>
| | </build>
| | </project>
|
| * Select File/Import...
|
| * Select Maven/Existing Maven Projects in the Import dialog, click Next.
|
| * Specify C:\Test-3.5.1\project as root directory (/pom.xml shall be selected automatically) and click Finish.
|
After the last point I wanted to make the first screenshot, but it did work. The Web Resources node in Project Explorer may be expanded and contains files from src/main/webapp (the files are generated when the project is imported).
Sorry for taking your time and... thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268645#4268645
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268645
16 years, 4 months