[JBoss Portal] - Jboss Portal Install Problems
by guru_fordy
Hey there. I am very new to Jboss but my company is evaluating it as a possibility for use. I have set up a VPC with the following things installed:
Windows XP Pro running on a VPC
2.6 CR2 downloaded with AS packaged.
SQL Server 2000
JDBC Connector Version 1.1.15.01.101 downloaded from Microsoft
Installed everything as the help file said but am getting an error when accessing http://localhost:8080/portal.
type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| javax.servlet.ServletException: Servlet execution threw an exception
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
|
|
| root cause
|
| java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:274)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
And this is from the log files:
2007-06-11 10:34:30,500 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal].[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
| java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
| at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:274)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Unknown Source)
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053023#4053023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053023
18Â years, 10Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: business methods and local home interface
by paoletto
stub in the DocumentoLocalHome.java:
| public java.util.Collection selectByMetadato(Integer num, String metadati);
| // throws javax.ejb.FinderException;
|
implementation as it appears in DocumentoBean.java:
| public java.util.Collection selectByMetadato(Integer num, String metadati) {
| DocumentoLocalHome documentoHome;
|
| java.util.Collection result = null;
|
| String sql = "SELECT DISTINCT documento.iddocumento" +
| "FROM documento join documento_metadatas_metadato_documents" +
| "on documento.idDocumento = documento_metadatas_metadato_documents.documento" +
| "join metadato on documento_metadatas_metadato_documents.metadato = " +
| "metadato.metadato" +
| "WHERE metadato.metadato IN (" + metadati + ")" +
| "GROUP BY documento.iddocumento, documento.titolo, documento.anno, "+
| "documento.tipo, documento.risorsa, documento.descrizione" +
| "HAVING count(*) = "+ num +";";
|
|
| ResultSet rset;
| rset = ServizioJdbc.ExecuteSql(sql);
|
| try {
| documentoHome = (DocumentoLocalHome) PortableRemoteObject.narrow(
| (new InitialContext()).lookup("DocumentoLocal"),DocumentoLocalHome.class);
| } catch (Exception e) {
| return null;
| }
|
| try {
| rset.first();
|
| while (! rset.isAfterLast() ) {
| result.add(documentoHome.findByPrimaryKey(Integer.valueOf(rset.getInt(1))));
| rset.next();
| }
| } catch (Exception e) { System.out.println(e.toString()); return null; }
|
| return result;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053012#4053012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053012
18Â years, 10Â months