geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shiva Kumar H R (JIRA)" <>
Subject [jira] Commented: (GERONIMODEVTOOLS-331) Geronimo classpath container not included by default
Date Tue, 22 Apr 2008 16:23:21 GMT


Shiva Kumar H R commented on GERONIMODEVTOOLS-331:

Please see below discussion on wtp-dev:

<an excerpt from above link>
When you defined your JBI runtime, you probably copied something like this into your plugin.xml

<extension point="org.eclipse.wst.common.project.facet.core.runtimes">
    <runtime-component id="org.eclipse.jst.server.tomcat"/>
    <factory class="org.eclipse.jst.server.core.internal.RuntimeClasspathProvider$Factory"/>
    <type class="org.eclipse.jst.common.project.facet.core.IClasspathProvider"/>

This sets up the classpath provider associated with the runtime component type (tomcat in
this case). If you look in the RuntimeClasspathProvider class you will see that it only knows
about the module facets that ship with WTP. You will need to either subclass or replace the
classpath provider for the JBI runtime in order to get ClasspathHelper.addClasspathEntries
setup classpath for the JBI facet.

> Geronimo classpath container not included by default
> ----------------------------------------------------
>                 Key: GERONIMODEVTOOLS-331
>                 URL:
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 2.1.0
>            Reporter: Shiva Kumar H R
>            Assignee: Shiva Kumar H R
>            Priority: Critical
>             Fix For: 2.1.0
> When I create a simple Dynamic Web Project and try adding a servlet inside it, I hit
compilation errors for all J2EE APIs like:
> HttpServletRequest cannot be resolved to a type	HelloWorld/src/test
> javax.servlet cannot be resolved to a type	HelloWorld/src/test
> ServletException cannot be resolved to a type	HelloWorld/src/test
> In Project Explorer view, when I expand <web-app-project> -> Java Resources:
src -> Libraries, I see that there is no library listed for Apache Geronimo! And I will
have to manually add it as below to resolve above compilation errors:
> Right click on web-project -> Properties -> Java Build Path -> Libraries ->
Add Library -> Server Runtime -> Next -> Apache Geronimo v2.1 -> Finish ->

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message