Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 111545 - Seperation of Server and Runtime is causing problems
Summary: Seperation of Server and Runtime is causing problems
Status: CLOSED WONTFIX
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 0.7   Edit
Hardware: PC All
: P2 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Tim deBoer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-04 19:32 EDT by Marshall Culpepper CLA
Modified: 2011-01-20 10:24 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marshall Culpepper CLA 2005-10-04 19:32:12 EDT
At least in the specific case of JBoss, having a Runtime that is completely
seperate from the Server is problematic.

JBoss has different configurations which may or may not include any number of
services. Some of these services implement J2EE APIs, etc, and we use them to
fill classpath containers. For instance, for javax.servlet APIs , you find the
JAR here:

$JBOSS_HOME/server/$JBOSS_CONFIGURATION_NAME/lib/javax.servlet.jar

The JBoss configuration name is stored as part of the IServer's configuration,
and is needed when computing the classpath container for the runtime of that Server.

Currently, I have worked around this by associating a Server with a Runtime
through the JBoss server's getAdapter method, but the problem comes when we try
to associate a JBoss runtime with a Web/J2EE project.

To render a Web/J2EE project's classpath containers from a runtime, the server
adapter is required to implement RuntimeTargetHandlerDelegate, yet there is
absolutely no Server contextual information (nor is it ever prompted for by the
user).

I'd like to be able to specify that my runtime is tied to a specific server
instance, and thus retrieve that server instance from within my runtime if
needed (via an adapter would be fine).

In the meantime, does anyone have suggestions for a workaround? Half of the J2EE
APIs are unavailable to my runtime unless I can tie the server instance back to
it.. is there a wizard page i can insert into the Web/EJB project wizards to
specify "which" server ?
Comment 1 Marshall Culpepper CLA 2005-10-04 20:14:44 EDT
My initial description was a little confusing, maybe I can make it a little more
generic and a little less wordy.

Basically, I want to be able to tie certain contextual information to my runtime
that will be different from server to server. Right now, a single Runtime is
associated with all servers of a certain type, and this is disallowing me from
providing a dynamic runtime based on the Server's configuration. I'd like to be
able to create a new runtime for *every* server instance (maybe as an optional
flag in the plugin.xml), and when this option is enabled, be able to retrieve
the Runtime/Server bi-directionally i.e. Server.getAdapter(IRuntime.class),
Runtime.getAdapter(IServer.class)..
Comment 2 Arthur Ryman CLA 2005-12-08 09:49:55 EST
Added to Hot List at the request of Max Rydahl Andersen and set priority to P2. Tim, pls target for 1.0.1 or 1.5. Thx.
Comment 3 Tim deBoer CLA 2005-12-08 14:29:47 EST
Moving to 1.5 as per WTP build call.
Comment 4 David Williams CLA 2005-12-28 10:31:46 EST
changing target from 1.5 M2 to 1.5 M6 to reflect new numbering scheme as we join Collisto train. 
Comment 5 Marshall Culpepper CLA 2006-02-15 18:03:04 EST
Any headway/info on this bug? It seems to be scheduled for WTP 1.5M6 but there hasn't been any feedback on the validity of such a feature.
Comment 6 Jeffrey Liu CLA 2006-03-09 14:34:19 EST
03/10: Ted to setup the meeting to discuss this item.
Comment 7 Jeffrey Liu CLA 2006-04-21 17:54:12 EDT
Per the discussion around server architecture, this is not an doable item for 1.5. Therefore, I'm removing this from the hot list. If anyone disagrees with this, please explain why this is still a hot issue for 1.5. Thanks.
Comment 8 Rob Stryker CLA 2007-08-16 03:46:07 EDT
This bug is 1.5 years old and I believe should be removed. I believe Marshall will agree. 
Comment 9 Marshall Culpepper CLA 2009-02-26 03:27:58 EST
repealing request as it's old. 
Comment 10 Tim deBoer CLA 2011-01-20 10:24:05 EST
Closing old bugs.