[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spacewalk-devel
Subject:    Re: [Spacewalk-devel] Help getting development environment setup
From:       James Slagle <jslagle () redhat ! com>
Date:       2012-12-18 13:34:13
Message-ID: 20121218133413.GL2362 () teletran-1 ! redhat ! com
[Download RAW message or body]

On Mon, Dec 17, 2012 at 02:42:09PM -0500, James Slagle wrote:
> On Thu, Dec 13, 2012 at 12:18:08PM +0100, Tomáš Kašpárek wrote:
> > Hello,
> > 
> > I was trying to reproduce errors what are you getting but I've
> > encountered some more errors. Which some of them I was able to fix
> > (sudo ant install-devel with tomcat6 couldn't work before I looked
> > at it - see ed0bccb751ba9999aa90e8aad4d87e9675360311).
> > My main problem with which I was stuck was endless loops of
> > directories and symlinks in /var/www/html created by ant which
> > totally broke 2 of my spacewalks.
> > Unfortunately I will be out for next few days due to exams at school
> > but one of my colleagues will look at it, I will still be reachable
> > by email so I will be able to provide my colleagues information
> > about problems I've encountered.
> 
> Thanks...I had to make the same change as well for tomcat.  Also, I noticed
> that if you used the install-web target instead of install-devel, you didnt get
> the error with the infinite levels of symlinking.

Wanted to correct this statement in case this helps someone else.
install-devel actually just runs install-web and install-java.  Both of which
need to be run if you want to get set up to run the perl and java code out of
your checkout.

The multiple levels of symlinks appears to be caused by running install-web
(and/or install-devel) more than once.  Before running install-web a second
time, you need to first run uninstall-web.

> 
> For the specific exception below, it appeared that hte multiple definitions of
> AnnotationProcessor were causing the issue.  You can work around that by adding
> '<Loader delegate="true"/>' after <WatchedResource> in the <Context> section of
> /etc/tomcat6/context.xml.
> 
> I believe I'm setup now.
> 
> > 
> > On 12/11/2012 08:29 PM, James Slagle wrote:
> > > Hi,
> > > 
> > > I was wondering if I could get some help getting a Spacewalk development
> > > environment setup.  Particularly, running the Java code out of a git checkout
> > > so I can test patches, etc.
> > > 
> > > I've walked throught this document:
> > > https://fedorahosted.org/spacewalk/wiki/DevelopmentWorkstationSetup#WebApplication
> > >  
> > > The initial install (rhel 6 with tomcat 6 and oracle xe) seemed to go fine, I
> > > confirmed the UI was working as expected, and was able to login and setup the
> > > initial administrator account.
> > > 
> > > However, after completing the development setup, I get this traceback whenever
> > > I try to use the web UI now:
> > > 
> > > description: The server encountered an internal error () that prevented it from \
> > > fulfilling this request. exception:
> > > org.apache.jasper.JasperException: java.lang.ClassCastException: \
> > > org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to \
> > > org.apache.AnnotationProcessor \
> > > org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
> > >  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
> > >  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
> > > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
> > >  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
> > > com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:99)
> > >  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > > com.redhat.rhn.frontend.servlets.AuthFilter.doFilter(AuthFilter.java:93)
> > > com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:142)
> > >  com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58)
> > >  com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:67)
> > >  com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:108)
> > >  com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:55)
> > > com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:97)
> > >  
> > > I did encounter a couple of the issues under 'Troubleshooting' on that wiki
> > > page, but was able to work through them using the solutions shown.  I ran into
> > > a couple of missing jars during the dev setup, so I installed those as well
> > > (postgresql-jdbc and jmock).
> > > 
> > > But, I'm kind of stuck at this point with the above traceback.  Is that wiki
> > > page still the way to go, if not, are there some other instructions?  Let me
> > > know if I can provide any more details or logs.
> > > 
> > > Thanks for any help.
> > > 
> > > --
> > > -- James Slagle
> > > --
> > > 
> > > _______________________________________________
> > > Spacewalk-devel mailing list
> > > Spacewalk-devel@redhat.com
> > > https://www.redhat.com/mailman/listinfo/spacewalk-devel
> > 
> > 
> > -- 
> > Tomáš Kašpárek
> > Satellite Engineering, Red Hat
> > 
> --
> -- James Slagle
> --
> 
> _______________________________________________
> Spacewalk-devel mailing list
> Spacewalk-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-devel
--
-- James Slagle
--

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic