JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
May 30, 2023, 06:55:00 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Can't Building the JPPF resource adapter  (Read 6648 times)

ygzx_114

  • Guest
Can't Building the JPPF resource adapter
« on: February 07, 2012, 07:55:18 AM »

Hello,
   As the JPPF_User-Guid, at the section 9.3.3 Building the JPPF resource adapter. I followed the following steps:
  1. Open a command prompt
  2. Go to the JPPF-x.y-j2ee-connector folder
  3. Enter “ant build”
  4. The resulting .rar and .ear files are generated in the “build” subfolder

  It was failed at setp3.

  D:\JPPF-3.0-j2ee-connector>ant build
Buildfile: D:\JPPF-3.0-j2ee-connector\build.xml

clean:

init:

compile:
     [echo] compiling the project...
    [javac] D:\JPPF-3.0-j2ee-connector\build.xml:115: warning: 'includeantruntim
e' was not set, defaulting to build.sysclasspath=last; set to false for repeatab
le builds
    [javac] Compiling 22 source files to D:\JPPF-3.0-j2ee-connector\classes\jca

BUILD FAILED
D:\JPPF-3.0-j2ee-connector\build.xml:115: D:\JPPF\lib does not exist.

Total time: 1 second

D:\JPPF-3.0-j2ee-connector>
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Can't Building the JPPF resource adapter
« Reply #1 on: February 07, 2012, 08:39:02 AM »

Hello,

I have registered this as a JPPF bug: 3485206 - J2EE connector build fails
We are working on a fix. In the meantime, the best would be to work with the full source package (i.e. JPPF-3.0-full-src.zip) and build from the "JPPF-3.0-full-src/jca-client" folder.
Can you try that and let us know if this works for you?

Thanks,
-Laurent
Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #2 on: February 07, 2012, 09:15:15 AM »

Hello  Laurent,
    Thanks for the quickly reply, It works ok when used the full source package.

    sincerely
    DoubleT     
Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #3 on: February 09, 2012, 07:29:44 AM »

Hello Laurent,
    I used  "JPPF-3.0-full-src/jca-client" folder, and deployed in Jboss-7.
    I started a driver and a node at localhost.
    when I enter "http://localhost:8080/jppftest", it works ok.
    but when I click the button "submit" in the index.jsp, there is a Exception

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.naming.NameNotFoundException: java:eis/JPPFConnectionFactory
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
   org.apache.jsp.index_jsp._jspService(index_jsp.java:263)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)


root cause

javax.naming.NameNotFoundException: java:eis/JPPFConnectionFactory
   org.jboss.as.naming.InitialContext.lookup(InitialContext.java:95)
   org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213)
   javax.naming.InitialContext.lookup(InitialContext.java:392)
   org.jppf.jca.demo.JPPFHelper.getConnection(JPPFHelper.java:68)
   org.jppf.jca.demo.J2EEDemo.testConnectorBlocking(J2EEDemo.java:157)
   org.apache.jsp.index_jsp._jspService(index_jsp.java:148)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)



   
   

Thanks,
-DoubleT
« Last Edit: February 10, 2012, 02:00:51 AM by ygzx_114 »
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Can't Building the JPPF resource adapter
« Reply #4 on: February 09, 2012, 01:04:12 PM »

Hi DoubleT,

So you sign your posts with my name? :) Sorry, I'm teasing a bit here, I couldn't help noticing.

On my side, I do not have the problem you reported. Could you please confirm that you deployed both jppf_ra_JBoss-7.rar and JPPF_J2EE_Demo_JBoss-7.ear via the JBoss 7 administration console?
Is there anything relevant in the server log ?

Thanks,
-Laurent
Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #5 on: February 10, 2012, 02:11:51 AM »

Hello Laurent,
  Sorry for signing the posts with your name. :o
  I confirm that I have deployed both of the file via the JBoss 7 administration console.
  the server log like this:
 
09:06:58,077 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jppftest].[jsp]] (http--127.0.0.1-8080-3) Servlet.service() for servlet jsp threw exception: javax.naming.NameNotFoundException: java:eis/JPPFConnectionFactory
   at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:95)
   at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213)
   at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_10-rc2]
   at org.jppf.jca.demo.JPPFHelper.getConnection(JPPFHelper.java:68) [jppf-j2ee-client.jar:]
   at org.jppf.jca.demo.J2EEDemo.testConnectorBlocking(J2EEDemo.java:157) [jppf-j2ee-client.jar:]
   at org.apache.jsp.index_jsp._jspService(index_jsp.java:148)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.7.Final.jar:]
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.7.Final.jar:]
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.7.Final.jar:]
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.7.Final.jar:]
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.7.Final.jar:]
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.7.Final.jar:]
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.7.Final.jar:]
   at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1b.jar:7.1.0.CR1b]
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.7.Final.jar:]
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.7.Final.jar:]
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.7.Final.jar:]
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.7.Final.jar:]
   at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.7.Final.jar:]
   at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.7.Final.jar:]
   at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.7.Final.jar:]
   at java.lang.Thread.run(Thread.java:619) [:1.6.0_10-rc2]

Thanks,
-DoubleT

Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #6 on: February 10, 2012, 08:38:31 AM »

Hello Laurent,
    I have tried again with jboss6 as the following 3 steps.
 
    1. copy the file "jppf_ra_JBoss.rar" in this folder: <JBOSS_HOME>/server/<your_server>/deploy

       the log of jboss is:
          15:28:26,748 INFO  [org.jppf.jca.spi.JPPFResourceAdapter] Starting JPPF resource
           adapter
          15:28:26,764 INFO  [org.jppf.jca.spi.JPPFResourceAdapter] Starting JPPF resource
           adapter: jppf client=org.jppf.jca.work.JPPFJcaClient@52728a
          15:28:26,764 INFO  [org.jppf.jca.spi.JPPFResourceAdapter] JPPF resource adapter
          started   
    2.copy the file "jppf-ra-JBoss-ds.xml" in this folder: <JBOSS_HOME>/server/<your_server>/deploy
       
        the log of jboss is:
        15:29:16,981 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController
        ] Error installing to Real: name=vfs:///D:/jboss6/server/default/deploy/jppf-ra-
        JBoss-ds.xml state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.s
        pi.DeploymentException: Error during deploy: vfs:///D:/jboss6/server/default/dep
        loy/jppf-ra-JBoss-ds.xml
                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
        ion(DeploymentException.java:49) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
        Wrapper.java:185) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
        sImpl.java:1832) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
        rst(DeployersImpl.java:1550) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
        Impl.java:1491) [:2.2.2.GA]
                at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
        ctControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
        oller.java:2044) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
        ctController.java:1083) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
        teDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
        actController.java:1246) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
        actController.java:1139) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
        ller.java:939) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
        ller.java:654) [jboss-dependency.jar:2.2.0.SP2]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersI
        mpl.java:1983) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
        Impl.java:1076) [:2.2.2.GA]
                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
        rImpl.java:679) [:2.2.2.GA]
                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.p
        rocess(MainDeployerPlugin.java:106) [:6.1.0.Final]
                at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
        Deployer.process(ProfileControllerContext.java:143) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
        deploy(HDScanner.java:240) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
        complete(HDScanner.java:192) [:0.2.2]
                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(Two
        PCActionWrapper.java:57) [:0.2.2]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
        ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
        ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                at org.jboss.profileservice.management.ModificationSession.prepare(Modif
        icationSession.java:87) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.internal
        Perfom(AbstractActionController.java:234) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.performW
        rite(AbstractActionController.java:213) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.perform(
        AbstractActionController.java:150) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.perform(
        AbstractActionController.java:135) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne
        r.java:146) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner
        .java:90) [:0.2.2]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
        1) [:1.6.0_10-rc2]
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java
        :317) [:1.6.0_10-rc2]
                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.
        6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_10-rc2]
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
        utor.java:886) [:1.6.0_10-rc2]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
        .java:908) [:1.6.0_10-rc2]
                at java.lang.Thread.run(Thread.java:619) [:1.6.0_10-rc2]
        Caused by: java.lang.IllegalStateException: No ConnectorMetaData found for mdf r
        arName: jppf_ra_JBoss-rar
                at org.jboss.resource.deployers.builder.ManagedConnectionFactoryBuilder.
        buildConstructor(ManagedConnectionFactoryBuilder.java:104) [:6.1.0.Final]
                at org.jboss.resource.deployers.builder.AbstractBuilder.buildService(Abs
        tractBuilder.java:56) [:6.1.0.Final]
                at org.jboss.resource.deployers.builder.AbstractBuilder.build(AbstractBu
        ilder.java:65) [:6.1.0.Final]
                at org.jboss.resource.deployers.ManagedConnectionFactoryDeployer.deploy(
        ManagedConnectionFactoryDeployer.java:179) [:6.1.0.Final]
                at org.jboss.resource.deployers.ManagedConnectionFactoryDeployer.deploy(
        ManagedConnectionFactoryDeployer.java:52) [:6.1.0.Final]
                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i
        nternalDeploy(AbstractSimpleRealDeployer.java:63) [:2.2.2.GA]
                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
        AbstractRealDeployer.java:55) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
        Wrapper.java:179) [:2.2.2.GA]
                ... 37 more
       
        15:29:17,028 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Sca
        n failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary
        of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
       
        *** DEPLOYMENTS IN ERROR: Name -> Error
       
        vfs:///D:/jboss6/server/default/deploy/jppf-ra-JBoss-ds.xml -> org.jboss.deploye
        rs.spi.DeploymentException: Error during deploy: vfs:///D:/jboss6/server/default
        /deploy/jppf-ra-JBoss-ds.xml
       
       
        DEPLOYMENTS IN ERROR:
          Deployment "vfs:///D:/jboss6/server/default/deploy/jppf-ra-JBoss-ds.xml" is in
         error due to the following reason(s): java.lang.IllegalStateException: No Conne
        ctorMetaData found for mdf rarName: jppf_ra_JBoss-rar
       
                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
        loyersImpl.java:1370) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
        loyersImpl.java:1316) [:2.2.2.GA]
                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
        eployerImpl.java:968) [:2.2.2.GA]
                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
        heckComplete(MainDeployerPlugin.java:82) [:6.1.0.Final]
                at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
        Deployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
        deploy(HDScanner.java:246) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
        complete(HDScanner.java:192) [:0.2.2]
                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(Two
        PCActionWrapper.java:57) [:0.2.2]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
        ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
        ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                at org.jboss.profileservice.management.ModificationSession.prepare(Modif
        icationSession.java:87) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.internal
        Perfom(AbstractActionController.java:234) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.performW
        rite(AbstractActionController.java:213) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.perform(
        AbstractActionController.java:150) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.perform(
        AbstractActionController.java:135) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne
        r.java:146) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner
        .java:90) [:0.2.2]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
        1) [:1.6.0_10-rc2]
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java
        :317) [:1.6.0_10-rc2]
                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.
        6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_10-rc2]
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
        utor.java:886) [:1.6.0_10-rc2]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
        .java:908) [:1.6.0_10-rc2]
                at java.lang.Thread.run(Thread.java:619) [:1.6.0_10-rc2]
               
         
         
    3.copy the file "JPPF_J2EE_Demo_JBoss-4.0.ear" in this folder: <JBOSS_HOME>/server/<your_server>/deploy
   
      the log of jboss is:
     
        15:30:22,605 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Sca
        n failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary
        of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
       
        DEPLOYMENTS MISSING DEPENDENCIES:
          Deployment "jboss-switchboard:appName=JPPF_J2EE_Demo_JBoss,module=jppftest" is
         missing the following dependencies:
            Dependency "java:/eis/JPPFConnectionFactory" (should be in state "Installed"
        , but is actually in state "** NOT FOUND Depends on 'java:/eis/JPPFConnectionFac
        tory' **")
          Deployment "jboss.web.deployment:war=/jppftest" is missing the following depen
        dencies:
            Dependency "jboss-switchboard:appName=JPPF_J2EE_Demo_JBoss,module=jppftest"
        (should be in state "Installed", but is actually in state "Create")
       
        DEPLOYMENTS IN ERROR:
          Deployment "java:/eis/JPPFConnectionFactory" is in error due to the following
        reason(s): ** NOT FOUND Depends on 'java:/eis/JPPFConnectionFactory' **
       
                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
        loyersImpl.java:1370) [:2.2.2.GA]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
        loyersImpl.java:1316) [:2.2.2.GA]
                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
        eployerImpl.java:968) [:2.2.2.GA]
                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
        heckComplete(MainDeployerPlugin.java:82) [:6.1.0.Final]
                at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
        Deployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
        deploy(HDScanner.java:246) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
        complete(HDScanner.java:192) [:0.2.2]
                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(Two
        PCActionWrapper.java:57) [:0.2.2]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
        ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
        ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                at org.jboss.profileservice.management.ModificationSession.prepare(Modif
        icationSession.java:87) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.internal
        Perfom(AbstractActionController.java:234) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.performW
        rite(AbstractActionController.java:213) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.perform(
        AbstractActionController.java:150) [:0.2.2]
                at org.jboss.profileservice.management.AbstractActionController.perform(
        AbstractActionController.java:135) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne
        r.java:146) [:0.2.2]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner
        .java:90) [:0.2.2]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
        1) [:1.6.0_10-rc2]
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java
        :317) [:1.6.0_10-rc2]
                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.
        6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_10-rc2]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
        run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_10-rc2]
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
        utor.java:886) [:1.6.0_10-rc2]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
        .java:908) [:1.6.0_10-rc2]
                at java.lang.Thread.run(Thread.java:619) [:1.6.0_10-rc2]

