[EJB3] - Failed to start service jboss.deployment.unit."ejb.jar".POST_MODULE
by SK Sahu
SK Sahu [https://community.jboss.org/people/sahu_sk9] created the discussion
"Failed to start service jboss.deployment.unit."ejb.jar".POST_MODULE"
To view the discussion, visit: https://community.jboss.org/message/816131#816131
--------------------------------------------------------------
Hi everybody,
I am trying to deploy my ejb on jboss AS 7.1.1 server, but it fails with the error given bellow. please help to solve the issue. here with attached the project for better clarification.
Thanks in advance
SK
10:32:25,974 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
10:32:26,052 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
10:32:26,069 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
10:32:26,085 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
10:32:26,083 INFO [org.jboss.as.connector] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
10:32:26,100 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
10:32:26,128 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
10:32:26,137 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
10:32:26,190 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
10:32:26,197 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
10:32:26,192 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
10:32:26,529 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA
10:32:26,726 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory C:\Jboss\jboss-as-7.1.1.Final\standalone\deployments
10:32:26,729 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment TestERP.jar
10:32:26,786 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:4447
10:32:26,804 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8282
10:32:26,825 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999
10:32:27,053 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
10:32:27,074 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "TestERP.jar"
10:32:27,166 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."TestERP.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."TestERP.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "TestERP.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_16]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_16]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]
Caused by: java.lang.RuntimeException: Error getting reflective information for class com.orava.erp.test.session.TestEJB with ClassLoader ModuleClassLoader for Module "deployment.TestERP.jar:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/hibernate/HibernateException
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_16]
at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_16]
at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_16]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.HibernateException from [Module "deployment.TestERP.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) [rt.jar:1.6.0_16]
... 15 more
10:32:27,214 INFO [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990 http://127.0.0.1:9990
10:32:27,216 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "TestERP.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"TestERP.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"TestERP.jar\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"TestERP.jar\""}}
10:32:27,216 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 2529ms - Started 140 of 218 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
10:32:27,226 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment TestERP.jar in 9ms
10:32:27,228 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."TestERP.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."TestERP.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "TestERP.jar"
10:32:27,233 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"TestERP.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"TestERP.jar\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"TestERP.jar\""}}}}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816131#816131]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[JNDI and Naming] - Re: Cannot map java:/JmsXA to web app resource as java:comp/env/jms/JmsXA
by wolfch
wolfch [https://community.jboss.org/people/wolfch] created the discussion
"Re: Cannot map java:/JmsXA to web app resource as java:comp/env/jms/JmsXA"
To view the discussion, visit: https://community.jboss.org/message/816094#816094
--------------------------------------------------------------
Ok, I gave up on trying to access "java:/JmsXA" from a web app deployment, however I came up with a solution that works. Just make a copy of the connection-factory configuration for "java:/JmsXA" but map this second one to a JNDI name in the global namespace.
Here is the detailed procedure.
h2. ===================== deploy/hornetq/jms-ds.xml ============
Since the JCA RA pooled JMS ConnectionFactory is mapped to "java:/JmsXA" and, for some reason, the "java:" namespace is not accessable from web applications - we will configure another connection factory and map it in the global namespace. The raw XAConnectionFactory is mapped to the global name "/ConnectionFactory", but JBoss does not recommend usage by applications since connections and sessions are not pooled, nor automatically cleaned up.
As such, we need to configure an additional JCA RA pooled JMS ConnectionFactory
Edit $JBOSS_HOME/server/default/deploy/hornetq/jms-ds.xml and add the following entry:
> <tx-connection-factory>
> <jndi-name>JmsXAGlobal</jndi-name>
> <use-java-context>false</use-java-context>
> <xa-transaction/>
> <rar-name>jms-ra.rar</rar-name>
> <connection-definition>org.hornetq.ra.HornetQRAConnectionFactory</connection-definition>
> <config-property name="SessionDefaultType"
> type="java.lang.String">javax.jms.Topic</config-property>
> <config-property name="JmsProviderAdapterJNDI"
> type="java.lang.String">java:/DefaultJMSProvider</config-property>
> <max-pool-size>20</max-pool-size>
> <!-- following configured in conf/login-config.xml -->
> <security-domain-and-application>JmsXAGlobalRealm</security-domain-and-application>
> </tx-connection-factory>
>
h2. ===================== conf/login-config.xml ============
Edit $JBOSS_SERVER/conf/login-config.xml add an application login policy for the newly added JMS connection factory. You're basically just going to copy/paste the one for "JmsXA", then replace the two occurances of the string "JmsXA" with "JmsXAGlobal"
> <application-policy name="JmsXAGlobalRealm">
> <authentication>
> <login-module code="org.jboss.resource.security.ConfiguredIdentityLoginModule"
> flag="required">
> <module-option name="principal">guest</module-option>
> <module-option name="userName">guest</module-option>
> <module-option name="password">guest</module-option>
> <module-option name="managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXAGlobal</module-option>
> </login-module>
> </authentication>
> </application-policy>
>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816094#816094]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[IronJacamar] - JBoss EAP 6.1.0.Beta1 ResourceAdapter Deployed but Not Started or Associated with MCF
by jim_b_o
jim_b_o [https://community.jboss.org/people/jim_b_o] created the discussion
"JBoss EAP 6.1.0.Beta1 ResourceAdapter Deployed but Not Started or Associated with MCF"
To view the discussion, visit: https://community.jboss.org/message/815493#815493
--------------------------------------------------------------
I have a custom ResourceAdapter which includes a ManagedConnectionFactoryImpl. The ResourceAdapter is annotated with @javax.resource.spi.Connector and the ManagedConnectionFactoryImpl is annotated with @javax.resource.spi.ConnectionDefinition and
implements ResourceAdapterAssociation. I have an ironjacamar.xml in the RAR as follows:
<connection-definitions>
<connection-definition jndi-name="java:/eis/TCP" class-name="xxx.TCPConnectionFactoryImpl" />
</connection-definitions>
The problem that I am having is that although the RAR is being deployed and the ConnectionFactory is being bound to JNDI as shown below, the ResourceAdapterAssociation#setResourceAdapter(...) callback on the MCF is never invoked nor is the ResourceAdapter#start(...) method.
12:40:02,153 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-10) JBAS010406: Registered connection factory java:/eis/TCP
12:40:02,156 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-10) IJ020002: Deployed: file:/XXX/jboss-eap-6.1/standalone/tmp/vfs/deploymentf64462aa42d86cdf/XXX-tcp-rar.rar-99e55f11ad53e7dd/contents/
12:40:02,158 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-9) JBAS010401: Bound JCA ConnectionFactory [java:/eis/TCP]
I have @javax.annotation.Resource(lookup = "java:/eis/TCP") references that are injected succesfully but when I obtain a Connection from the Factory the Connection is not useable as it lacks the ResourceAdapter association.
I'm not using MDBs so do not have any @ResourceAdapter annotations anywhere.
This used to work OK with 7.1.3.Final. It appears that something has changed since then. Any ideas on what I might be missing would be appreciated.
Environment:
JCA Subsystem (JBoss IronJacamar 1.0.16.Final-redhat-1)
JBoss EAP 6.1.0.Beta1 (AS 7.2.0.Final-redhat-4)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/815493#815493]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[jBPM] - getTasksAssignedAsPotentialOwner is very slow, How to optimize it?
by silver lee
silver lee [https://community.jboss.org/people/lijiangt] created the discussion
"getTasksAssignedAsPotentialOwner is very slow, How to optimize it?"
To view the discussion, visit: https://community.jboss.org/message/815455#815455
--------------------------------------------------------------
My database is oracle 11g, I use JBPM 5.4, There are 9654 records in TASK table, But getTasksAssignedAsPotentialOwner is very slow, every execute will cost more than 3 seconds.
Anybody has idea to optimize it? thanks.
Sql:
select task0_.id as col_0_0_, task0_.processInstanceId as col_1_0_,
names5_.text as col_2_0_, subjects3_.text as col_3_0_,
descriptio4_.text as col_4_0_, task0_.status as col_5_0_,
task0_.priority as col_6_0_, task0_.skipable as col_7_0_,
task0_.actualOwner_id as col_8_0_, task0_.createdBy_id as col_9_0_,
task0_.createdOn as col_10_0_, task0_.activationTime as col_11_0_,
task0_.expirationTime as col_12_0_, task0_.processId as col_13_0_,
task0_.processSessionId as col_14_0_ from Task task0_
left outer join OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id
left outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id
left outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id
left outer join I18NText descriptio4_ on task0_.id=descriptio4_.Task_Descriptions_Id
left outer join I18NText names5_ on task0_.id=names5_.Task_Names_Id, OrganizationalEntity organizati6_
where task0_.archived=0 and (organizati6_.id='ff8080813962106e0139628fcd28000e' or organizati6_.id in ('chm.teamLeader', 'chm.approver', 'chm.operator')) and
(organizati6_.id in (select potentialo9_.entity_id from PeopleAssignments_PotOwners potentialo9_
where task0_.id=potentialo9_.task_id)) and (names5_.language='en-UK' or (select count(names10_.Task_Names_Id)
from I18NText names10_ where task0_.id=names10_.Task_Names_Id)=0) and (subjects3_.language='en-UK' or
(select count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where task0_.id=subjects11_.Task_Subjects_Id)=0)
and (descriptio4_.language='en-UK' or (select count(descriptio12_.Task_Descriptions_Id) from I18NText descriptio12_
where task0_.id=descriptio12_.Task_Descriptions_Id)=0) and (task0_.status in ('Created' , 'Ready' , 'Reserved' , 'InProgress' , 'Suspended'))
and (task0_.expirationTime is null) order by task0_.id desc;
query explain:
| | OPERATION | OBJECT_NAME | OPTIONS | COST |
| | | images/minus.gif images/gray.png (images/gray.png) |
|
| SELECT STATEMENT |
| | | 417 |
| | | | images/minus.gif images/sortascending_ena.png (images/sortascending_ena.png) |
|
| SORT |
| | ORDER BY | 417 |
| | | | | images/minus.gif images/gray.png (images/gray.png) |
|
| FILTER |
| | | |
| %1,4% | | | | | images/minus.gif images/sigmafilter.png (images/sigmafilter.png) |
|
| 过滤谓词 |
|
| %1,4% | | | | | | images/minus.gif images/and.png (images/and.png) |
|
| AND |
|
| %1,4% | | | | | | | images/minus.gif images/or.png (images/or.png) |
|
| OR |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| NAMES5_.LANGUAGE='en-UK' |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| (SELECT COUNT(NAMES10_.TASK_NAMES_ID) FROM I18NTEXT NAMES10_ WHERE NAMES10_.TASK_NAMES_ID=:B1)=0 |
|
| %1,4% | | | | | | | images/minus.gif images/or.png (images/or.png) |
|
| OR |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| SUBJECTS3_.LANGUAGE='en-UK' |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| (SELECT COUNT(SUBJECTS11_.TASK_SUBJECTS_ID) FROM I18NTEXT SUBJECTS11_ WHERE SUBJECTS11_.TASK_SUBJECTS_ID=:B2)=0 |
|
| %1,4% | | | | | | | images/minus.gif images/or.png (images/or.png) |
|
| OR |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| DESCRIPTIO4_.LANGUAGE='en-UK' |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| (SELECT COUNT(DESCRIPTIO12_.TASK_DESCRIPTIONS_ID) FROM I18NTEXT DESCRIPTIO12_ WHERE DESCRIPTIO12_.TASK_DESCRIPTIONS_ID=:B3)=0 |
|
| | | | | | images/minus.gif images/join.png (images/join.png) |
|
| HASH JOIN |
| | OUTER | 416 |
| %1,4% | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.ID=DESCRIPTIO4_.TASK_DESCRIPTIONS_ID(+) |
|
| | | | | | | images/minus.gif images/join.png (images/join.png) |
|
| HASH JOIN |
| | OUTER | 313 |
| %1,4% | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.ID=SUBJECTS3_.TASK_SUBJECTS_ID(+) |
|
| | | | | | | | images/minus.gif images/join.png (images/join.png) |
|
| HASH JOIN |
| | OUTER | 210 |
| %1,4% | | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.ID=NAMES5_.TASK_NAMES_ID(+) |
|
| | | | | | | | | images/minus.gif images/join.png (images/join.png) |
|
| HASH JOIN |
| | | 107 |
| %1,4% | | | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.ID=POTENTIALO9_.TASK_ID |
|
| | | | | | | | | | images/minus.gif images/join.png (images/join.png) |
|
| NESTED LOOPS |
| | | 61 |
| | | | | | | | | | | images/minus.gif images/gray.png (images/gray.png) |
|
| INLIST ITERATOR |
| | | |
| | | | | | | | | | | | images/minus.gif images/index.png (images/index.png) |
|
| INDEX |
| SYS_C0021801 | UNIQUE SCAN | 1 |
| %1,4% | | | | | | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | | | | | | images/minus.gif images/or.png (images/or.png) |
|
| OR |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| ORGANIZATI6_.ID='chm.approver' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| ORGANIZATI6_.ID='chm.operator' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| ORGANIZATI6_.ID='chm.teamLeader' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| ORGANIZATI6_.ID='ff8080813962106e0139628fcd28000e' |
|
| | | | | | | | | | | images/minus.gif images/sortascending_ena.png (images/sortascending_ena.png) |
|
| SORT |
| | UNIQUE | 19 |
| | | | | | | | | | | | images/minus.gif images/table.png (images/table.png) |
|
| TABLE ACCESS |
| PEOPLEASSIGNMENTS_POTOWNERS | BY INDEX ROWID | 19 |
| | | | | | | | | | | | | images/minus.gif images/index.png (images/index.png) |
|
| INDEX |
| FK1EE418D2C122ED2 | RANGE SCAN | 3 |
| %1,4% | | | | | | | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| ORGANIZATI6_.ID=POTENTIALO9_.ENTITY_ID |
|
| %1,4% | | | | | | | | | | | | | images/minus.gif images/sigmafilter.png (images/sigmafilter.png) |
|
| 过滤谓词 |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/or.png (images/or.png) |
|
| OR |
|
| %1,4% | | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| POTENTIALO9_.ENTITY_ID='chm.approver' |
|
| %1,4% | | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| POTENTIALO9_.ENTITY_ID='chm.operator' |
|
| %1,4% | | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| POTENTIALO9_.ENTITY_ID='chm.teamLeader' |
|
| %1,4% | | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| POTENTIALO9_.ENTITY_ID='ff8080813962106e0139628fcd28000e' |
|
| | | | | | | | | | images/minus.gif images/gray.png (images/gray.png) |
|
| INLIST ITERATOR |
| | | |
| | | | | | | | | | | images/minus.gif images/table.png (images/table.png) |
|
| TABLE ACCESS |
| TASK | BY INDEX ROWID | 46 |
| %1,4% | | | | | | | | | | | images/minus.gif images/sigmafilter.png (images/sigmafilter.png) |
|
| 过滤谓词 |
|
| %1,4% | | | | | | | | | | | | images/minus.gif images/and.png (images/and.png) |
|
| AND |
|
| %1,4% | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.ARCHIVED=0 |
|
| %1,4% | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.EXPIRATIONTIME IS NULL |
|
| | | | | | | | | | | | images/minus.gif images/index.png (images/index.png) |
|
| INDEX |
| TASK_STATUS | RANGE SCAN | 4 |
| %1,4% | | | | | | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | | | | | | images/minus.gif images/or.png (images/or.png) |
|
| OR |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.STATUS='Created' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.STATUS='InProgress' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.STATUS='Ready' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.STATUS='Reserved' |
|
| %1,4% | | | | | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| TASK0_.STATUS='Suspended' |
|
| | | | | | | | | images/minus.gif images/table.png (images/table.png) |
|
| TABLE ACCESS |
| I18NTEXT | FULL | 102 |
| %1,4% | | | | | | | | | images/minus.gif images/sigmafilter.png (images/sigmafilter.png) |
|
| 过滤谓词 |
|
| %1,4% | | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| NAMES5_.TASK_NAMES_ID(+) IS NOT NULL |
|
| | | | | | | | images/minus.gif images/table.png (images/table.png) |
|
| TABLE ACCESS |
| I18NTEXT | FULL | 102 |
| %1,4% | | | | | | | | images/minus.gif images/sigmafilter.png (images/sigmafilter.png) |
|
| 过滤谓词 |
|
| %1,4% | | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| SUBJECTS3_.TASK_SUBJECTS_ID(+) IS NOT NULL |
|
| | | | | | | images/minus.gif images/table.png (images/table.png) |
|
| TABLE ACCESS |
| I18NTEXT | FULL | 102 |
| %1,4% | | | | | | | images/minus.gif images/sigmafilter.png (images/sigmafilter.png) |
|
| 过滤谓词 |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| DESCRIPTIO4_.TASK_DESCRIPTIONS_ID(+) IS NOT NULL |
|
| | | | | | images/minus.gif images/sortascending_ena.png (images/sortascending_ena.png) |
|
| SORT |
| | AGGREGATE | |
| | | | | | | images/minus.gif images/index.png (images/index.png) |
|
| INDEX |
| FK2349686B98B62B | RANGE SCAN | 1 |
| %1,4% | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| NAMES10_.TASK_NAMES_ID=:B1 |
|
| | | | | | images/minus.gif images/sortascending_ena.png (images/sortascending_ena.png) |
|
| SORT |
| | AGGREGATE | |
| | | | | | | images/minus.gif images/index.png (images/index.png) |
|
| INDEX |
| FK2349686BB2FA6B18 | RANGE SCAN | 1 |
| %1,4% | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| SUBJECTS11_.TASK_SUBJECTS_ID=:B1 |
|
| | | | | | images/minus.gif images/sortascending_ena.png (images/sortascending_ena.png) |
|
| SORT |
| | AGGREGATE | |
| | | | | | | images/minus.gif images/index.png (images/index.png) |
|
| INDEX |
| FK2349686B69B21EE8 | RANGE SCAN | 1 |
| %1,4% | | | | | | | images/minus.gif images/sigmakeys.png (images/sigmakeys.png) |
|
| 访问谓词 |
|
| %1,4% | | | | | | | | images/minus.gif images/empty.png (images/empty.png) |
|
| DESCRIPTIO12_.TASK_DESCRIPTIONS_ID=:B1 |
|
|
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/815455#815455]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[JNDI and Naming] - Call JNDI Remotely outside of JAVA
by Haitham Safi
Haitham Safi [https://community.jboss.org/people/haithamnor] created the discussion
"Call JNDI Remotely outside of JAVA"
To view the discussion, visit: https://community.jboss.org/message/807179#807179
--------------------------------------------------------------
Hi expert,
I create JAR file for class in eclipse like:
Package Haitham
import java.io.IOException;
import java.net.URISyntaxException;
import java.rmi.RemoteException;
import java.util.Properties;
import java.util.logging.Logger;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class TracingMessages
{
public static void main(String[] args)
{
}
public static String SendMessages(String Queuename,String msg) throws IOException, URISyntaxException
{
String body="";
try
{
Context init =TracingMessages.getInitialContext();
javax.jms.Queue destination = (javax.jms.Queue) init.lookup("/queue/" +Queuename);
ConnectionFactory connectionFactory = (ConnectionFactory) init.lookup("ConnectionFactory");
Connection connection = connectionFactory.createConnection();//
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(destination);
TextMessage message = session.createTextMessage();
message.setText(msg );
connection.start();
System.out.println("connect strat");
producer.send(message);
body = message.getText();
session.close();
connection.close();
}
catch (Exception e)
{
return(e.toString());
}
return body ;
}
public static Context getInitialContext () throws JMSException,NamingException,RemoteException
{
Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
prop.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
prop.setProperty("java.naming.provider.url", "jnp://127.0.0.1:1099");
Context context = new InitialContext(prop);
return context;}
Then i converts JAR file to DLL after that i used in VISUAL STUDIO 2012 to send message to Jboss 4.2.3 ,it is worning Well if i used inside WINDOWS APPLICATION
but
if i used the same DLL class inside web application i got the follwoing error:
*** javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory***
why??????
*any one have idea?*
*Thanks in advanced
*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807179#807179]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[Beginner's Corner] - java.lang.ExceptionInInitializerError
by Steve Guthrie
Steve Guthrie [https://community.jboss.org/people/girevik] created the discussion
"java.lang.ExceptionInInitializerError"
To view the discussion, visit: https://community.jboss.org/message/811432#811432
--------------------------------------------------------------
Hello all,
I'm new to trying to run JBoss localy, so pleaes forgive me if I don't provide enough information (or too much).
We have some web services that we are currently running on a JBoss server that I'm trying to run locally for debug purposes. I can run the services okay when I execute them as a Junit test, but when I try to run them on a my JBoss 5.1 server within Eclipse I get the below error. If I try to run it a 2nd time I get a different error; a class not found on that same DFClient class (but have verified that the jar it's in is getting deployed). This has got me running in circles. Any help would be hugely appreciated.
Caused by: java.lang.ExceptionInInitializerError
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:700)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.aep.dctm.webservices.beans.DocumentumLogin.getSessionMgr(DocumentumLogin.java:177)
at com.aep.dctm.webservices.beans.DocumentumLogin.getSession(DocumentumLogin.java:139)
at com.aep.dctm.webservices.beans.search.Search.doDocumentumSearch(Search.java:88)
at com.aep.dctm.webservices.search.SearchServiceImpl.getSearchResult(SearchServiceImpl.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:108)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
... 26 more
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at com.documentum.fc.common.impl.preferences.PreferencesManager.readPersistentProperties(PreferencesManager.java:321)
at com.documentum.fc.common.impl.preferences.PreferencesManager.<init>(PreferencesManager.java:37)
at com.documentum.fc.common.DfPreferences.initialize(DfPreferences.java:79)
at com.documentum.fc.common.DfPreferences.getInstance(DfPreferences.java:58)
at com.documentum.fc.impl.RuntimeContext.<clinit>(RuntimeContext.java:177)
... 38 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/811432#811432]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months