This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 76626 - AVK 5 incompatible with NB 5.5 because AVK uses a wrong deployment path
Summary: AVK 5 incompatible with NB 5.5 because AVK uses a wrong deployment path
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: AVK (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ bhavanishankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-20 00:27 UTC by ea118769
Modified: 2006-06-06 09:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ea118769 2006-05-20 00:27:20 UTC
AVK 5 plugin to NetBeans 5.5.

I installed AS PE b48, NetBeans 5.5 and deployed AVK plugin.

After that I opened NetBeans new projects and used NetBeans
Samples/Java BluePrints Solutions  samples.

I compiled/deployed/run different such samples and also I added
webapps-caching AS sample.

In all cases according to AS domain.xml the deployment location of
these  samples was:
<project_path>/build/web (I used web applications). For example:
location="/root/command-submissions/build/web"
location="/root/tabbed-view/build/web
location="/root/clientside-state/build/web
location="/root/caching/build/web

But AVK searched the applications under
<AS_HOME>/domains/domain1/applications/j2ee-modules/<application_name>,
for example:


AppServer Version : 9.0
Current instace properties :

key = password, value = admin123
key = PROP_INSTANCE_ID, value = sjsas8
key = username, value = admin
key = url, value = [/opt/sunone48]deployer:Sun:AppServer::localhost:4848

key = LOCATION, value = /opt/sunone48/domains
key = httpportnumber, value = null
key = DOMAIN, value = domain1
key = displayName, value = Sun Java System Application Server
isVerifierSetup - true
Running redeploy build target...
Redeploy completed...
Deploy Dir =
/opt/sunone48/domains/domain1/applications/j2ee-modules//caching


For this reason AVK doesn't work and creates an error message:
"Deployment failed. So, Dynamic Verification could not be performed."


So, to be compatible with NetBeans,  AVK has to search the deployed apps not
in  <AS_HOME>/domains/domain1/applications/j2ee-modules/..., but it has
to use the deployment location from AS domain.xml file.
Comment 1 _ bhavanishankar 2006-05-22 05:56:33 UTC
Fix details:
============

Read the deployment directory of the application from domain.xml using JMX APIs.

Code changes:
=============

Checking in src/org/netbeans/modules/j2ee/sun/ide/avk/actions/CommonNodeAction.java;
/cvs/serverplugins/sun/avk/src/org/netbeans/modules/j2ee/sun/ide/avk/actions/Attic/CommonNodeAction.java,v
 <--  CommonNodeAction.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in
src/org/netbeans/modules/j2ee/sun/ide/avk/actions/StartInstrumentation.java;
/cvs/serverplugins/sun/avk/src/org/netbeans/modules/j2ee/sun/ide/avk/actions/Attic/StartInstrumentation.java,v
 <--  StartInstrumentation.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Comment 2 ea118769 2006-06-01 03:48:57 UTC
W2K NetBeans 5.5 nightly build 05/31, AS 9.0 PE b48.

I downloded AVK from Update Center. After that restared NetBeans, AS and created
 new projects that were based on NB samples and stateless-simple AS sample. I
deployed all these samples to AS. Then tried to execute Dynamic Verification.
But I again saw an error message box:

"Deployment failed. So, Dynamic Verification could not be performed."

When I saw this problem I uninstalled everything and removed all directories
manually, then made a fresh installation. After that I saw this problem again. 

On Solaris and Linux this problem doesn't exist. 

Comment 3 _ bhavanishankar 2006-06-06 09:31:06 UTC
Code changes:

Checking in src/org/netbeans/modules/j2ee/sun/ide/avk/actions/AdminTasks.java;
/cvs/serverplugins/sun/avk/src/org/netbeans/modules/j2ee/sun/ide/avk/actions/Attic/AdminTasks.java,v
 <--  AdminTasks.java
new revision: 1.1.4.2; previous revision: 1.1.4.1
done
Checking in src/org/netbeans/modules/j2ee/sun/ide/avk/actions/CommonNodeAction.java;
/cvs/serverplugins/sun/avk/src/org/netbeans/modules/j2ee/sun/ide/avk/actions/Attic/CommonNodeAction.java,v
 <--  CommonNodeAction.java
new revision: 1.1.4.2; previous revision: 1.1.4.1
done