axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan Thomson <dunc...@mitre.org>
Subject Re: Axis2 deploy in Sun Application Server? - Need an axis2-webapp expert!
Date Wed, 18 Apr 2007 15:26:35 GMT
OK, here's the scoop.  Axis2 seems to deploy in Sun App server OK, 
but the axis2 console web app is hosed in that environment.  I'd 
really like to get it working, so I'm hoping someone familiar with 
how the console web app is put together can help.

Here is the issue:

in $AXIS2_HOME/webapp/axis2-web/index.jsp

there is a link:

<a href="axis2-admin/">Administration</a>

That link is broken.  If the link is changed to:

<a href="axis2-web/admin.jsp">Administration</a>

then everything works.  However, that's not the way to fix it - 
there are similar broken links all over the place and it works in 
Tomcat, so the right fix is somewhere else.

Here's another clue.  In $AXIS2_HOME/webapp/WEB-INF/web.xml there is:

      <servlet>
         <servlet-name>AxisAdminServlet</servlet-name>
         <display-name>Apache-Axis AxisAdmin Servlet
                       (REST)</display-name>
         <servlet-class>
org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
     </servlet>

and:

     <servlet-mapping>
         <servlet-name>AxisAdminServlet</servlet-name>
         <url-pattern>/axis2-admin/*</url-pattern>
     </servlet-mapping>


So... I think what's supposed to happen is the link to axis2-admin 
in index.jsp is supposed to map to the AxisAdminServlet, which is 
supposed to map to the code in axis-web/admin.jsp.  Something in 
that mapping is broken.  How to fix it?

Duncan

Duncan Thomson wrote:
> John G. Norman wrote:
>> Just FYI, The Tomcat 5.0.28 JSP compiler fails as well (i.e.,
>> pre-compiling JSPs before deploying - the on-the-fly compilation may
>> have worked) on jsp:include tags:
>>
>> The original code has this idiom:
>>
>>    <jsp:include page="include/adminheader.jsp"></jsp:include>
>>
>> But Tomcat's JSP compiler can only handle:
>>
>>    <jsp:include page="include/adminheader.jsp"/>
> 
> Thanks John,
> 
> Yes, that's exactly the glitch.  I made that trivial change in the code 
> in the two .jsp files it was complaining about.  Also changed one entry 
> in the axis2/WEB-INF/web.xml file:
> 
>    <welcome-file-list>
>       <welcome-file>index.jsp</welcome-file>
>       <welcome-file>index.html</welcome-file>
>       <welcome-file>/axis2-web/index.jsp</welcome-file>
>     </welcome-file-list>
> 
> Change "/axis2-web" to "axis2-web" in the 3rd entry.
> 
> Deployed to the Sun App Server v9.  It works!  Well, almost...
> 
> Looks like I can deploy services just fine.  However, the axis2 admin 
> console web app is messed up - pages work fine but the links are all 
> broken.  For example, the welcome page pops up just fine at 
> http://seafox.mitre.org:8080/axis2/  (Not an internet accessible site, 
> don't bother trying to hit it.)  However, the links on that page to 
> Services and Administration are broken. They map to:
> http://seafox.mitre.org:8080/axis2/services/listServices
>  and
> http://seafox.mitre.org:8080/axis2/axis2-admin/
> respectively, but those locations aren't right.
> 
> The Validate link, on the other hand, maps to:
> http://seafox.mitre.org:8080/axis2/axis2-web/HappyAxis.jsp
> That link works.
> 
> Similarly, if I manually put in
> http://seafox.mitre.org:8080/axis2/axis2-web/admin.jsp
> the admin page displays correctly.
> 
> I'm guessing this is a glitch to do with servlet mappings in 
> axis2/WEB-INF/web.xml.  Unfortunately, I'm not a jsp programmer, so I'll 
> have to pull in someone who understands this code better than I do.  
> It's strange that it works fine when the app is deployed to Tomcat, but 
> not to Sun App server...
> 
> Suggestions?
> 
> Thanks,
> 
> Duncan
> 
> 
> 
>>
>> John
>>
>> On 4/16/07, Lahiru Sandakith <sandakith@gmail.com> wrote:
>>> Hi Duncan,
>>>
>>> I have seen some compilation problems earlier and done small fixes to 
>>> the
>>> JSPs of the axis2 webapp to get it validate through the ECLIPSE WTP 
>>> 1.5.1
>>> JSP syntax validator (I believe J2EE complient).  Other than few warning
>>> messages it did pass the validation. I have not tried it with sun
>>> application server. Please try it, it will be valuable feedback.
>>>
>>> Thanks
>>>
>>> Lahiru
>>>
>>>
>>> On 4/17/07, Duncan Thomson <duncant@mitre.org> wrote:
>>> > I'm trying to deploy Axis2 in Sun Java System Application Server
>>> > Platform Edition 9.0
>>> >
>>> > It fails.
>>> >
>>> > When I run the sun application server "verifier" tool on axis2.war
>>> > I get the errors shown below.
>>> >
>>> > These errors seem like they'd be fixable without too much
>>> > effort...  However, before I attempt this, has anyone had any
>>> > experience getting axis2 deployed on the Sun App server?
>>> >
>>> > Thanks,
>>> >
>>> > Duncan
>>> >
>>> >
>>> > Output from running Sun "verifier" on axis2.war:
>>> >
>>> ===================================================================
>>> >           FAILED TESTS :
>>> >           --------------
>>> >
>>> >           Test Name : tests.web.AllJSPsMustBeCompilable
>>> >           Test Assertion : All the JSPs that are bundled inside a
>>> > web application must be compilable using a J2EE compliant JSP
>>> > compiler th
>>> > at does not have any proprietary or optional features in it.
>>> >           Test Description : For [ axis2 ]
>>> > Error: Some JSPs bundled inside [ axis2 ] could not be compiled.
>>> > See details below.
>>> > axis2-web/TopFrame.jsp(29,4) Expecting "jsp:param" standard action
>>> > with "name" and "value" attributes
>>> > axis2-web/listGroupService.jsp(38,0) Expecting
>>> "jsp:param"
>>> > standard action with "name" and "value" attributes
>>> >
>>> >           Test Name : tests.web.WelcomeFile
>>> >           Test Assertion : welcome-file element contains the file
>>> > name to use as a default welcome file.
>>> >           Test Description : For [ axis2 ]
>>> > Error: Welcome file URL [ /axis2-web/index.jsp ] must be a partial
>>> > URL with no trailing or leading /.
>>> >
>>> =====================================================================
>>> >
>>> > --
>>> > Duncan Thomson
>>> > Tel:      703-983-7337
>>> > Mobile:   703-463-0536
>>> > Text Msg: 7034630536@vtext.com
>>> >
>>> >
>>> >
>>> >
>>> ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail:
>>> axis-user-unsubscribe@ws.apache.org
>>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >
>>> >
>>>
>>>
>>>
>>> -- 
>>> Regards
>>> Lahiru Sandakith
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


-- 
Duncan Thomson
Tel:      703-983-7337
Mobile:   703-463-0536
Text Msg: 7034630536@vtext.com



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message