java 已翻译的 jsp servlet 存储在哪里

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3165817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 00:39:02  来源:igfitidea点击:

Where translated servlet of jsp got stored

javajspweblogicweblogic9.x

提问by sap

As we know, when the jsp got complied it will get converted to servet.

正如我们所知,当jsp 被编译时,它会被转换成servet。

I have installed weblogic server 9.2, and i deployed a struts project which has jsp files. And in the browser i am able to see the application.

我已经安装了 weblogic server 9.2,并且我部署了一个包含 jsp 文件的 struts 项目。在浏览器中,我能够看到该应用程序。

Now I want to see the servelt file of jsp which I ran.

现在我想查看我运行的jsp的servelt文件。

Can anybody please tel me where I can find it or do i need to do some configurations for this because I searched whole weblogic directory there is no java file with the jsp file name.

任何人都可以告诉我在哪里可以找到它,或者我是否需要为此做一些配置,因为我搜索了整个 weblogic 目录,没有带有 jsp 文件名的 java 文件。

回答by Pascal Thivent

If WebLogic is compiling JSP (i.e. if you are not precompiling them), they should be located under domain_name/servers/server-name-1/tmp/_WL_user.

如果 WebLogic 正在编译 JSP(即如果您没有预编译它们),它们应该位于domain_name/servers/server-name-1/tmp/_WL_user.

See also

也可以看看

回答by Yogev Levy

I was struggling with this today and found another option. If you deploy your application via eclipse (and not via EAR file using the weblogic console) the compiled JSPs will be in <workspace>\.metadata\.plugins\org.eclipse.wst.server.core\tmp<some digit>\<domain name>\work\<app name>\jsp_servlet.

我今天为此苦苦挣扎,并找到了另一种选择。如果您通过 eclipse(而不是使用 weblogic 控制台通过 EAR 文件)部署您的应用程序,则编译后的 JSP 将在<workspace>\.metadata\.plugins\org.eclipse.wst.server.core\tmp<some digit>\<domain name>\work\<app name>\jsp_servlet.

回答by 8080_HouseFull

For Weblogic 10.3.6, the folder is this.

对于 Weblogic 10.3.6,文件夹是这个。

C:\oracle\MIDDLEWARE\user_projects\domains\APPNAME\servers\myserver\tmp_WL_user_appsdir_APPNAME_dir\\jsp_servlet_jsp_content

C:\oracle\MIDDLEWARE\user_projects\domains\APPNAME\servers\myserver\tmp_WL_user_appsdir_APPNAME_dir\\jsp_servlet_jsp_content

回答by Guru

You can also check the <working-dir></working-dir>section in the weblogic.xmlfile to check for the location of jsp_servletsfolder where the .javaand .classfiles can be found.

您还可以检查文件中的<working-dir></working-dir>部分weblogic.xml以检查可以找到和文件的jsp_servlets文件夹的位置。.java.class

You can trick the weblogic into recompiling the jsp files by deleting the existing ones, and try and access the jsp page from browser (in case lazy initialization is being followed).

您可以通过删除现有文件来欺骗 weblogic 重新编译 jsp 文件,并尝试从浏览器访问 jsp 页面(以防遵循延迟初始化)。