JBuilder7 and WebLogic7 integration development Struts a little experience

zhaozj2021-02-16  49

First, the web.xml file must be written according to the format, and the order in the front and rear will also be noted. I have encountered such a problem with the WAR file compiled with Apache Ant 1.5 in WebLogic7. But after unlocking (using WebLogic7) in JBuilder7, there will be problems: research, the problem is the web.xml file structure:

Index.jsp

Action

Org.apache.struts.Action.ActionServlet

Application

ApplicationResources

Config

/Web-inf/struts-config.xml

Debug

2

Detail

2

Validate

True

2

Should be changed to:

Action

Org.apache.struts.Action.ActionServlet

Application

ApplicationResources

Config

/Web-inf/struts-config.xml

Debug

2

Detail

2

Validate

True

2

Index.jsp

That is to say, the web.xml file will be strictly checked in JBuilder7.

"http://java.sun.com/dtd/web-app_2_3.dtd">

Second, if you want to integrate WebLogic7 test in JBuiler7, please delete item WAR files or folders that can be published in $ bea_home / user_projects / mydomain / applications: such as file ebusiness.war and ebusiness folders. The XML files that prevent WebLogic from running WebLog in JBuilder will affect the XML files of the project in the JBuilder in the directory. (Test web.xml will be automatically changed) or prohibit the default published page in WebLogic's console!

Third, using DJ anti-compilation as Java source file, may affect the release of the project. The reason may be that the anti-compilation document is not 100% correct. Or the anti-compiled Java source file will change some variable names such as Static Final into a real variable value.

Fourth, I use a strange problem with the JBuilder to join the JAR files you need in Project, which does not work for WebLogic, and the solution is to add related JAR library files or directories in the JBuilder's WebLogic server configuration. I don't know if it is JBuilder's bug.

5. There is also a problem that the Action class will not be found when publish. (These classes have been added to the corresponding path). My solution is the same.

6. To include the Properties resource file when packaging the WAR file, put the file in the source code root directory, such as: SRC

7. To include Web-INF under the package of WAR files and the following TLD files, add the TLDS directory in the web attribute.

Little experience, hoping to criticize and communicate, my email: S00n@coscon.com

转载请注明原文地址:https://www.9cbs.com/read-25919.html

New Post(0)