users@glassfish.java.net

Re: Where are my deployed files on Windows Vista??

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Wed, 23 Apr 2008 08:19:58 -0400

The odd thing is that I had directory deployment turned off when
deploying the war files from NetBeans 6.0.1. I never did find out where
any of the deployed apps went.

I've since re-installed to D: drive to see if I can get any further. It
has been complaining about one of my EJB's that references a service.
When I removed sun-ejb-jar.xml which was used to override the WSDL URL
in production, it now complains about something else:

Exception occured in J2EEC Phasejava.lang.RuntimeException: Error
processing EjbDescriptor
com.sun.enterprise.deployment.backend.IASDeploymentException: Error
loading deployment descriptors for module [WebCheckInEAR] -- Error
processing EjbDescriptor
        at
com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
        at
com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
        at
com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
        at
com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
        at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at
com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.RuntimeException: Error processing EjbDescriptor
        at
com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:281)
        at
com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2058)
        at
com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734)
        at
com.sun.enterprise.deployment.Application.visit(Application.java:1754)
        at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470)
        at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:790)
        at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
        at
com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
        ... 10 more
Caused by: java.lang.NullPointerException
        at java.util.Hashtable.get(Hashtable.java:334)
        at
com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:136)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:238)
        ... 17 more

I do have an ejb-jar.xml but it only contains some env entries:

<?xml version="1.0" encoding="UTF-8"?>

<ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee"
         version = "3.0"
         xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
            
         <enterprise-beans>
             <session>
                 <ejb-name>CicoKioskServiceDAOBean</ejb-name>
                 <env-entry>
                     <env-entry-name>serviceUserName</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>xxxx</env-entry-value>
                 </env-entry>
                 <env-entry>
                     <env-entry-name>servicePassword</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>xxxx</env-entry-value>
                 </env-entry>
             </session>
             <session>
                 <ejb-name>CentralCicoKioskDataServiceDAOBean</ejb-name>
                 <env-entry>
                     <env-entry-name>serviceUserName</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>xxxx</env-entry-value>
                 </env-entry>
                 <env-entry>
                     <env-entry-name>servicePassword</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>xxxx</env-entry-value>
                 </env-entry>
             </session>
             <session>
                 <ejb-name>FolioServiceDAOBean</ejb-name>
                 <env-entry>
                     <env-entry-name>serviceUserName</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>xxxx</env-entry-value>
                 </env-entry>
                 <env-entry>
                     <env-entry-name>servicePassword</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>xxxx</env-entry-value>
                 </env-entry>
                 <env-entry>
                     <env-entry-name>folioStyle</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     <env-entry-value>FolioStyle1</env-entry-value>
                 </env-entry>
             </session>
             <session>
                 <ejb-name>ReceiptEmailerBean</ejb-name>
                 <env-entry>
                     <env-entry-name>imagesBaseURL</env-entry-name>
                     <env-entry-type>java.lang.String</env-entry-type>
                     
<env-entry-value>http://xxxx-ws2:8080/resources/</env-entry-value>
                 </env-entry>
             </session>
         </enterprise-beans>
</ejb-jar>


This same app works on many other computers with SJSAS 9.1 (not UR1),
but we did try it on one computer with UR1. It worked there too.

I will battle with this some more shortly in an hour or so. I'm
wondering if the blank line between <?xml ...> and <ejb-jar... is a
problem. It hasn't been before though. I'll also try deploying the
ear built on this computer to another one, and one build elsewhere onto
here.


Thanks,
Ryan

vince kraemer wrote:
> I think you can find out where an app is deployed from inside Netbeans...
>
> Go to the Services tab
> expand the Servers node until you hit your app
> Select the Properties item from the 'right-click' menu...
>
> For the web applications that you deployed from NetBeans, they are
> probably deployed from the build directory of the web app project that
> produces them.
>
> I am unsure about the dot-rar.
>
> I am a bit surprised by the error that you are running into.
>
> I assume you are using NB 6.0 or NB 6.1, right?
>
> Are you trying to deply the ear from inside NB or via some other
> mechanism?
>
> It might be useful to see a bit more context from the server log.
>
> If you are deploying from NB, the IDE's message.log file and the ant
> output may have more hints that would help someone assist with the
> diagnosis.
>
> vbk
>
> Ryan de Laplante wrote:
>> I installed SJSAS 9.1 UR1 on Windows Vista. I've deployed two .war
>> files from NetBeans and one .rar file from the web admin console. I
>> know they are deployed because I can access the web applications.
>>
>> When I look in C:\Program
>> Files\Sun\AppServer\domains\domain1\applications\* all of the
>> folders are empty! I've searched my whole computer for files that
>> were deployed and I can't find them. What the heck is going on?
>>
>> I'm trying to figure that out because my .ear file won't deploy. It
>> partially deploys then barfs with this error:
>>
>> Caused by: java.io.FileNotFoundException: C:\Program
>> Files\Sun\AppServer\domains\domain1\applications\j2ee-apps\WebCheckIn\WebCheckInWeb_war\resources\AC_OETags.js
>> (Access is denied)
>>
>> I wondered if GlassFish didn't have access to write that file to disk
>> since it is under C:\Program Files, but that can't be the case since
>> I've deployed other applications to the server.
>>
>>
>> Thanks,
>> Ryan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>