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

List:       wsf-javascript-dev
Subject:    Re: [Dev] The type javax.xml.stream.XMLStreamException cannot be resolved. It is indirectly referenc
From:       Dushan Abeyruwan <dushan () wso2 ! com>
Date:       2014-04-30 5:57:06
Message-ID: CACyyj6f1Gacx2mxgvcnXVHRHoOtx6h73WC53rSGvKuZxMW+1PQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Kasun,
  Thanks, will take update in kernal.

Cheers,
Dushan



On Wed, Apr 30, 2014 at 11:21 AM, Kasun Gajasinghe <kasung@wso2.com> wrote:

> Hi Dushan,
> 
> This has been fixed in kernel. It seems there are build failure in there
> hence the commits are not reflected in nexus yet.
> 
> Regards,
> KasunG
> 
> 
> On Wed, Apr 30, 2014 at 10:47 AM, Dushan Abeyruwan <dushan@wso2.com>wrote:
> 
> > Hi
> > Test wso2esb-4.9.0-SNAPSHOT build 24th April.
> > 
> > $subject can I know why this happens ? it seems only JSPs not able to
> > pick the depenecies correctly, to test this class loader issue, I just
> > copied..
> > 
> > same code segment.. to  ProxyServiceAdminClient and it works. only issue
> > here IMO JSP compilation has some issue in resolving dependencies..
> > 
> > 
> > 
> > 
> > et threw exception
> > org.apache.jasper.JasperException: Unable to compile class for JSP:
> > 
> > An error occurred at line: [1] in the generated java file:
> > [/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
> >  The type javax.xml.stream.XMLStreamException cannot be resolved. It is
> > indirectly referenced from required .class files
> > 
> > An error occurred at line: [26] in the generated java file:
> > [/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
> >  The import javax.xml.stream.XMLStreamException cannot be resolved
> > 
> > An error occurred at line: 96 in the jsp file: /proxyservices/source.jsp
> > XMLStreamException cannot be resolved to a type
> > 93:             try {
> > 94:                 elem= AXIOMUtil.stringToOM(source);
> > 95:                 XMLPrettyPrinter.prettify(elem,stream);
> > 96:             } catch (XMLStreamException e) {
> > 97:                 e.printStackTrace();
> > 98:             } catch (Exception e) {
> > 99:                 e.printStackTrace();
> > 
> > 
> > An error occurred at line: 97 in the jsp file: /proxyservices/source.jsp
> > e cannot be resolved
> > 94:                 elem= AXIOMUtil.stringToOM(source);
> > 95:                 XMLPrettyPrinter.prettify(elem,stream);
> > 96:             } catch (XMLStreamException e) {
> > 97:                 e.printStackTrace();
> > 98:             } catch (Exception e) {
> > 99:                 e.printStackTrace();
> > 100:             }
> > 
> > 
> > Stacktrace:
> > at
> > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
> >  at
> > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
> > at
> > org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
> > at
> > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
> > at
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> > at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > at
> > org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> >  at
> > org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> >  at
> > org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> >  at
> > org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > at
> > org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> >  at
> > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> >  at
> > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
> >  at
> > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
> >  at
> > org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
> >  at
> > org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
> >  at
> > org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
> > at
> > org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
> > at
> > org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
> > at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >  at java.lang.reflect.Method.invoke(Method.java:606)
> > at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
> > at
> > org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
> >  at
> > org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
> >  at
> > org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
> > at
> > org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
> >  at
> > org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
> >  at
> > org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
> > at
> > org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
> >  at
> > org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
> >  at
> > org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:634)
> >  at
> > org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)
> > at org.
> > 
> > Cheer,
> > Dushan Abeyruwan | Associate Tech Lead
> > Integration Technologies Team
> > PMC Member Apache Synpase
> > WSO2 Inc. http://wso2.com/
> > Blog:http://dushansview.blogspot.com/
> > Mobile:(0094)713942042
> > 
> > 
> 
> 
> --
> 
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> 
> 
> 



-- 
Dushan Abeyruwan | Associate Tech Lead
Integration Technologies Team
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:http://dushansview.blogspot.com/
Mobile:(0094)713942042