Thanks,
-DoubleT
Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #7 on: February 10, 2012, 09:10:54 AM »

Hello Laurent,
    I have tried again with jboss6 as the following 3 steps.
   1. copy the file "jppf_ra_JBoss.rar" in this folder: <JBOSS_HOME>/server/<your_server>/deploy
   2.copy the file "jppf-ra-JBoss-ds.xml" in this folder: <JBOSS_HOME>/server/<your_server>/deploy
   3.copy the file "JPPF_J2EE_Demo_JBoss-4.0.ear" in this folder: <JBOSS_HOME>/server/<your_server>/deploy

  at step 2, the xml file in user-guid is:
<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
<no-tx-connection-factory>
<jndi-name>eis/JPPFConnectionFactory</jndi-name>
<application-managed-security/>
<rar-name>jppf_ra_JBoss-rar</rar-name>
<connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
<adapter-display-name>JPPF</adapter-display-name>
<min-pool-size>0</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>50000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
</no-tx-connection-factory>
</connection-factories>

  I changed the file like this, and it works now. 

<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
<no-tx-connection-factory>
<jndi-name>eis/JPPFConnectionFactory</jndi-name>
<application-managed-security/>
<rar-name>jppf_ra_JBoss.rar</rar-name>
<connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
<adapter-display-name>JPPF</adapter-display-name>
<min-pool-size>0</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>50000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
</no-tx-connection-factory>
</connection-factories>

   Thanks,
