Results 1 to 3 of 3
  1. #1
    hoseka is offline Member
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Default Java Web Start glassfish 3.1.2.2

    Hi, all
    I have an application.
    I can start it by means of .cmd file
    @echo off
    Rem ---------------------------------------------------------------------------
    Rem ProDD start shell
    Rem ---------------------------------------------------------------------------
    @echo Starting ProDD...
    Rem ------------------------------------------------------------ Path variables
    SET JAVA_HOME="C:\Program Files\Java\jdk1.7.0_09"
    SET JARS_HOME="C:\apps\jars"
    Rem ----------------------------------------------------- system library
    SET CP=%JARS_HOME%\dbalab\ProDD.jar
    SET CP=%CP%;%JARS_HOME%\dbalab\ProDDServer.jar
    Rem ------------------------------------------------ application library
    SET CP=%CP%;%JARS_HOME%\dbalab\OMS.jar
    Rem ------------------------------------------------------- Oracle JDBC library
    SET CP=%CP%;%JARS_HOME%\jdbc\ojdbc6.jar
    Rem ---------------------------------------------------------- DBF JDBC library
    SET CP=%CP%;%JARS_HOME%\jdbf\javadbf-0.4.0.jar

    REM -------------------------------------------------------- POI Office library
    SET CP=%CP%;%JARS_HOME%\poi\poi-3.7-20101029.jar
    SET CP=%CP%;%JARS_HOME%\poi\poi-scratchpad-3.7-20101029.jar

    Rem --------------------------------------------------------- GlassFish library
    SET CP=%CP%;%JARS_HOME%\glassfish\lib\gf-client.jar
    REM ---------------------------------------------------------------- Parameters
    SET CLASS=com.carma.ProDD.Client
    SET params=-ASServer glassfish -ASHost 192.168.1.4 -ASPort 3700 -URL jdbc:oracle:thin:@192.168.1.4:1521:XE -User CARMA -Password SYSTEM -FullStore -Office oo
    REM --------------------------------------------------------------------- Start
    %JAVA_HOME%\bin\javaw.exe -ms64m -mx1024m -noverify -cp %CP% %CLASS% %params%
    pause

    It is necessary for me to start it by means of Java Web Start.
    I signed archives. Made.jnlp the file. I try to start. The JVM starts , loads resources, but the window of the program isn't started.
    Here my .jnlp file:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="http://192.168.1.4:9080" href="testgf.jnlp" spec="1.0+" >

    <information>
    <title>xxxxxxxxxxxx</title>
    <vendor>xxxxxxxxxx</vendor>
    </information>

    <security>
    <all-permissions/>
    </security>


    <resources>
    <j2se version="1.7+" java-vm-args="-ms64m -mx1024m -noverify"/>

    <jar href="jars/dbalab/OMS.jar"/>
    <jar href="jars/dbalab/ProDD.jar"/>
    <jar href="jars/dbalab/ProDDServer.jar"/>
    <jar href="jars/jdbf/javadbf-0.4.0.jar"/>
    <jar href="jars/jdbc/ojdbc6.jar"/>
    <jar href="jars/glassfish/lib/gf-client.jar"/>
    <jar href="jars/poi/poi-3.7-20101029.jar"/>
    <jar href="jars/poi/poi-scratchpad-3.7-20101029.jar"/>

    </resources>

    <application-desc main-class="com.carma.ProDD.Client">
    <argument>-ASServer</argument>
    <argument>glassfish</argument>
    <argument>-ASHost</argument>
    <argument>192.168.1.4</argument>
    <argument>-ASPort</argument>
    <argument>3700</argument>
    <argument>-URL</argument>
    <argument>jdbc:oracle:thin:@192.168.1.4:1521:XE</argument>
    <argument>-User</argument>
    <argument>XXXXX</argument>
    <argument>-Password</argument>
    <argument>XXXXX</argument>
    <argument>-FullStore</argument>
    <argument>-Office</argument>
    <argument>oo</argument>
    </application-desc>
    </jnlp>

    I think a problem with connection to the glassfish 3.1.2.2 server
    If to be connected to a database without glassfish,
    (to clean parameters
    <argument>-ASServer</argument>
    <argument>glassfish</argument>
    <argument>-ASHost</argument>
    <argument>192.168.1.4</argument>
    <argument>-ASPort</argument>
    <argument>3700</argument> )

    application works after start of .jnlp file. Prompt as it is possible to solve this problem.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,254
    Rep Power
    19

    Default Re: Java Web Start glassfish 3.1.2.2

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    hoseka is offline Member
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Default Re: Java Web Start glassfish 3.1.2.2

    Solved the issue
    It was necessary to load additional libraries glassfish from folder /modules

Similar Threads

  1. GlassFish vs Sun java Application Server
    By vahini in forum New To Java
    Replies: 1
    Last Post: 06-17-2011, 10:25 AM
  2. Replies: 1
    Last Post: 01-18-2011, 06:27 PM
  3. Replies: 1
    Last Post: 11-17-2010, 05:48 AM
  4. glassfish server3 start failed
    By jyothi.priyanka in forum NetBeans
    Replies: 1
    Last Post: 07-26-2010, 05:09 AM
  5. Replies: 5
    Last Post: 03-20-2009, 10:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •