Hi all,
I'm trying to customize the jetspeed content.
in order to do this, if I understood well, it is necessary
to compile jetspeed.
I patched cocoon.jar and build.sh and I tryed to
compile it on Sun Solaris 2.6.
If I use java 1.2 the result is:
-------------------------------
Buildfile: build.xml
Detected Java Version: 1.2
Project base dir set to: /home/scratch/sara/apache/Jetspeed-1.1/build
Executing Target: core
Compiling 10 source files to
/home/scratch/sara/apache/Jetspeed-1.1/bin/classes
Exception in thread
"main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Compiled
Code)
at org.apache.tools.ant.taskdefs.Javac.execute(Compiled Code)
at org.apache.tools.ant.Target.execute(Compiled Code)
at org.apache.tools.ant.Project.runTarget(Project.java)
at org.apache.tools.ant.Project.executeTarget(Compiled Code)
at org.apache.tools.ant.Main.runBuild(Compiled Code)
at org.apache.tools.ant.Main.main(Compiled Code)
-------------------------------
If I use java 1.1.8 the result is on the attachment.
-------------------------------
Buildfile: build.xml
Detected Java Version: 1.1
Project base dir set to: /home/scratch/sara/apache/Jetspeed-1.1/build
Executing Target: core
Compiling 10 source files to
/home/scratch/sara/apache/Jetspeed-1.1/bin/classes
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/portal/factory/PortletFactory.java:276:
Method
redefined with different return
type: org.apache.jetspeed.xml.api.portletmarkup.Portlets getPortlets() was
org.apache.jetspeed.portal.portletmarkup.Portlets getPortlets()
public final Portlets getPortlets() {
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/portal/factory/FeedFactory.java:240:
Method
redefined with different return
type: org.apache.jetspeed.xml.api.portletmarkup.Portlets getPortlets() was
org.apache.jetspeed.portal.portletmarkup.Portlets getPortlets()
public final Portlets getPortlets() {
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/portal/DefaultPortletController.java:126:
Method
redefined with different return
type: org.apache.jetspeed.portal.PortletSet getPortlets() was
org.apache.jetspeed.portal.Portlet getPortlets()[]
public final PortletSet getPortlets() {
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/portal/XMLPortletController.java:211:
Method
redefined with different return
type: org.apache.jetspeed.portal.PortletSet getPortlets() was
org.apache.jetspeed.portal.Portlet getPortlets()[]
public final PortletSet getPortlets() {
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/calendar/properties/XProp.java:93:
No
variable XNAME_PREFIX defined in class
org.apache.jetspeed.calendar.FieldEdits.
Object args[] = {(Object) FieldEdits.XNAME_PREFIX,
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/calendar/vobjects/EventDoJrlParent.java:513:
Method
isCancelled() not found in class
org.apache.jetspeed.calendar.properties.Status.
return stat.isCancelled();
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletRequest.java:240:
Method
redefined with different return
type: org.apache.jetspeed.util.servlet.RequestDispatcher
getRequestDispatcher(java.lang.String) was javax.servlet.RequestDispatcher
getRequestDispatcher(java.lang.String)
public RequestDispatcher getRequestDispatcher(String path) {
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:133:
Method
encodeURL(java.lang.String) not found in interface
javax.servlet.http.HttpServletResponse.
return response.encodeURL(url);
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:136:
Method
encodeRedirectURL(java.lang.String) not found in interface
javax.servlet.http.HttpServletResponse.
return response.encodeRedirectURL( url );
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:139:
Method
setBufferSize(int) not found in interface
javax.servlet.http.HttpServletResponse.
response.setBufferSize(size);
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:142:
Method
getBufferSize() not found in interface
javax.servlet.http.HttpServletResponse.
return response.getBufferSize();
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:146:
Method
flushBuffer() not found in interface
javax.servlet.http.HttpServletResponse.
response.flushBuffer();
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:147:
Exception
java.io.IOException is never thrown in the body of the corresponding try
statement.
} catch (IOException e) {
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:153:
Method
isCommitted() not found in interface
javax.servlet.http.HttpServletResponse.
return response.isCommitted();
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:157:
Method
reset() not found in interface javax.servlet.http.HttpServletResponse.
response.reset();
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:161:
Method
setLocale(java.util.Locale) not found in interface
javax.servlet.http.HttpServletResponse.
response.setLocale( locale );
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletResponse.java:164:
Method
getLocale() not found in interface javax.servlet.http.HttpServletResponse.
return response.getLocale();
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/cache/memory/MemoryStore.java:100:
Method
init(org.apache.cocoon.framework.Configurations) not found in class
org.apache.cocoon.store.MemoryStore.
instance.init( conf );
^
/home/scratch/sara/apache/Jetspeed-1.1/bin/src/org/apache/jetspeed/daemon/FeedDaemon.java:218:
Wrong
number of arguments in constructor.
new BulkDownloader( newportlets );
^
19 errors
BUILD FATAL ERROR: Compile failed, messages should have been provided.
-------------------------------
I don't understand precisely
the problem and I don't know how to resolve it. Any help or suggestions?
Thanks in advance, Sara.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]