在Eclipse使用weblogic、glassfish等应用服务器容器
1.打开eclipse工具栏中的Window--Preferences--Server--Runtime Environments;
2.点击Add,弹出New Server窗口,这时Oracle下并没有weblogic、glassfish等服务器容器。点击右上方Download additional server adapters,稍等片刻,可选择oracle Glassfish Server Tools,Oracle Weblogic Server Tools安装。
3.注:weblogic不支持jdk7,所以在开发时注意更改项目Project Facets、java Compiler、java Build Path的配置。
-----------------------------
附贴一下我的项目中的weblogic.xml
<?xml version="1.0" encoding="UTF-8"?> <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd"> <wls:weblogic-version>12.1.1.0</wls:weblogic-version> <wls:context-root>logistics_pt</wls:context-root> <wls:charset-params> <wls:input-charset> <wls:resource-path>/*</wls:resource-path> <wls:java-charset-name>UTF-8</wls:java-charset-name> </wls:input-charset> </wls:charset-params> <wls:container-descriptor> <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes> </wls:container-descriptor> <wls:jsp-descriptor> <wls:keepgenerated>true</wls:keepgenerated> <wls:precompile>true</wls:precompile> <wls:print-nulls>false</wls:print-nulls> </wls:jsp-descriptor> </wls:weblogic-web-app>
相关推荐
phpboy 2008-07-13
中草药代码 2009-07-28
staticnetwind 2013-08-29
fhzh0 2012-02-27
尘封飞扬 2012-02-22
huangshuailei 2011-10-19
huangshuailei 2010-05-12
tomatoboryj 2009-12-30
程空万里 2009-05-09
huangzhe0 2009-05-01
XingKai 2008-08-30
snctoo 2008-07-13
wangol 2008-06-29
JESSIEfoo 2008-06-24
Qiluluwawa 2008-06-02
being 2008-05-16
JESSIEfoo 2008-03-26
知其然知其所以然 2007-10-26
raksmart0 2011-07-13