Get your own customer support community

Recent activity

Subscribe to this feed
  • question

    Walt Parkman replied on October 02, 2009 03:11 to the question "Chapter 6 - the sniffers are killing me." in javaee6:

    Walt Parkman
    Thank you, now I can deploy the EJB jar minus the Main class.
    I tried to copy chapter6 and create a new package that included the MainContainer class from the latest source code, without the BookEJB.
    Now my problem is that when I run this new jar with the MainContainer class, it can't find javax.ejb.embeddable.EJBContainer........
    Is this EJBContainer class in a .jar file that I can put in the classpath?
    Thanks
  • question

    Walt Parkman asked a question in javaee6 on September 26, 2009 21:55:

    Walt Parkman
    Chapter 6 - the sniffers are killing me.
    I bought the book on 6/1/2009 and gave up at chapter 6 because Glassfish 3 didn't support the example.
    On 9/16 it was announced that the latest Promoted build of Glassfish 3 supported embedded EJBs, so I started over.
    I tried again. The sniffers got me again.

    C:\JavaEE6\Chapter06>asadmin deploy --force=true target\chapter06-1.0.jar
    com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while deploying the app : java.lang.IllegalArgumentException:

    Sniffers with type [ejb] and type [appclient] should not claim the archive at the same time.

    Please check the packaging of your archive [C:\glassfishv3\glassfish\domains\domain1\applications\chapter06-1.0]
    Command deploy failed.
    C:\JavaEE6\Chapter06>

    This is the same problem I was having a month ago.
    What are sniffers? What do they want from me?
  • question

    Walt Parkman asked a question in javaee6 on August 08, 2009 17:35:

    Walt Parkman
    I have a different error now in Chapter 6 using 8/5 promoted build.
    I have been trying to deploy the chapter 6 example each time a new promoted build comes out, almost every week. I now have a new error:

    C:\jee6-follow-the-book\Chapter06>asadmin deploy --force=true target\chapter06-1
    .0.jar
    com.sun.enterprise.cli.framework.CommandException: remote failure: Exception whi
    le deploying the app : java.lang.IllegalArgumentException: Sniffers with type [ejb] and type [appclient] should not claim the archive at the same time. Please check the packaging of your archive [C:\glassfishv3\glassfish\domains\domain1\applications\chapter06-1.0]

    Command deploy failed.

    In the log there is:

    [#|2009-08-08T10:28:25.859-0700|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=22;_ThreadName=Thread-2;|Exception while deploying the app
    java.lang.IllegalArgumentException: Sniffers with type [ejb] and type [appclient] should not claim the archive at the same time. Please check the packaging of your archive [C:\glassfishv3\glassfish\domains\domain1\applications\chapter06-1.0]
    at com.sun.enterprise.v3.server.SnifferManagerImpl.validateSniffers(SnifferManagerImpl.java:220)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:379)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:231)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:175)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
  • question

    Walt Parkman asked a question in javaee6 on July 11, 2009 03:15:

    Walt Parkman
    Will Glassfish move to Apache and get a new name?
    or will Oracle risk that $25,000 per CPU they get for Weblogic by contributing developer time to Glassfish? Have the Sun employees working on Glassfish been given any kind of assurance that Oracle will let them continue? Will Glassfish ever be able to deploy the Chapter 6 example of this book?

    http://www.crn.com/software/208800277
  • question

    Walt Parkman replied on July 03, 2009 05:54 to the question "Got Glassfish dated 06/25, now I have a problem in the Chapter 6 code." in javaee6:

    Walt Parkman
    Ok, I got rid of Promoted and installed Prelude. Now I get:

    C:\jee6-follow-the-book\Chapter06>asadmin list-jdbc-resources
    jdbc/__TimerPool
    jdbc/chapter06DS
    jdbc/__default

    Command list-jdbc-resources executed successfully.
    C:\jee6-follow-the-book\Chapter06>
    C:\jee6-follow-the-book\Chapter06>
    C:\jee6-follow-the-book\Chapter06>asadmin deploy --force=true target\chapter06-1
    .0.jar
    remote failure: Module type not recognized

    Command deploy failed.

    And in the log file is:

    [#|2009-07-02T22:45:06.859-0700|SEVERE|glassfish|javax.enterprise.system.core|_ThreadID=15;_ThreadName=Thread-3;|Module type not recognized|#]

    [#|2009-07-02T22:45:06.859-0700|FINE|glassfish|javax.enterprise.system.util|_ThreadID=15;_ThreadName=Thread-3;ClassName=null;MethodName=null;C:\glassfishv3-prelude\glassfish\domains\domain1\applications\chapter06-1.0\com\apress\javaee6\chapter02\Book.class;|UTIL6040: Error attempting to delete C:\glassfishv3-prelude\glassfish\domains\domain1\applications\chapter06-1.0\com\apress\javaee6\chapter02\Book.class|#]

    followed by the same thing for Main.class and so on.
  • question

    Walt Parkman asked a question in javaee6 on June 26, 2009 15:57:

    Walt Parkman
    Got Glassfish dated 06/25, now I have a problem in the Chapter 6 code.
    A new glassfish dated 06/25/2009 appeared on the Sun website.
    Tried it out. I seem to have a code problem now. I created the connection pool ok, but then the deploy fails:

    C:\jee6-follow-the-book\Chapter06>asadmin create-jdbc-resource --connectionpoolid Chapter06Pool jdbc/chapter06DS

    Command create-jdbc-resource executed successfully.
    C:\jee6-follow-the-book\Chapter06>asadmin list-jdbc-resources
    jdbc/__TimerPool
    jdbc/chapter06DS
    jdbc/__default

    Command list-jdbc-resources executed successfully.

    C:\jee6-follow-the-book\Chapter06>asadmin deploy --force=true target\chapter06-1.0.jar
    remote failure: Exception while preparing the app

    Command deploy failed.

    The log file says:

    [#|2009-06-26T08:09:07.343-0700|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server
    |_ThreadID=17;_ThreadName=Thread-1;|Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
    java.lang.RuntimeException: Could not resolve a persistence unit corresponding to the persistence-context-ref-name [com.apress.javaee6.chapter06.BookEJB/em]
    in the scope of the module called [/C:/glassfishv3/glassfish/domains/domain1/applications/chapter06-1.0/]. Please verify your application.
    at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPCRefs(BundleDescriptor.java:603)
    at com.sun.enterprise.deployment.EjbBundleDescriptor.findReferencedPUs(EjbBundleDescriptor.java:821)

    I don't know what I am missing here.

    The code I used is all laid out at http://www.waltparkman.com for Chapter 6.
  • question

    Walt Parkman replied on June 11, 2009 15:09 to the question "Chapter 6 problem" in javaee6:

    Walt Parkman
    I cannot deploy the Chapter 6 jar in Glassfish 3. After running the Glassfish Update Tool on 6/11 I got the following in server.log at startup:

    [#|2009-06-11T07:53:21.859-0700|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|Unable to start v3. Closing all ports
    java.lang.NullPointerException
    at com.sun.grizzly.config.dom.NetworkListener$Duck.findThreadPool(NetworkListener.java:131)

    NetworkListener$Duck?
  • question