简体   繁体   English

Weblogic服务器(UNIX)上的预编译JSP和Servlet

[英]Precompiled JSP and Servlets on a Weblogic server (UNIX)

We have a web application hosted on this webLogic server on a UNIX machine. 我们在UNIX计算机上的此webLogic服务器上托管了一个Web应用程序。 Its primarily a JSP/Servlet based app. 它主要是基于JSP / Servlet的应用程序。 Whenever we do a modification/enhancemment to any one of those JSps or servlets, I precompile them on my local and deploy them on the UNIX system. 每当我们对这些JSps或servlet中的任何一个进行修改/增强时,我都会在本地本地对其进行预编译,并将其部署在UNIX系统上。 For example, if there is a file called GetIdServlet.class, we usually rename the existing file to say GetIdServlet.class1 and then put in the new file as GetIdServlet.class. 例如,如果有一个名为GetIdServlet.class的文件,我们通常将现有文件重命名为GetIdServlet.class1,然后将新文件作为GetIdServlet.class放入。 This is just to be able to revert back to the original file in case they are needed. 这只是为了能够在需要时恢复为原始文件。 However, I notice very strange behaviour. 但是,我注意到非常奇怪的行为。 The application loses some functionality whenever we stop and start the server. 每当我们停止并启动服务器时,应用程序就会失去一些功能。 The functionality may be back on the next or a few restarts after that. 该功能可能会在下一次重新启动,或者在此之后重新启动。 For example, a submit button that is supposed to direct it to the next page just stops working. 例如,应该将其定向到下一页的提交按钮停止工作。 It may start working after a few restart. 重新启动几次后,它可能会开始工作。

However on my local(Eclipse + webLogic) there is absolutely no issue. 但是在我的本地(Eclipse + webLogic)上绝对没有问题。 Everything works fine. 一切正常。 Any ideas on what's going wrong? 有什么问题的想法吗?

You are using Unix Environment and i assume that the local desk setup used is windows OS or MAC. 您使用的是Unix环境,我假设使用的本地桌面设置是Windows OS或MAC。 thus, when you copy the class files you are using some tool like WinSCP. 因此,当您复制类文件时,您正在使用诸如WinSCP之类的工具。

in case so, then please set the copy settings of such tool to use binary method of copying the files. 在这种情况下,请设置该工具的复制设置,以使用二进制方式复制文件。

Example in WinSCP. WinSCP中的示例。 go to Options->Preferences->Select Transfer in the Side Menu->under the Transfer Mode section, Select Binary option as the Transfer Mode. 转到“选项”->“首选项”->“侧菜单”->“选择传输”,在“传输模式”部分下,选择“二进制”选项作为传输模式。 This will ensure that the binary replica is created on the Unix environment and that no data is lost in the transfer. 这将确保二进制副本是在Unix环境中创建的,并且不会在传输中丢失任何数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM