WebSphere Portal Server - Remote deployment problem with Rational

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2006 > Remote deployment problem with Rational





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Remote deployment problem with Rational
Thijs

2006-03-13, 7:52 am

I?m having problems regarding the deployment and testing of a Portlet using IBM Rational Software Development Platform 6.0 ? any help would be appreciated.

My test server runs IBM Workplace Services Express 2.5.2 (WebSphere Portal 5.0.2). Portal 5.0 is a supported platform for remote deployment. My project consists of a Portlet which contains a Java Applet. A JSP-file is used to render the HTML which display
s the Applet.

As I don?t want use manually redeploy the Portlet for every change I make, I want to use ?rapid deployment? (automatic (re)deploment on my test server) or running the Portlet on the local test environment. I?m having trouble using either on of them.

Run on local server
When I use 'run on local server' (I?m using the integrated WebSphere Portal V5.0 Test Environment)
the Portlet works fine except for the Java Applet. It fails to load because the class file can?t be found. I made sure the class file isn't stored in the WEB-INF folder and use encodeURL to generate the URL: I call the applet with:

<APPLET code="IOControlAppletGUI.class" codebase='<%=response.encodeURL("/iocontrol/jsp/html/")%>' width="230" height="130"></APPLET>.

When I export the project to a WAR file and install this war manually on a server, the Portlet works just fine. The fact that the Java class loader isn't able to find the class file seems to have something to do with the way URL's to the class file are ge
nerated. In WSE, the codebase='<%=response.encodeURL("/iocontrol/jsp/html/")%> works fine and returns the proper URL, eg.: '/lwp/PA_1_0_IQ/iocontrol/jsp/html/'. The '/lwp/PA_1_0_IQ/' part of this URL obviously is the path where the project is deplo
yed on the server. If I use the integrated test server however, response.encodeURL generates a different URL and the class loader fails to find the class file.
The code returned by response.encodeURL is '/.IOControl/iocontrol/jsp/html/'.
I can?t figure out what?s wrong here.

I've tried to place the class file inside a jar and then pointing to this jar:
<applet code="IOControlAppletGUI.class" archive='<%=response.encodeURL("iocontrol.jar")%>' width="230" height="130"></applet>. This also fails. Again, the error is that it can't locate the class file. The location of the file is correct.
If I add a simple link to the file (<a href='<%=response.encodeURL("iocontrol.jar")%>'>link</a>) both WSE and the local test server resolve the link correctly and ask me if I want to store the file. Therefore, it seems to go wrong when
the class loader tries to find the applet?s class file.

Rapid deployment
Since I'm not able to use the 'run on local server' option, I've tried to use the 'rapid deployment' option to deploy the Portlet to the external test server. I have followed the instructions in the help files but when I use the deploy Portlet function an
d go trough the wizard it shows a status bar which in turn shows 'transferring'. After a few seconds I get this error:

XML Acces Error:
Portlet WAR file could not be retrieved by portal server (invalid URL). Please unsure that your network and firewall settings are correctly
configured. Refer to the Rational Developer information Center for details.

There is no firewall between de server and the developer pc. The network is working fine. I also checked if a (temporary?) .war file exists on the server. It doesn?t... I know that the workstation does connect to the server correctly because if there is a
manually deployed version of the Portlet on the server, the wizard asks if it may overwrite this file.

Thanks in advance for any reactions


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com