WebSphere App Server未编译JSP /标记库 [英] WebSphere App Server Not Compiling JSP/Tag Libs

查看:167
本文介绍了WebSphere App Server未编译JSP /标记库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是仅在应用程序更新时发生的问题(仅通过管理控制台而不是CLI进行测试)。此外,这只发生在我们的开发环境中,这与我们的产品环境相同。在卸载/安装时,一切都正确编译。但是,这是一个大型应用程序,需要很长时间才能进行更新 - 我们不希望每次都卸载/安装(特别是在开发版本中)。

This is a problem that only occurs on application update (only tested through Admin Console, not CLI). Also, this is only happening on our development environment, which is identical to our prod env. On uninstall/install, everything is compiled properly. However, this is a large application and it takes long enough to do an update--we do not want to uninstall/install everytime (esp. during dev. builds).

正在生成JSP .java和.smap文件,但不生成.class。在prod上,没有.smap - 只有.java和.class。如果JSP会编译,我们相信标签库也会被编译。

JSP .java and .smap files are being generated, but not .class. On prod, there is no .smap--only .java and .class. If the JSPs would compile, we believe the tag libs would be compiled also.

有没有人遇到过这个问题,或者知道我们可能会忽视什么?

Has anyone faced this problem, or know what we are possibly overlooking?

WAS版本:6.1.0.17

WAS Version: 6.1.0.17

非常感谢!

编辑:这只发生在一个JSP上和它使用的标签库。我们正试图解决这个问题。让我们知道我们是否有任何想法。我们认为这可能是.SMAP文件的问题,每此修复

This is only happening for one JSP and the tag library its using. We're trying to trouble shoot the issue. Let you know if we figure anything out. We think it may be an issue with the .SMAP file per this fix

解决方案

推荐答案

解决方案:



问题:WAS已启用调试。这生成了.smap文件(源映射)而不是.class文件。一旦我们发现了这一点,我们在管理控制台下禁用了调试服务(应用服务器> server1>调试进程>取消选中'启动服务')。我不知道为什么这只会在更新时产生错误,但无论如何,问题都解决了。

Solution:

Problem was: WAS had debugging enabled. This generated .smap files (source mappings) instead of .class files. Once we discovered this, we disabled the debugging service under the Admin Console (Application Servers > server1 > Debugging Processes > uncheck 'Start service'). I don't know why this created a bug upon an update only, but, whatever the case, the problem is solved.

这篇关于WebSphere App Server未编译JSP /标记库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