You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Dinanath Sulakhe <su...@mcs.anl.gov> on 2003/09/08 20:50:22 UTC

ant deploy - compile errors.

Hi,
I am new to Jetspeed. I have installed Tomcat and Jetspeed. I am trying to 
follow the bluesunrise tutorial, but kind of struck in the beginning 
itself. I have downloaded jportal.jar as mentioned in the tutorial. Then I 
did "jar -xf jportal.jar".

Then I modified the build.properties file for setting without source. Then 
I didn't deploy any tutorial, but I did "ant deploy" as mentioned in 
"Restarting the tutorials" from the bluesunrise tutorial. BUT iam getting 
java compiler error.

The errors can be seen below:
=============================================================

compile:
     [mkdir] Created dir: 
C:\jakarta-tomcat-4.1.27\webapps\jportal\bin\WEB-INF\cl
asses
     [javac] Compiling 16 source files to 
C:\jakarta-tomcat-4.1.27\webapps\jporta
l\bin\WEB-INF\classes
     [javac] 
C:\jakarta-tomcat-4.1.27\webapps\jportal\src\java\com\bluesunrise\jp
ortal\modules\actions\portlets\CobiJonesPortletAction.java:54: cannot 
access jav
ax.servlet.http.HttpSessionBindingListener
     [javac] file javax\servlet\http\HttpSessionBindingListener.class not found
     [javac]             Player player = 
(Player)rundata.getUser().getTemp(PLAYER
);
     [javac]                                                    ^
     [javac] 
C:\jakarta-tomcat-4.1.27\webapps\jportal\src\java\com\bluesunrise\jp
ortal\modules\actions\portlets\CobiJonesPortletAction.java:63: cannot 
access jav
ax.servlet.http.HttpServletRequest
     [javac] file javax\servlet\http\HttpServletRequest.class not found
     [javac]             String cobiError = 
(String)rundata.getRequest().getAttri
bute(COBI_ERROR);
     [javac]                                                          ^
     [javac] 2 errors

BUILD FAILED
file:C:/jakarta-tomcat-4.1.27/webapps/jportal/build.xml:134: Compile 
failed; see
  the compiler error output for details.
=================================================================

Can anyone help me with this?

Thanks,
-Dina


Re: ant deploy - compile errors.

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Monday, September 8, 2003, at 11:50  AM, Dinanath Sulakhe wrote:

> Hi,
> I am new to Jetspeed. I have installed Tomcat and Jetspeed. I am 
> trying to follow the bluesunrise tutorial, but kind of struck in the 
> beginning itself. I have downloaded jportal.jar as mentioned in the 
> tutorial. Then I did "jar -xf jportal.jar".
>
> Then I modified the build.properties file for setting without source. 
> Then I didn't deploy any tutorial, but I did "ant deploy" as mentioned 
> in "Restarting the tutorials" from the bluesunrise tutorial. BUT iam 
> getting java compiler error.
>
> The errors can be seen below:
> =============================================================
>
> compile:
>     [mkdir] Created dir: 
> C:\jakarta-tomcat-4.1.27\webapps\jportal\bin\WEB-INF\cl
> asses
>     [javac] Compiling 16 source files to 
> C:\jakarta-tomcat-4.1.27\webapps\jporta
> l\bin\WEB-INF\classes
>     [javac] 
> C:\jakarta-tomcat-4.1.27\webapps\jportal\src\java\com\bluesunrise\jp
> ortal\modules\actions\portlets\CobiJonesPortletAction.java:54: cannot 
> access jav
> ax.servlet.http.HttpSessionBindingListener

Are you building with the source code or without source code?

Sounds like you are not finding the servlet_2_2.jar that comes with 
Jetspeed in the lib directory
That tells me that your classpath is not correct.
Try clearing your CLASSPATH variable at the command prompt.

If that doesn't work, double check your property file settings in the 
tutorial, particularly this one:

build.properties:

jetspeed_home=/apache/jakarta-jetspeed

make sure this points to where ever you installed the Jetspeed source 
(assuming you are using the source)

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
+01 707 773-4646
+01 707 529 9194