0

weblogic 12c + zk + jsp

asked 2015-09-29 13:38:03 +0800

PRATIKKAR gravatar image PRATIKKAR
3 2

updated 2015-09-29 14:28:27 +0800

Hi, I faced a typical issue while deploying the zul application in Weblogic 12c . with the following error

java.lang.IllegalStateException: strict servlet API: cannot call getOutputStream() after getWriter() at weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:297) at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:138) at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:138) at weblogic.servlet.internal.DelegateChunkWriter.write(DelegateChunkWriter.java:108) at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:148)

After searching for hours we were able to pin point the issue .

whenever our jsp page has jsp:include tag where we include the zul page it like <jsp:include page="/zul/Menu.zul"/> . Same scenario also occurs when we try to include the Menu.zul in apache tiles .

Any Ideas on this ?? Urgently require help.

My Menu.zul looks like this.

<?page title="" contentType="text/html;charset=UTF-8"?>
<zk>
    <window id="mainmenubar" apply="org.zkoss.bind.BindComposer"
        border="none"
        viewModel="@id('vm') @init('com.***.cdars.web.vo.MenuBarVM')">
        <menubar id="mbar"
            autodrop="true"
            children="@bind(vm.nodes) @template(empty each.children?'menuitem':'menu')">
            <template name="menu" var="menu">
                <menu label="@bind(menu.name)">
                    <menupopup sclass="mymenupopup"
                        children="@bind(menu.children) @template(empty each.children?'menuitem':'menu')" />
                </menu>
            </template>
            <template name="menuitem" var="item">
                <menuitem label="@bind(item.name)"
                    onClick="@command('menuClicked',menuitem=item)" />
            </template>
        </menubar>
    </window>
</zk>
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-10-16 02:26:22 +0800

cor3000 gravatar image cor3000
6280 2 7

did have a look into our JSP integration? http://www.zkoss.org/product/zkjsp

link publish delete flag offensive edit
0

answered 2015-10-20 13:04:18 +0800

PRATIKKAR gravatar image PRATIKKAR
3 2

The problem got solved when i used c:import tag for including zul pages in jsp . Instead of just doing it through jsp:include . The issue is weblogic obeys strict servlet api.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2015-09-29 13:38:03 +0800

Seen: 38 times

Last updated: Oct 20 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More