So I rebuilt oozie with tomcat 7 in pom.xml but it was still failing as
oozie source has tomcat6 config files, so I am going to update those files
and see if it works.
On Jun 6, 2016 1:42 PM, "Attila Sasvari" <asasv...@cloudera.com> wrote:

> Good job Ram! I am glad to hear you made it work.
>
> Regards,
> Attila
>
> ps: I did not have the time to reproduce the error, but I would guess
> dependency conflicts around jsp-api caused the trouble.
>
> Actually there is an open ticket about the future of Oozie server's
> deployment: https://issues.apache.org/jira/browse/OOZIE-2317
> Among other options it is recommended to use Tomcat 7 or newer because
> Tomcat 6 will be end of life on Dec 31 2016 in the future.
>
> On Mon, Jun 6, 2016 at 9:07 PM, rammohan ganapavarapu <
> rammohanga...@gmail.com> wrote:
>
> > Ok, i was able to resolve this issue by using tomcat7.
> >
> > Thanks,
> > Ram
> >
> > On Mon, Jun 6, 2016 at 10:58 AM, rammohan ganapavarapu <
> > rammohanga...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I am still not able to access web ui, can some one help me to fix it? I
> > am
> > > not using java-8.
> > >
> > > Thanks,
> > > Ram
> > >
> > > On Thu, Jun 2, 2016 at 10:14 AM, rammohan ganapavarapu <
> > > rammohanga...@gmail.com> wrote:
> > >
> > >> Peter,
> > >>
> > >> I am not using java-8 though, i am using java-7
> > >>
> > >> hadoop   24108     1 22 17:06 pts/0    00:00:13
> > >> */usr/lib/jvm/java-1.7.0-**openjdk.x86_64//bin/java*
> > >>
> >
> -Djava.util.logging.config.file=/uap/oozie/oozie-server/conf/logging.properties
> > >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> > -Xmx2048m
> > >> -Dderby.stream.error.file=/var/log/hadoop/derby.log
> > >> -Doozie.home.dir=/uap/oozie-4.2.0
> > >>
> > >> What else could be the reason for this jsp error?
> > >>
> > >> Ram
> > >>
> > >>
> > >>
> > >> On Wed, Jun 1, 2016 at 3:30 PM, Peter Cseh <gezap...@cloudera.com>
> > wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> This seems like a java 8 issue:
> > >>> https://issues.apache.org/jira/browse/OOZIE-2533
> > >>> We haven't figured out a solution to it yet, other that to change
> java
> > to
> > >>> an older version.
> > >>>
> > >>> gp
> > >>>
> > >>>
> > >>>
> > >>> On Wed, Jun 1, 2016 at 3:28 PM, rammohan ganapavarapu <
> > >>> rammohanga...@gmail.com> wrote:
> > >>>
> > >>> > When i try to access oozie web ui i am getting below error, any
> idea?
> > >>> >
> > >>> >
> > >>> > HTTP Status 500 - org.apache.jasper.JasperException: Unable to load
> > >>> class
> > >>> > for JSP
> > >>> > ------------------------------
> > >>> >
> > >>> > *type* Exception report
> > >>> >
> > >>> > *message* *org.apache.jasper.JasperException: Unable to load class
> > for
> > >>> JSP*
> > >>> >
> > >>> > *description* *The server encountered an internal error that
> > prevented
> > >>> it
> > >>> > from fulfilling this request.*
> > >>> >
> > >>> > *exception*
> > >>> >
> > >>> > org.apache.jasper.JasperException:
> org.apache.jasper.JasperException:
> > >>> > Unable to load class for JSP
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:161)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
> > >>> >
> > >>> >
> > >>>
> > 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:723)
> > >>> >
> > >>>  org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:595)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:554)
> > >>> >
> > >>>  org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
> > >>> >
> > >>> >
> > >>>
> > org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
> > >>> >
> > >>> > *root cause*
> > >>> >
> > >>> > org.apache.jasper.JasperException: Unable to load class for JSP
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
> > >>> >
> > >>> >
> > >>>
> > 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:723)
> > >>> >
> > >>>  org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:595)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:554)
> > >>> >
> > >>>  org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
> > >>> >
> > >>> >
> > >>>
> > org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
> > >>> >
> > >>> > *root cause*
> > >>> >
> > >>> > java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
> > >>> >         java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> > >>> >         java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> > >>> >         java.security.AccessController.doPrivileged(Native Method)
> > >>> >         java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> > >>> >
> > >>> >
> > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
> > >>> >
> > >>> >
> > org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
> > >>> >
> > >>> >
> > >>>
> > 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:723)
> > >>> >
> > >>>  org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:595)
> > >>> >
> > >>> >
> > >>>
> >
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:554)
> > >>> >
> > >>>  org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
> > >>> >
> > >>> >
> > >>>
> > org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
> > >>> >
> > >>> >
> > >>> > Ram
> > >>> >
> > >>> >
> > >>> >
> > >>> > On Wed, Jun 1, 2016 at 10:17 AM, rammohan ganapavarapu <
> > >>> > rammohanga...@gmail.com> wrote:
> > >>> >
> > >>> > > Attila,
> > >>> > >
> > >>> > > Thank you very much, seems like it is working, so if i want to
> > >>> include
> > >>> > > ExtJS at the time of build what should i do? do build have any
> > >>> option to
> > >>> > > include extjs libs as well or i have to download extjs to libext
> > and
> > >>> run
> > >>> > > setup to create war?
> > >>> > >
> > >>> > > ./bin/mkdistro.sh -P uber -P hadoop-2 -Dhadoop.version=2.7.1
> > >>> -DskipTests
> > >>> > <----
> > >>> > > this is working
> > >>> > >
> > >>> > > Ram
> > >>> > >
> > >>> > > On Wed, Jun 1, 2016 at 2:39 AM, Attila Sasvari <
> > >>> asasv...@cloudera.com>
> > >>> > > wrote:
> > >>> > >
> > >>> > >> That is strange. Oozie webapp/pom.xml shall contain uber
> profile,
> > >>> see
> > >>> > >> https://github.com/apache/oozie/blob/master/webapp/pom.xml#L263
> > *.
> > >>> > >>
> > >>> > >> My first guess that it can be a copy-paste issue (i.e.
> accidently
> > >>> copied
> > >>> > >> the above as  ./bin/mkdistro.sh -P*uber*,hadoop-2
> > >>> -Dhadoop.version=2.7.1
> > >>> > >> -DskipTests to your Bash terminal)? Anyway, what happens if you
> > >>> execute:
> > >>> > >>
> > >>> > >> ./bin/mkdistro.sh -P uber -P hadoop-2 -Dhadoop.version=2.7.1
> > >>> -DskipTests
> > >>> > >>
> > >>> > >> If this does not help either (which would be really odd), then
> as
> > a
> > >>> last
> > >>> > >> resort you can try to copy the Hadoop dependencies by yourself
> > >>> prior to
> > >>> > >> executing oozie-start.sh prepare-war:
> > >>> > >>
> > >>> > >> cp `find ~/.m2/repository/org/apache/hadoop/ -name
> "*2.7.1*.jar"`
> > >>> > libtools
> > >>> > >>
> > >>> > >> Hope this helps,
> > >>> > >> - Attila
> > >>> > >>
> > >>> > >>
> > >>> > >> * You can also check the existence of the uber profile the
> > >>> following way
> > >>> > >>
> > >>> > >> $ mvn help:all-profiles | grep -B2 -A2 uber
> > >>> > >>
> > >>> > >> Listing Profiles for Project:
> > >>> > >> org.apache.oozie:oozie-webapp:war:4.3.0-SNAPSHOT
> > >>> > >>
> > >>> > >>   Profile Id: generateDocs (Active: false , Source: pom)
> > >>> > >>
> > >>> > >>   *Profile Id: uber (Active: false , Source: pom)*
> > >>> > >>
> > >>> > >>   Profile Id: derby-test (Active: false , Source: pom)
> > >>> > >>
> > >>> > >>   Profile Id: wfgen (Active: false , Source: pom)
> > >>> > >>
> > >>> > >>
> > >>> > >> On Tue, May 31, 2016 at 7:13 PM, rammohan ganapavarapu <
> > >>> > >> rammohanga...@gmail.com> wrote:
> > >>> > >>
> > >>> > >> > I wanted to build oozie-4.2.0 with hadoop shared libs and
> extJS
> > >>> > >> support, so
> > >>> > >> > please help me.
> > >>> > >> >
> > >>> > >> > Ram
> > >>> > >> >
> > >>> > >> > On Tue, May 31, 2016 at 9:24 AM, rammohan ganapavarapu <
> > >>> > >> > rammohanga...@gmail.com> wrote:
> > >>> > >> >
> > >>> > >> > > Hi Attila,
> > >>> > >> > >
> > >>> > >> > > Thanks for your suggestion, i have tried that command but
> > >>> getting
> > >>> > >> bellow
> > >>> > >> > > warning.
> > >>> > >> > >
> > >>> > >> > > [WARNING] The requested profile "*uber*" could not be
> > activated
> > >>> > >> because
> > >>> > >> > it
> > >>> > >> > > does not exist.
> > >>> > >> > >
> > >>> > >> > > Ram
> > >>> > >> > >
> > >>> > >> > > On Mon, May 30, 2016 at 4:08 AM, Attila Sasvari <
> > >>> > >> asasv...@cloudera.com>
> > >>> > >> > > wrote:
> > >>> > >> > >
> > >>> > >> > >> Hi Ram,
> > >>> > >> > >>
> > >>> > >> > >> Have you tried to use the uber mode?
> > >>> > >> > >>
> > >>> > >> > >> ./bin/mkdistro.sh -P*uber*,hadoop-2 -Dhadoop.version=2.7.1
> > >>> > >> -DskipTests
> > >>> > >> > >>
> > >>> > >> > >> It will copy the Hadoop dependencies for you.
> > >>> > >> > >>
> > >>> > >> > >> Best regards,
> > >>> > >> > >> Attila
> > >>> > >> > >>
> > >>> > >> > >>
> > >>> > >> > >> Related
> > >>> > >> > >>
> > >>> > >> > >>    -
> > >>> > >> > >>
> > >>> > >> > >>
> > >>> > >> >
> > >>> > >>
> > >>> >
> > >>>
> >
> https://mail-archives.apache.org/mod_mbox/oozie-dev/201501.mbox/%3cbe9ba7d6-30e4-41a8-95b9-9592408cc...@gmail.com%3E
> > >>> > >> > >>    - https://issues.apache.org/jira/browse/OOZIE-2297
> > >>> > >> > >>
> > >>> > >> > >>
> > >>> > >> > >> On Fri, May 27, 2016 at 11:34 PM, rammohan ganapavarapu <
> > >>> > >> > >> rammohanga...@gmail.com> wrote:
> > >>> > >> > >>
> > >>> > >> > >> > Peter,
> > >>> > >> > >> >
> > >>> > >> > >> > Build went successful but when i try to start oozie
> getting
> > >>> class
> > >>> > >> not
> > >>> > >> > >> found
> > >>> > >> > >> > error, it seems like oozie war doesnt have hadooplibs.
> > >>> > >> > >> >
> > >>> > >> > >> > How i build:
> > >>> > >> > >> >
> > >>> > >> > >> > 1. Downloaded oozie-4.2.0 source tar file.
> > >>> > >> > >> > 2. Updated global pom.xml to (
> > >>> > >> > <hadoop.version>2.7.1</hadoop.version>)
> > >>> > >> > >> > 3. ./mkdistro.sh -P hadoop-2 -DskipTests ( all components
> > >>> > >> successful)
> > >>> > >> > >> > 4. start oozie:
> > >>> > >> > >> > INFO: Oozie webconsole disabled, ExtJS library not
> > specified
> > >>> > >> > >> >
> > >>> > >> > >> > New Oozie WAR file with added '' at
> > >>> > >> > >> >
> > >>> > >> > >> >
> > >>> > >> > >>
> > >>> > >> >
> > >>> > >>
> > >>> >
> > >>>
> >
> /home/rganapavarapu/oozie-4.2.0/distro/target/oozie-4.2.0-distro/oozie-4.2.0/oozie-server/webapps/oozie.war
> > >>> > >> > >> >
> > >>> > >> > >> >
> > >>> > >> > >> > INFO: Oozie is ready to be started
> > >>> > >> > >> >
> > >>> > >> > >> >
> > >>> > >> > >> > Setting up oozie DB
> > >>> > >> > >> >   setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
> > >>> > >> > >> >
> > >>> > >> > >> > Validate DB Connection
> > >>> > >> > >> > Exception in thread "main"
> java.lang.NoClassDefFoundError:
> > >>> > >> > >> > org/apache/hadoop/util/ReflectionUtils
> > >>> > >> > >> >     at
> > >>> > >> > >> >
> > >>> > >> >
> > >>> >
> > org.apache.oozie.service.Services.setServiceInternal(Services.java:377)
> > >>> > >> > >> >     at
> > >>> > org.apache.oozie.service.Services.<init>(Services.java:111)
> > >>> > >> > >> >     at
> > >>> > >> > >>
> > >>> org.apache.oozie.tools.OozieDBCLI.getJdbcConf(OozieDBCLI.java:164)
> > >>> > >> > >> >     at
> > >>> > >> > >> >
> > >>> > >> >
> > >>> >
> > org.apache.oozie.tools.OozieDBCLI.createConnection(OozieDBCLI.java:853)
> > >>> > >> > >> >     at
> > >>> > >> > >> >
> > >>> > >> > >>
> > >>> > >> >
> > >>> > >>
> > >>> >
> > >>>
> > org.apache.oozie.tools.OozieDBCLI.validateConnection(OozieDBCLI.java:861)
> > >>> > >> > >> >     at
> > >>> > >> org.apache.oozie.tools.OozieDBCLI.createDB(OozieDBCLI.java:182)
> > >>> > >> > >> >     at
> > >>> org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:126)
> > >>> > >> > >> >     at
> > >>> org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:77)
> > >>> > >> > >> > Caused by: java.lang.ClassNotFoundException:
> > >>> > >> > >> > org.apache.hadoop.util.ReflectionUtils
> > >>> > >> > >> >     at
> > java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> > >>> > >> > >> >     at
> > java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> > >>> > >> > >> >     at java.security.AccessController.doPrivileged(Native
> > >>> Method)
> > >>> > >> > >> >     at
> > >>> java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> > >>> > >> > >> >     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> > >>> > >> > >> >     at
> > >>> > >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> > >>> > >> > >> >     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> > >>> > >> > >> >     ... 8 more
> > >>> > >> > >> >
> > >>> > >> > >> > 5. SO i try to follow this link
> > >>> > >> > >> >
> > >>> > >> > >> >
> > >>> > >> > >>
> > >>> > >> >
> > >>> > >>
> > >>> >
> > >>>
> >
> https://dwtobigdata.wordpress.com/2015/08/23/apache-oozie-configuration-with-hadoop-2-6-0/
> > >>> > >> > >> >
> > >>> > >> > >> > but in 4.2.0 oozie i dont see hadoop-2 under hadooplibs
> > dir,
> > >>> so
> > >>> > not
> > >>> > >> > sure
> > >>> > >> > >> > how to resolve this issue.
> > >>> > >> > >> >
> > >>> > >> > >> > Ram
> > >>> > >> > >> >
> > >>> > >> > >> > On Fri, May 27, 2016 at 12:29 PM, Peter Cseh <
> > >>> > >> gezap...@cloudera.com>
> > >>> > >> > >> > wrote:
> > >>> > >> > >> >
> > >>> > >> > >> > > Hi,
> > >>> > >> > >> > >
> > >>> > >> > >> > > Can you provide the output of the build and the command
> > >>> you've
> > >>> > >> run
> > >>> > >> > to
> > >>> > >> > >> > build
> > >>> > >> > >> > > oozie?
> > >>> > >> > >> > > Thank you
> > >>> > >> > >> > >
> > >>> > >> > >> > > Peter
> > >>> > >> > >> > >
> > >>> > >> > >> > > On Fri, May 27, 2016 at 9:35 AM, rammohan ganapavarapu
> <
> > >>> > >> > >> > > rammohanga...@gmail.com> wrote:
> > >>> > >> > >> > >
> > >>> > >> > >> > > > Any help??
> > >>> > >> > >> > > >
> > >>> > >> > >> > > > On Wed, May 25, 2016 at 5:05 PM, rammohan
> ganapavarapu
> > <
> > >>> > >> > >> > > > rammohanga...@gmail.com> wrote:
> > >>> > >> > >> > > >
> > >>> > >> > >> > > > > Hi,
> > >>> > >> > >> > > > >
> > >>> > >> > >> > > > > I am trying to build ozzie 2.4.0 with hadoop 2.7.1,
> > >>> build
> > >>> > >> > >> successful
> > >>> > >> > >> > > but
> > >>> > >> > >> > > > > it doesn't have hadoop-2 under hadooplibs to create
> > war
> > >>> > file.
> > >>> > >> > can
> > >>> > >> > >> > > someone
> > >>> > >> > >> > > > > help me?
> > >>> > >> > >> > > > >
> > >>> > >> > >> > > > > Ram
> > >>> > >> > >> > > > >
> > >>> > >> > >> > > >
> > >>> > >> > >> > >
> > >>> > >> > >> > >
> > >>> > >> > >> > >
> > >>> > >> > >> > > --
> > >>> > >> > >> > > Peter Cseh
> > >>> > >> > >> > > Software Engineer
> > >>> > >> > >> > > <http://www.cloudera.com>
> > >>> > >> > >> > >
> > >>> > >> > >> >
> > >>> > >> > >>
> > >>> > >> > >
> > >>> > >> > >
> > >>> > >> >
> > >>> > >>
> > >>> > >
> > >>> > >
> > >>> >
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Peter Cseh
> > >>> Software Engineer
> > >>> <http://www.cloudera.com>
> > >>>
> > >>
> > >>
> > >
> >
>

Reply via email to