Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Frequently asked questions about WebLogic

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The configuration of myeclipse+weblogic10 is successful

May fail in operation, due to weblogic10 instability, can be used after rebooting the machine

Problems may occur when using hibernate3 in web project

ClassNotFoundException: org.hibernate.hql.ast.HqlToken

Reference http://blog.chinajavaworld.com/entry.jspa?id=829

Test the local antlr.jar package to the directory where weblogic.jar is located, add the antlr.jar package to the path option of the myeclipse configuration server, and run OK

Other problems and solutions that may arise are reproduced below:

1. It was found that the configuration file could not be found when jmesa was processed. Corresponding to question 6 below, I released OK in archive mode instead.

There is a problem with 2.CXF 's deployment on WebLogic10.3: org.apache.cxf.js.rhino.DOMPayloadProvider "failed to preload

The solution is to change the header of the web.xml file to

3. It can't be handled. The jstl.jar package used in this project comes from MyEclipse. Find one and put it under the lib library of this project to solve the problem.

4. Avoid duplicate packages in the lib library

5.Hibernate-Validate-4.0.jar is not supported. If you need this package, use the previous Hibernate-Validate.jar package.

OS:Windows XP

WebApp Server:Tomat5.5 WebLogic server 10 (Chinese version)

IDE:Bea workshop for weblogic platform .

I. IDE considerations

To create a dynamic web project, choose whether to share the j2ee library. If so, you need the shared library of the domain to contain the libraries needed by the project, such as beeHive netUi.

If you do not share, copy the required libraries to the WEB-INF/lib directory and automatically create relevant configuration files under WEB-INF

If the following error occurs when visiting the page:

Index.jsp:2:4: the tag library cannot be found using this URI. This may be due to incorrect URI or an error parsing the .tld file.

Please delete the redundant configuration files, or re-create a project and select the correct configuration on the second page of the wizard.

II. Basic knowledge of WebLogic

A domain can include multiple servers, and the application depends on a server and is configured by deploying-> an application-> target.

Wl_server is the default domain of weblogic. Launch it from the start menu-> Bea products- > tools- > Weblogic Server

To create your own domain, create it from the start menu-> Bea products- > tools- > Configuration wizard

Login address: http://localhost:7001/console/login/LoginForm.jsp

Login user password: weblogic/weblogic

1. After deploying war, an error occurred during the test:

Error 503--Service Unavailable

From RFC 2068 Hypertext Transfer Protocol-HTTP/1.1:

.

Solution: it is generally necessary to test the application just after the change is activated, and then test it after the status is "active".

two。 Error in connection pool test:

Warning! Connectivity to backend database not verified. This is either because required connection pool attribute "TestConnectionsOnReserve" has not been enabled, or an invalid value has been specified for attribute "TestTableName". Please check the server log for more details..

Configure the connection buffer pool and select "Test connection when reserved" in Advanced. At this point, you need to activate the changes before testing. Otherwise, it will be wrong again.

3.jdbc jndi error:

Javax.naming.NameNotFoundException: Unable to resolve 'jdbc_fbysss. Resolved'; remaining name 'jdbc_fbysss'

First of all, click Service-> JDBC in the control bar on the left in the console to create a new data source. The name of the data source does not matter. Jndi name must pay attention to it, such as jdbc_fbysss, and the jdbc source must depend on a server. Otherwise, it won't start.

For the Spring project, modify applicationContext.xml 's dataSource (Tomcat's connection pooling is not needed here).

False

4.xml check error

(1) hbm.xml

Org.dom4j.DocumentException: unknown protocol: platform. Nested exception: unknown protocol: platform

When this is checked as a workshop export, the hbm.xml file generates an error. Just fix it.

(2) struts-config.xml

An exception occurred during formal deployment:

ERROR Digester []: Parse Error at line 2 column

15: Document root element "struts-config", must match DOCTYPE root "null".

Org.xml.sax.SAXParseException: Document root element "struts-config", must match

DOCTYPE root "null".

Need to add in the second line of struts-config.xml

Inconsistent implementation of 5.ServletApi

A strange phenomenon is found that in tomcat, a subclass of servlet, if the init method is not declared, will automatically execute the init method of the parent class, while weblogic will not.

The workaround is to explicitly declare init,super.init ()

6. Inexplicable null pointer error

Full error message:

Java.io.FileNotFoundException: F:\ bea\ wlserver_10.0\ samples\ domains\ workshop\ servers\ cgServer\ tmp\ _ WL_user\ prj_fbysss\ mlh6uz\ war (access denied.)

At java.io.FileInputStream.open (Ljava.lang.String;) V (Native Method)

At java.io.FileInputStream. (FileInputStream.java:106)

At workshop.util.filesystem.file.WlFileSystem.getInputStream (WlFileSyste

M.java:148)

At workshop.util.filesystem.FS.getInputStream (FS.java:262)

At javelin.jsp.JspParser.readStaticInclude (JspParser.java:3261)

At javelin.jsp.JspParser.parseStaticInclude (JspParser.java:3198)

At javelin.jsp.JspParser.processImplicitIncludes (JspParser.java:3289)

At javelin.jsp.JspParser.jspParse (JspParser.java:703)

At javelin.jsp.JspParser._parse (JspParser.java:504)

At javelin.jsp.JspParser.parse (JspParser.java:497)

At javelin.jsp.JspAnalyzer.parseFile (JspAnalyzer.java:113)

At javelin.jsp.JspAnalyzer.parse (JspAnalyzer.java:101)

At javelin.ProxySourceFile.parse (ProxySourceFile.java:117)

At javelin.SourceFile.getAst (SourceFile.java:542)

At javelin.SourceFile.getAst (SourceFile.java:516)

At javelin.ProxySourceFile.codeGen (ProxySourceFile.java:215)

At javelin.SourceFile.codeGen (SourceFile.java:310)

At javelin.client.ClientUtilsImpl$CodeGenJob.run (ClientUtilsImpl.java:11

05)

At javelin.client.Job.performJob (Job.java:81)

At javelin.client.ThreadPool$WorkerThread.run (ThreadPool.java:215)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report