[Attachment #5 (text/html)]

<div dir="ltr">Hi Kasun,<div>   Thanks, will take update in \
kernal.</div><div><br></div><div>Cheers,</div><div>Dushan<br><div><br></div></div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 11:21 \
AM, Kasun Gajasinghe <span dir="ltr">&lt;<a href="mailto:kasung@wso2.com" \
target="_blank">kasung@wso2.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Dushan,<div><br></div><div>This has been \
fixed in kernel. It seems there are build failure in there hence the commits are not \
reflected in nexus yet.</div>

<div><br></div><div>Regards,</div><div>KasunG</div>

</div><div class="gmail_extra"><div><div class="h5"><br><br><div \
class="gmail_quote">On Wed, Apr 30, 2014 at 10:47 AM, Dushan Abeyruwan <span \
dir="ltr">&lt;<a href="mailto:dushan@wso2.com" \
target="_blank">dushan@wso2.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Hi</div><div>Test wso2esb-4.9.0-SNAPSHOT  \
build 24th April.</div><div><br></div><div>  $subject can I know why this happens ? \
it seems only JSPs not able to pick the depenecies correctly, to test this class \
loader issue, I just copied..</div>





<div><br></div><div>same code segment.. to   ProxyServiceAdminClient and it works. \
only issue here IMO JSP compilation has some issue in resolving \
dependencies..</div><div><br></div><div>  </div><div><br></div><div><br></div>





<div>et threw exception</div><div>org.apache.jasper.JasperException: Unable to \
compile class for JSP:  </div><div><br></div><div>An error occurred at line: [1] in \
the generated java file: \
[/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]</div>






<div>The type javax.xml.stream.XMLStreamException cannot be resolved. It is \
indirectly referenced from required .class files</div><div><br></div><div>An error \
occurred at line: [26] in the generated java file: \
[/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]</div>






<div>The import javax.xml.stream.XMLStreamException cannot be \
resolved</div><div><br></div><div>An error occurred at line: 96 in the jsp file: \
/proxyservices/source.jsp</div><div>XMLStreamException cannot be resolved to a \
type</div>





<div>93:                   try {</div><div>94:                         elem= \
AXIOMUtil.stringToOM(source);</div><div>95:                         \
XMLPrettyPrinter.prettify(elem,stream);</div><div>96:                   } catch \
(XMLStreamException e) {</div>





<div>97:                         e.printStackTrace();</div><div>98:                   \
} catch (Exception e) {</div><div>99:                         \
e.printStackTrace();</div><div><br></div><div><br></div><div>An error occurred at \
line: 97 in the jsp file: /proxyservices/source.jsp</div>





<div>e cannot be resolved</div><div>94:                         elem= \
AXIOMUtil.stringToOM(source);</div><div>95:                         \
XMLPrettyPrinter.prettify(elem,stream);</div><div>96:                   } catch \
(XMLStreamException e) {</div>





<div>97:                         e.printStackTrace();</div><div>98:                   \
} catch (Exception e) {</div><div>99:                         \
e.printStackTrace();</div><div>100:                   \
}</div><div><br></div><div><br></div><div>Stacktrace:</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)</div>





<div><span style="white-space:pre-wrap">	</span>at \
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)</div>






<div><span style="white-space:pre-wrap">	</span>at \
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)</div>





<div><span style="white-space:pre-wrap">	</span>at \
sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</div>






<div><span style="white-space:pre-wrap">	</span>at \
java.lang.reflect.Method.invoke(Method.java:606)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)</div>






<div><span style="white-space:pre-wrap">	</span>at \
org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_005finsertAttribute_005f7(template_jsp.java:634)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:356)</div>





<div><span style="white-space:pre-wrap">	</span>at \
org.</div><div><br></div>Cheer,<br><div dir="ltr"><div><font face="courier new, \
monospace">Dushan Abeyruwan |  <span style="color:rgb(153,153,153)">Associate Tech \
Lead</span></font></div>





<div><div><div><font color="#999999" face="courier new, monospace">Integration \
Technologies Team</font></div></div><div><font color="#999999" face="courier new, \
monospace">PMC Member Apache Synpase</font></div><div><font face="courier new, \
monospace"><font color="#999999">WSO2 Inc.  <a href="http://wso2.com/" \
target="_blank">http://wso2.com/</a></font><br>





</font></div><div><font face="courier new, monospace">Blog:<a \
href="http://dushansview.blogspot.com/" \
target="_blank">http://dushansview.blogspot.com/</a></font></div><div><span \
style="background-color:transparent"><font color="#999999" face="courier new, \
monospace">Mobile:<a href="tel:%280094%29713942042" value="+94713942042" \
target="_blank">(0094)713942042</a></font></span></div>





</div><div><span style="background-color:transparent"><font color="#999999" \
face="courier new, monospace"><img \
src="http://c.content.wso2.com/signatures/general.png" width="420" \
height="113"><br></font></span></div></div>






</div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span \
class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><b>Kasun \
Gajasinghe<br></b>Senior Software Engineer,  WSO2 Inc.<br>email: kasung AT spamfree \
<a href="http://wso2.com" target="_blank">wso2.com</a><br>



linked-in: <a href="http://lk.linkedin.com/in/gajasinghe" \
target="_blank">http://lk.linkedin.com/in/gajasinghe</a><br>blog: <a \
href="http://kasunbg.org" target="_blank">http://kasunbg.org</a><br>  <br>  </div> \
</font></span></div> </blockquote></div><br><br clear="all"><div><br></div>-- \
<br><div dir="ltr"><div><font face="courier new, monospace">Dushan Abeyruwan |  <span \
style="color:rgb(153,153,153)">Associate Tech Lead</span></font></div><div><div>

<div><font color="#999999" face="courier new, monospace">Integration Technologies \
Team</font></div></div><div><font color="#999999" face="courier new, monospace">PMC \
Member Apache Synpase</font></div><div><font face="courier new, monospace"><font \
color="#999999">WSO2 Inc.  <a href="http://wso2.com/" \
target="_blank">http://wso2.com/</a></font><br>

</font></div><div><font face="courier new, monospace">Blog:<a \
href="http://dushansview.blogspot.com/" \
target="_blank">http://dushansview.blogspot.com/</a></font></div><div><span \
style="background-color:transparent"><font color="#999999" face="courier new, \
monospace">Mobile:(0094)713942042</font></span></div>

</div><div><span style="background-color:transparent"><font color="#999999" \
face="courier new, monospace"><img \
src="http://c.content.wso2.com/signatures/general.png" width="420" \
height="113"><br></font></span></div></div>


</div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

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