Eclipse + JBoss use small problem summary

xiaoxiao2021-03-06  71

Eclipse3.01 and JBoss3.2.6, plus Lomboz3.01 (must be installed EMF-SDK-2.0.1)

There have been many problems, but the problem is small, but it costs a lot, but there are some solutions on the Internet, but it can't understand the real reasons, let me think it still needs research.

1. Why is the Lomboz's Server Definitions in Preferences, why is it jboss2.4.4 each time, I am not set and "app" JBoss3.2.6?

Cause: The concept is not understood.

The content of Server Types in Server Definitions is actually read by multiple files in the folder "c: /eclipse3.01/plugins/com.objectlearn.jdt.j2ee_3.0.1/servers", each file corresponds to one Configuration of a server.

And here just represent a list, indicating that your JBoss can support those servers. As for which one your project is used, you need to set it when you create your Project, and you can add multiple.

Here is just a setting for each server, but not, you use this by default.

You can completely delete the configuration file of the server you don't have to use under the Server folder. For example, I delete the JBoss244, JBoss244Tomcat, JBoss300all, etc. I don't have to use the server.

2, how to write the Server file

In fact, every Server Type in Server Definition corresponds to 4 tabs, and settings for these four tabs are the content of the Server file.

The first property page: The modified content is mainly the content of the corresponding server and the content of the ClassPath variable.

The latter ClassPath property page, the CLENT CLASSPATH Property page and the Project ClassPath Properties page: The main check is the correct variable and the library file is correct, is there a lack of it.

I personally think that now Eclipse does not seem to check the correctness immediately, as long as the specified ClassPath variables content is the JBoss installation directory, the default settings in the server file are the same icon. No matter whether your JAR file is really in the specified directory.

3. Due to the problem of 2, it can't find javax.servlet.jar and jboss-boot.jar files.

Reason: These two files have no existence

Solution:

I have been looking for a long time online, I found a Server file that provides ready-made JBoss3.2.6 on a Japanese website. Download it can be used. The URL is: http://www.kawaz.jp/pukiwiki/? JBoss% 203.2.3% A2% AA3.2.4

But the nation's complex has made me feel that I will figure out how people will, compare two files.

New has removed Javax.Servlet.jar and jboss-boot.jar files.

But in Server ClassPath and Project Classpath, there are more settings:

$ {classpathvariablename} / server / $ {serverconfig} /deploy/jbossweb-tomcat50.sar/servlet-api.jar

Also found that the default jdom.jar file in Server ClassPath has replaced with the Dom4j.jar file. It is not the case in the LIB directory of jboss3.2.6.

4, why after manual changes and replaced several Server files, the button in the Lomboz J2EE VIEW in Eclipse is not good, can only perform Run.bat in the JBoss directory? Originally, you can start the server:

However, it is suddenly not good.

Finally, I found that a "small error" appeared because of his own server file.

Because I change the file name of the JBoss32x.server file under the Server directory to jboss326.server, it is clear JBoss3.2.6 in Server Definitions in the Preferences, but I There is no change in the second line of this Server file,

Name = "jboss 3.2.x" should be changed to Name = "JBoss 3.2.6" and the name is consistent, so that there will be no "strange" problem.

I think I will encounter a lot of small problems, I hope to record it, help yourself. In addition, I still want to further understand the meaning of the Server file, I know, please tell me, thank you.

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

New Post(0)