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 112427 - It is impossible to deploy Visual Web Application to WebLogic
Summary: It is impossible to deploy Visual Web Application to WebLogic
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks: 98366
  Show dependency tree
 
Reported: 2007-08-09 11:50 UTC by Roman Mostyka
Modified: 2007-08-30 16:32 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Archive with WebLogic server's logs (13.61 KB, application/octet-stream)
2007-08-09 17:57 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-08-09 11:50:02 UTC
1. Install JSF 1.1 plugin.
2. Add WebLogic 9.2 to the "Services > Servers".
3. Create web application with "Visual Web JSF" framework, WebLogic as target server and with J2EE 1.4 version.
4. Deploy it to the WebLogic.

Result: BUILD SUCCESSFUL appears in Output window, but in browser error 404 appears and application isn't deployed (it
doesn't appear in deployed application list in Admin Console).
Comment 1 Petr Blaha 2007-08-09 12:21:41 UTC
Roman, can you attach log from WebLogic.
Comment 2 _ potingwu 2007-08-09 17:32:22 UTC
Sandip, I guess it's because we have not turned off the recently internally JSF 1.1 library. It also affects glassfish
as I tried. Could you please turn it off (remove) as soon as possible?
Comment 3 Roman Mostyka 2007-08-09 17:55:02 UTC
Actually I was able to successfully deploy simple visual web application with one button component to WebLogic.
But after I deployed application, which uses web service, I got "Error 503--Service Unavailable" in browser and then I
wasn't able to deploy even simple visual web application.
Comment 4 Roman Mostyka 2007-08-09 17:57:54 UTC
Created attachment 46422 [details]
Archive with WebLogic server's logs
Comment 5 _ potingwu 2007-08-09 18:29:03 UTC
Looks like it's related web services issue.

BTW, can you undeploy your simple app and redeploy it? Or stop the server and restart the server?
Comment 6 Quy Nguyen 2007-08-14 09:25:59 UTC
I was able to deploy a web application that uses a web service onto WebLogic (running NB on jdk 1.5.0_06).  Could you
provide the exact steps that cause the error?
Comment 7 _ krystyna 2007-08-16 01:11:09 UTC
Cannot duplicate:

1. simple deployment to Weblogic 9.2 server on XP,  using XP NB build 08150518 with 
    JDK1.5.0_12 worked successfully. Mozilla browser as default browser AOK. 
2. next deployment with webservice (used PersianCalendarService) also deployed and worked at runtime.
3. third deployment - simple two page navigation project also worked at runtime.
Comment 8 Roman Mostyka 2007-08-21 17:54:45 UTC
I still can reproduce this issue.
But now I started IDE with new userdir, created simple application, deployed it to WebLogic, but get 503 error.

Product Version: NetBeans IDE Dev (Build 070821)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Comment 9 Quy Nguyen 2007-08-22 17:35:34 UTC
This problem doesn't appear to be related to web services.
Comment 10 _ potingwu 2007-08-22 20:30:27 UTC
Hi, Yousuf,

Could you please verify this? None of us can reproduce it here! Thanks!
Comment 11 Yousuf Haider 2007-08-23 17:58:04 UTC
I'll try evaluating this today. Hopefully I'll be able to put my comments by COB today.
Comment 12 Yousuf Haider 2007-08-24 01:23:54 UTC
Ok here is my evaluation:

Because of issue 113344 (which was just fixed today) the first hurdle you get into when Running your application through
the Run button in the IDE is that you get an exception and the application is not deployed at all. If the server is
running though you won't get into that problem.


Here are the steps that I did:

 To make sure that I had clean weblogic domain and that it was using the correct JDK I created one using the
configuration wizard.

1. Went into Start Menu->All programs->BEA Products->Tools->Configuration wizard. Went through the wizard to create my
own domain. 
       * Specified username and password (weblogic/weblogic)
       * Specified Sun's JDK5 for the domain
       * Specified my own domain Name

2. Once completed I started Netbeans 6 running on JDK5 and went through the Add server setup. Specified Weblogic server
location. In the 3rd step when adding server I made sure that I had the correct Local instance selected by matching the
Domain Path of the instance with the one I had created through the Configuration wizard. 


3. Starting Weblogic from IDE for the very first time worked. I was able to deploy a simple VW application as well. 

4. After that Shutting down the server from the IDE did not work properly so I had to stop it externally.

5. After that I could not deploy an application anymore. Starting the server from the IDE would work only sometimes.
Other times it would be stuck on "Server Status <STARTING>". If it did get started I could not deploy applications
successfully and saw the 503 errors. Checking the server log showed that there was an issue with some file lock for the
first application that I had deployed. 

It seems that the serverplugin for starting and stopping the server is not functioning properly. I had to delete that
applciation and other lock(LOK) files from various places in my domain folder for the server to get working again.


I did find a workaround that allows VW applications to Deploy without any issues:

1. I used the "Start Menu->Programs->BEA products->User Projects-> myDomainName ->Start server" to externally start the
server. 

2. Once the server status becomes <RUNNING> (as shown in the console window) I refreshed the Server node for weblogic a
couple of times so that the Server node shows a Green Arrow Icon.

3. After that I created a VW application and deployed without any issues. 

4. I shutdown the server using "Start Menu->Programs->BEA products->User Projects-> myDomainName ->Stop server" to
externally stop the server and restarted it externally and then deployed VW applications without any issues.

So in conclusion: 

 * As long as the starting and stopping of server is done externally there is no issue with deployment. Only if you use
start/stop from IDE do problems start to occur. 

  * And once the server gets into that problem you can't deploy to it anymore unless you clean it up (by removing any
deployed applications and removing some lok files) or create a new domain.
Comment 13 _ potingwu 2007-08-24 01:33:11 UTC
Thanks, Yousuf, for your valuable evaluation!

It's a general server plugin issue. Not just happened for visualweb deployment.
Comment 14 Petr Hejl 2007-08-30 09:32:29 UTC
Server startup fixed. Issue was caused by full std. error output buffer of the process. Now investigating redeployment
trouble mentioned in the issue 98366.

Checking in src/org/netbeans/modules/j2ee/weblogic9/WLDeploymentFactory.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/WLDeploymentFactory.java,v  <-- 
WLDeploymentFactory.java
new revision: 1.15; previous revision: 1.14
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/WLDeploymentManager.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/WLDeploymentManager.java,v  <-- 
WLDeploymentManager.java
new revision: 1.22; previous revision: 1.21
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/optional/WLStartServer.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/optional/WLStartServer.java,v  <--  WLStartServer.java
new revision: 1.22; previous revision: 1.21
done
RCS file: /cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/util/WLOutputManager.java,v
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/util/WLOutputManager.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/util/WLOutputManager.java,v  <--  WLOutputManager.java
initial revision: 1.1
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/util/WLTailer.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/util/WLTailer.java,v  <--  WLTailer.java
new revision: 1.9; previous revision: 1.8
done
Comment 15 Roman Mostyka 2007-08-30 16:32:18 UTC
Verified with build 070830.