-DoubleT

« Last Edit: February 13, 2012, 07:56:05 AM by ygzx_114 »
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Can't Building the JPPF resource adapter
« Reply #8 on: February 14, 2012, 09:03:26 AM »

Hi DoubleT,

Thanks for catching the typo in the doc! I have now fixed it, along with a few other things.

I also noticed in your previous post that you mentioned deploying "JPPF_J2EE_Demo_JBoss-4.0.ear". I believe this isn't the right .ear file, it should be called "JPPF_J2EE_Demo_JBoss-4.0.ear" for JBoss up to 6.x, and "JPPF_J2EE_Demo_JBoss-7.ear" for JBoss 7. Can you confirm which demo .ear you deployed ?

Thanks,
-Laurent
Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #9 on: February 14, 2012, 10:11:49 AM »

Hi Laurent,
   I deployed it in jboss6 with JPPF_J2EE_Demo_JBoss-4.0.ear, and it works now!
   I try to deploy it in jboss7 with JPPF_J2EE_Demo_JBoss-7.ear and it still can't work just like that I have post before.

Thanks,
DoubleT
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Can't Building the JPPF resource adapter
« Reply #10 on: February 16, 2012, 08:39:06 AM »

Hi DoubleT,

I still don't reproduce in JBoss 7. Coud you check if you have, in the server's shell/dos console, messages similar to these:

Code: [Select]
08:30:08,005 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "jppf_ra_JBoss-7.rar"
...
08:30:08,193 INFO  [org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer] (MSC service thread 1-16) Registered connection factory java:/eis/JPPFConnectionFactory on mdr
08:30:08,193 INFO  [org.jppf.jca.spi.JPPFResourceAdapter] (MSC service thread 1-16) Starting JPPF resource adapter
08:30:08,208 INFO  [org.jppf.jca.spi.JPPFResourceAdapter] (MSC service thread 1-16) Starting JPPF resource adapter: jppf client=org.jppf.jca.work.JPPFJcaClient@6106dc2d
08:30:08,208 INFO  [org.jppf.jca.spi.JPPFResourceAdapter] (MSC service thread 1-16) JPPF resource adapter started
...
08:30:08,271 INFO  [org.jboss.as.server.controller] (Controller Boot Thread) Deployed "jppf_ra_JBoss-7.rar"
...
08:30:33,979 INFO  [org.jppf.jca.work.JcaClassServerDelegate] (JPPF Client-thread-1) [client: driver-1-1] Reconnected to the class server
08:30:33,979 INFO  [org.jppf.jca.work.JcaClassServerDelegate] (JPPF Client-thread-2) [client: driver-1-2] Reconnected to the class server
08:30:33,995 INFO  [stdout] (JPPF Client-thread-2) [client: driver-1-2] Attempting connection to the JPPF task server at lolo-i2600:11111
08:30:33,995 INFO  [stdout] (JPPF Client-thread-1) [client: driver-1-1] Attempting connection to the JPPF task server at lolo-i2600:11111
08:30:34,011 INFO  [stdout] (JPPF Client-thread-1) [client: driver-1-1] Reconnected to the JPPF task server
08:30:34,011 INFO  [stdout] (JPPF Client-thread-2) [client: driver-1-2] Reconnected to the JPPF task server

