applet中引用的class在weblogic下位置存放问题?

03-05-08 bh_cool

applet中引用的class在weblogic下位置存放问题

我将applet引用的class打包成一个char.jar,放在了web-inf\lib下,可却不能引用,所以我就把它放到了C:\bea\user_domains\mydomain\applications\DefaultWebApp\applet下这样就可以了,但服务器运行一段时间后总抛安全异常

有人告诉我这是因为在C:\bea\user_domains\mydomain\applications\DefaultWebApp\下放了特殊文件造成的,所以我就想到了是这个applet包引起的,但我放到别处总连applet都不能正常显示了,望高手指点

hegong121
2003-05-08 21:15

我想Applet报完全异常多半是你在Applet中调用了不该调用的指令,比如本地文件访问或网络访问等。

bh_cool
2003-05-09 08:28

weblogic中的错误我现在帖出来供大家分析

<2003-4-30 下午11时02分04秒> <Error> <HTTP> <101005> <[ServletContext(id=6323693

,name=DefaultWebApp,context-path=/DefaultWebApp)] getRealPath() called with unsa

fe path: "/scripts/..\../winnt/system32/cmd.exe/"

weblogic.utils.io.FilenameEncoder$UnsafeFilenameException: C:\bea\user_domains\m

ydomain\applications\winnt\system32\cmd.exe\ not under: C:\bea\user_domains\mydo

main\applications\DefaultWebApp

at weblogic.utils.io.FilenameEncoder.getSafeFile(FilenameEncoder.java:21

8)

at weblogic.servlet.internal.WebAppServletContext.getRealPath(WebAppServ

letContext.java:684)

at weblogic.servlet.internal.WebAppServletContext.findIndexFile(WebAppSe

rvletContext.java:3630)

at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppS

ervletContext.java:3561)

at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppS

ervletContext.java:3289)

at weblogic.servlet.internal.WebAppServletContext.dispatch(WebAppServlet

Context.java:2837)

at weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTT

P.java:647)

at weblogic.socket.MuxableSocketDiscriminator.dispatch(MuxableSocketDisc

riminator.java:275)

at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:667)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:

23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

>

<2003-4-30 下午11时02分04秒> <Error> <HTTP> <101005> <[ServletContext(id=6323693

,name=DefaultWebApp,context-path=/DefaultWebApp)] getRealPath() called with unsa

fe path: "/scripts/..\../winnt/system32/cmd.exe/"

weblogic.utils.io.FilenameEncoder$UnsafeFilenameException: C:\bea\user_domains\m

ydomain\applications\winnt\system32\cmd.exe\ not under: C:\bea\user_domains\mydo

main\applications\DefaultWebApp

at weblogic.utils.io.FilenameEncoder.getSafeFile(FilenameEncoder.java:21

8)

at weblogic.servlet.internal.WebAppServletContext.getRealPath(WebAppServ

letContext.java:684)

at weblogic.servlet.internal.WebAppServletContext.findIndexFile(WebAppSe

rvletContext.java:3630)

at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppS

ervletContext.java:3561)

at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppS

ervletContext.java:3289)

at weblogic.servlet.internal.WebAppServletContext.dispatch(WebAppServlet

Context.java:2837)

at weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTT

P.java:647)

at weblogic.socket.MuxableSocketDiscriminator.dispatch(MuxableSocketDisc

riminator.java:275)

at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:667)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:

23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

>

<2003-4-30 下午11时02分04秒> <Error> <HTTP> <101005> <[ServletContext(id=6323693

,name=DefaultWebApp,context-path=/DefaultWebApp)] getRealPath() called with unsa

fe path: "/scripts/..\../winnt/system32/cmd.exe/"

weblogic.utils.io.FilenameEncoder$UnsafeFilenameException: C:\bea\user_domains\m

ydomain\applications\winnt\system32\cmd.exe\ not under: C:\bea\user_domains\mydo

main\applications\DefaultWebApp

at weblogic.utils.io.FilenameEncoder.getSafeFile(FilenameEncoder.java:21

8)

at weblogic.servlet.internal.WebAppServletContext.getRealPath(WebAppServ

letContext.java:684)

at weblogic.servlet.internal.WebAppServletContext.findIndexFile(WebAppSe

rvletContext.java:3630)

at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppS

ervletContext.java:3561)

at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppS

ervletContext.java:3289)

at weblogic.servlet.internal.WebAppServletContext.dispatch(WebAppServlet

Context.java:2837)

at weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTT

P.java:647)

at weblogic.socket.MuxableSocketDiscriminator.dispatch(MuxableSocketDisc

riminator.java:275)

at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:667)

at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:

23)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

>

<2003-4-30 下午11时14分54秒> <Error> <HTTP> <101083> <Connection failure

java.net.SocketException: ReadFile failed: 指定的网络名不再可用。

(error 64, fd 2920)

at weblogic.socket.NTSocketMuxer.initiateIO(Native Method)

at weblogic.socket.NTSocketMuxer.read(NTSocketMuxer.java:461)

at weblogic.servlet.internal.MuxableSocketHTTP.requeue(MuxableSocketHTTP

.java:287)

at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImp

l.java:1145)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm

pl.java:2549)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

>

<2003-4-30 下午11时15分20秒> <Error> <HTTP> <101083> <Connection failure

java.net.SocketException: ReadFile failed: 指定的网络名不再可用。

(error 64, fd 2864)

at weblogic.socket.NTSocketMuxer.initiateIO(Native Method)

at weblogic.socket.NTSocketMuxer.read(NTSocketMuxer.java:461)

at weblogic.servlet.internal.MuxableSocketHTTP.requeue(MuxableSocketHTTP

.java:287)

at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImp

l.java:1145)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm

pl.java:2549)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

>

//////////////////////////////////////2

有人告诉我这是因为在C:\bea\user_domains\mydomain\applications\DefaultWebApp\下放了特殊文件造成的,我在它下的放的都是网页所需要的基本文件,望高手指点,在此先言谢

张无云
2003-05-10 10:40

目录层次

mydomain\applications\test

mydomain\applications\applet\bar.jar

mydomain\applications\test\PageApplet.jsp

在PageApplet中使用下面的语句:

<applet archive = 'applet/bar.jar' codebase ='/test'>

张无云
2003-05-10 10:41

目录层次

mydomain\applications\test

mydomain\applications\applet\bar.jar

mydomain\applications\test\PageApplet.jsp

在PageApplet中使用下面的语句:

<applet  archive = 'applet/bar.jar' codebase ='/test'>

2Go 1 2 下一页