服务器是Windows XP Pro, 中文版App Serv是WAS V5.1 中文版
试验了好多方法。
在setupCmdLine.bat 中设置-Dfile.encoding=GBK -Ddefault.client.encoding=GBK
UTF-8也设置了,但是就是不能编译成功,不知道应该如何设置才能正确发挥作用
JspReader: Exception parsing file
sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:2
86)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:317)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:222)
at java.io.InputStreamReader.read(InputStreamReader.java:207)
at java.io.Reader.read(Reader.java:112)
at org.apache.jasper.compiler.JspReader.pushFile2(JspReader.java:261)
at org.apache.jasper.compiler.JspReader.<init>(JspReader.java:316)
at org.apache.jasper.compiler.Parser.<init>(Parser.java:137)
at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:344)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:129)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.JasperUtil.compileDir(J
asperUtil.java:653)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.BatchC.compileDir(Batch
C.java:384)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.BatchC.compileDir(Batch
C.java:356)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.BatchC.compileDir(Batch
C.java:356)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.BatchC.compileDir(Batch
C.java:356)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.BatchC.compile(BatchC.j
ava:247)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.BatchC.run(BatchC.java:
201)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.JspBatchCompiler.start(
JspBatchCompiler.java:115)
at com.ibm.ws.webcontainer.jsp.compiler.ibmtools.JspBatchCompiler.main(J
spBatchCompiler.java:319)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
JSPG0044E: 生成 /jsp/setup/setupIndex.jsp 的代码时发生错误:o
rg.apache.jasper.compiler.ParseException: 无法读文件:/jsp/setup/setupIndex.jsp sun.io.MalformedInputException。