Thanks,
-Laurent
Logged

ygzx_114

  • Guest
Re: Can't Building the JPPF resource adapter
« Reply #11 on: February 17, 2012, 09:25:53 AM »

Hi Laurent,
   In the server's dos console, messages as follows:
16:18:13,371 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Sta
rting deployment of "jppf_ra_JBoss-7.rar"
16:18:13,637 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-4)
JBAS010406: Registered connection factory java:/eis/JPPFConnectionFactory
16:18:13,637 信息    [org.jppf.jca.spi.JPPFResourceAdapter] (MSC service thread
1-4) Starting JPPF resource adapter
16:18:13,668 信息    [org.jppf.client.AbstractGenericClient] (MSC service thread
 1-4) Connection [driver1-1] created
16:18:13,668 信息    [org.jppf.client.AbstractGenericClient] (MSC service thread
 1-4) Connection [driver1-2] created
16:18:13,684 信息    [org.jppf.jca.spi.JPPFResourceAdapter] (MSC service thread
1-4) Starting JPPF resource adapter: jppf client=org.jppf.jca.work.JPPFJcaClient
@c92844
16:18:13,684 信息    [org.jppf.jca.spi.JPPFResourceAdapter] (MSC service thread
1-4) JPPF resource adapter started
16:18:13,684 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service th
read 1-4) IJ020002: Deployed: file:/D:/jboss-as-7.1.0.CR1b/standalone/tmp/vfs/te
mp3e1fa925b001d87c/content-6f24a0bd520a7b5e/contents/
16:18:13,684 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-4)
JBAS010401: Bound JCA ConnectionFactory [java:/eis/JPPFConnectionFactory]
16:18:13,699 INFO  [org.jboss.as.server] (HttpManagementService-threads - 6) JBA
S018559: Deployed "jppf_ra_JBoss-7.rar"
16:18:13,746 信息    [org.jppf.jca.work.JcaClassServerDelegate] (JPPF Client-thr
ead-2) [client: driver1-2] Reconnected to the class server
16:18:13,746 信息    [org.jppf.jca.work.JcaClassServerDelegate] (JPPF Client-thr
ead-1) [client: driver1-1] Reconnected to the class server
16:18:13,871 INFO  [stdout] (JPPF Client-thread-2) [client: driver1-2] Attemptin
g connection to the JPPF task server at localhost:11111
16:18:13,871 INFO  [stdout] (JPPF Client-thread-1) [client: driver1-1] Attemptin
g connection to the JPPF task server at localhost:11111
16:18:13,949 INFO  [stdout] (JPPF Client-thread-2) [client: driver1-2] Reconnect
ed to the JPPF task server
16:18:13,949 INFO  [stdout] (JPPF Client-thread-1) [client: driver1-1] Reconnect
ed to the JPPF task server

16:21:29,414 INFO  [org.jboss.as.server.deployment.repository.impl] (HttpManagem
entService-threads - 8) JBAS014900: Content added at location D:\jboss-as-7.1.0.
CR1b\standalone\data\content\65\ddf9e98e451fd195bae4d39830a8034f2e061a\content
16:21:42,477 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Sta
rting deployment of "JPPF_J2EE_Demo_JBoss-7.ear"
16:21:42,617 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Sta
rting deployment of "jppftest.war"
16:21:42,711 INFO  [org.jboss.web] (MSC service thread 1-2) registering web cont
ext: /jppftest
16:21:42,742 INFO  [org.jboss.as.server] (HttpManagementService-threads - 9) JBA
S018559: Deployed "JPPF_J2EE_Demo_JBoss-7.ear"
   


       But when Cilck the button "Subbmit",there is a exception:
 
javax.servlet.ServletException: javax.naming.NameNotFoundException: java:eis/JPPFConnectionFactory
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
   org.apache.jsp.index_jsp._jspService(index_jsp.java:263)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)


Thanks,
DoubleT

« Last Edit: February 17, 2012, 09:28:46 AM by ygzx_114 »
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads