1 Reply Latest reply on Jul 24, 2006 10:47 AM by Peter Johnson

    Need help building Jboss Portal Server from source

    Saurabh Garg Newbie

      I have been mucking my brains out over this, but it just doesn't work, and I am sure I am making a trivial mistake here. Basically, I built JBoss AS from source, and it works perfectly. Now, I am trying to build the portal server from source, and I can build the datasource descriptors sucessfully, but for some reason using "build deploy" in the build directory gives me the following error(s):

      Executing C:\Jboss\jbp-2.4\build\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBannerLogger deploy
      Buildfile: build.xml

      _buildmagic:init:
      Trying to override old definition of task property

      configure-project:
      [echo] groups: default
      [echo] modules: common,test,api,faces,server,security,identity,format,portlet,theme,cms,bridge,samples,wsrp,core

      _buildmagic:modules:most:

      ==============================================================
      ==
      == Executing 'most' in module 'common'...
      ==
      ==

      configure:
      Overriding previous definition of reference to apache.ant.classpath

      ==
      ==
      == Finished 'most' in module 'common'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'test'...
      ==
      ==

      configure:
      Overriding previous definition of reference to apache.ant.classpath

      ==
      ==
      == Finished 'most' in module 'test'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'api'...
      ==
      ==

      configure:
      Overriding previous definition of reference to apache.ant.classpath

      ==
      ==
      == Finished 'most' in module 'api'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'faces'...
      ==
      ==

      configure:
      Overriding previous definition of reference to apache.ant.classpath

      ==
      ==
      == Finished 'most' in module 'faces'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'server'...
      ==
      ==

      configure:
      Overriding previous definition of reference to apache.ant.classpath
      [echo] C:\Jboss\jbp-2.4/thirdparty/xdoclet/lib/
      [echo] C:\Jboss\jbp-2.4/thirdparty/sun-servlet/lib/

      _default:compile-classes:
      [javac] Compiling 57 source files to C:\Jboss\jbp-2.4\server\output\classes
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:28: warning: [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated
      [execmodules] import javax.servlet.http.HttpSessionContext;
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:111: warning: [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated
      [execmodules] public HttpSessionContext getSessionContext()
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\aspects\server\ParametersInterceptor.java:91: RequestParameter(java.lang.String,java.lang.String[],int) has private access in org.jboss.portal.server.request.RequestParameter
      [execmodules] RequestParameter param = new RequestParameter(paramName, paramValues, queryValues.length);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\aspects\server\ParametersInterceptor.java:101: cannot find symbol
      [execmodules] symbol : method setParameters(java.util.Map)
      [execmodules] location: class org.jboss.portal.server.ServerRequest
      [execmodules] invocation.getRequest().setParameters(parameters);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\aspects\server\ParametersInterceptor.java:104: cannot find symbol
      [execmodules] symbol : method setURLContext(org.jboss.portal.server.request.URLContext)
      [execmodules] location: class org.jboss.portal.server.ServerRequest
      [execmodules] invocation.getRequest().setURLContext(URLContext.newInstance(req.isSecure(), req.getRemoteUser() != null));
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingRequest.java:166: warning: [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      [execmodules] public boolean isRequestedSessionIdFromUrl()
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingRequest.java:291: warning: [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public String getRealPath(String name)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingRequest.java:168: warning: [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      [execmodules] return getDelegate().isRequestedSessionIdFromUrl();
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingRequest.java:293: warning: [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] return getDelegate().getRealPath(name);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingResponse.java:120: warning: [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public void setStatus(int i, String name)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingResponse.java:65: warning: [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public String encodeRedirectUrl(String name)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingResponse.java:60: warning: [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public String encodeUrl(String name)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingResponse.java:62: warning: [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] return getDelegate().encodeUrl(name);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingResponse.java:67: warning: [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] return getDelegate().encodeRedirectUrl(name);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\AbstractDelegatingResponse.java:122: warning: [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] getDelegate().setStatus(i, name);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:36: warning: [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      [execmodules] public class ProxyRequest extends AbstractDelegatingRequest
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:36: warning: [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public class ProxyRequest extends AbstractDelegatingRequest
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:151: warning: [deprecation] removeValue(java.lang.String) in javax.servlet.http.HttpSession has been deprecated
      [execmodules] public void removeValue(String name)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:141: warning: [deprecation] putValue(java.lang.String,java.lang.Object) in javax.servlet.http.HttpSession has been deprecated
      [execmodules] public void putValue(String name, Object object)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:131: warning: [deprecation] getValueNames() in javax.servlet.http.HttpSession has been deprecated
      [execmodules] public String[] getValueNames()
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:121: warning: [deprecation] getValue(java.lang.String) in javax.servlet.http.HttpSession has been deprecated
      [execmodules] public Object getValue(String name)
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:111: warning: [deprecation] getSessionContext() in javax.servlet.http.HttpSession has been deprecated
      [execmodules] public HttpSessionContext getSessionContext()
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:113: warning: [deprecation] getSessionContext() in javax.servlet.http.HttpSession has been deprecated
      [execmodules] return ProxyRequest.this.getSession().getSessionContext();
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:123: warning: [deprecation] getValue(java.lang.String) in javax.servlet.http.HttpSession has been deprecated
      [execmodules] return ProxyRequest.this.getSession().getValue(name);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:133: warning: [deprecation] getValueNames() in javax.servlet.http.HttpSession has been deprecated
      [execmodules] return ProxyRequest.this.getSession().getValueNames();
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:143: warning: [deprecation] putValue(java.lang.String,java.lang.Object) in javax.servlet.http.HttpSession has been deprecated
      [execmodules] ProxyRequest.this.getSession().putValue(name, object);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyRequest.java:153: warning: [deprecation] removeValue(java.lang.String) in javax.servlet.http.HttpSession has been deprecated
      [execmodules] ProxyRequest.this.getSession().removeValue(name);
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyResponse.java:32: warning: [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public class ProxyResponse extends AbstractDelegatingResponse
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyResponse.java:32: warning: [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public class ProxyResponse extends AbstractDelegatingResponse
      [execmodules] ^
      [execmodules] C:\Jboss\jbp-2.4\server\src\main\org\jboss\portal\server\servlet\ProxyResponse.java:32: warning: [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public class ProxyResponse extends AbstractDelegatingResponse
      [execmodules] ^
      [execmodules] 3 errors
      [execmodules] 27 warnings
      Press any key to continue . . .

      I am on Windows XP, and my classpath and path settings are as follows:

      CLASSPATH=C:\progra~1\Java\jdk1.5.0_04\lib\ext\QTJava.zip;C:\progra~1\Java\jdk1.
      5.0_04;.;C:\Jboss\server\default\lib;C:\Jboss\client;C:\Jboss;C:\Jboss\jboss-4.0
      .4.GA-ejb3\bin;C:\Jboss\jboss-4.0.4.GA-ejb3\server\default\lib;C:\progra~1\Java\
      jdk1.5.0_04\bin;C:\progra~1\Java\jre1.5.0_07\bin;C:\progra~1\Java\jre1.5.0_07\li
      b;C:\Jboss\jboss-4.0.4.GA-ejb3\server\default\deploy;C:\Jboss\jboss-4.0.4.GA-ejb
      3\client;
      JAVA_HOME=C:\progra~1\Java\jdk1.5.0_04
      JBOSS_HOME=C:\Jboss\jboss-4.0.4.GA-ejb3
      Path="C:\Program Files\Microsoft DirectX SDK (April 2006)\Utilities\Bin\x86";C:\
      Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
      DOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\PROGRA
      ~1\COMMON~1\SONICS~1\;C:\MATLAB701\bin\win32;C:\Program Files\QuickTime\QTSystem
      \;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\My
      SQL Server 5.0\bin;"C:\Program Files\Java\jdk1.5.0_04\bin"

      I would really appreciate any help in resolving this and enabling me to run the portal server on my machine. Once I get that sorted out, I am interested in using Eclipse for portlets development, which I am also having problems with.

      Thanks a lot in advance.

      Cheers
      -es