geronimo-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591352#action_12591352
] 

Shiva Kumar H R commented on GERONIMODEVTOOLS-331:
--------------------------------------------------

Please see below discussion on wtp-dev:
http://dev.eclipse.org/mhonarc/lists/wtp-dev/msg04141.html

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

<extension point="org.eclipse.wst.common.project.facet.core.runtimes">
  ...
  <adapter>
    <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"/>
  </adapter>
  ...
</extension>

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: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-331
>             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	TestServlet.java
> javax.servlet cannot be resolved to a type	HelloWorld/src/test	TestServlet.java
> ServletException cannot be resolved to a type	HelloWorld/src/test	TestServlet.java
> 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 ->
OK.

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


Mime
View raw message