■■请各位大虾!看一下在配置ofbiz-2.1.1-apps的时候包错!

03-05-14 normen

在配置ofbiz-2.1.1-apps的时候包错!
jdk version: j2sdk1.4.0
server:Jetty 4 (current: 4.2.9)
classpath=.;D:\Jakarta\ofbiz\lib\common\log4j.jar;
OFBIZ_HOME=D:\Jakarta\ofbiz

ofbiz.xml需要配置???

//////////////////////////////////////////////////////////
Loading ./commonapp/lib...

java.home......: C:\j2sdk1.4.0\jre
java.version...: 1.4.0
ofbiz.home.....: .
server.class...: org.mortbay.jetty.Server
config.file....: ./setup/jetty/etc/ofbiz.xml

03:15:44.173 EVENT Checking Resource aliases
03:15:45.415 EVENT Statistics on = false for org.mortbay.jetty.Server@e4cbc4
03:15:45.415 EVENT Starting Jetty/4.2.9
03:15:45.445 EVENT Started org.mortbay.http.NCSARequestLog@b2002f
03:15:45.906 EVENT Started WebApplicationContext[/accounting,Open For Business
- Accounting Manager]
log4j:ERROR Attempted to append to closed appender named [stdout].
0 [ ControlServlet.java:62 :INFO ] [ControlServlet.init] Loading Control
Servlet mounted on path D:\Jakarta\ofbiz\accounting\webapp
log4j:ERROR Attempted to append to closed appender named [stdout].
8071 [ ControlServlet.java:348:INFO ] [ControlServlet.init] Getting Entity E
ngine Delegator with delegator name default
log4j:ERROR Attempted to append to closed appender named [stdout].
8112 [ GenericDelegator.java:107:INFO ] Creating new Delegator with name "defa
ult".Loading ./commonapp/lib...

java.home......: C:\j2sdk1.4.0\jre
java.version...: 1.4.0
ofbiz.home.....: .
server.class...: org.mortbay.jetty.Server
config.file....: ./setup/jetty/etc/ofbiz.xml

03:15:44.173 EVENT Checking Resource aliases
03:15:45.415 EVENT Statistics on = false for org.mortbay.jetty.Server@e4cbc4
03:15:45.415 EVENT Starting Jetty/4.2.9
03:15:45.445 EVENT Started org.mortbay.http.NCSARequestLog@b2002f
03:15:45.906 EVENT Started WebApplicationContext[/accounting,Open For Business
- Accounting Manager]
log4j:ERROR Attempted to append to closed appender named [stdout].
0 [ ControlServlet.java:62 :INFO ] [ControlServlet.init] Loading Control
Servlet mounted on path D:\Jakarta\ofbiz\accounting\webapp
log4j:ERROR Attempted to append to closed appender named [stdout].
8071 [ ControlServlet.java:348:INFO ] [ControlServlet.init] Getting Entity E
ngine Delegator with delegator name default
log4j:ERROR Attempted to append to closed appender named [stdout].
8112 [ GenericDelegator.java:107:INFO ] Creating new Delegator with name "defa
ult".

wys1978
2003-05-14 12:22

log4j的配置文件有冲突, 是否在你的classpath里面有其他的log4j的配置?

ofbiz在2.1以后可以直接用java -jar的方式其他, 它会自动load它所需要的lib.

在你下载的ofbiz解开以后在目录下面有一个ofbiz.jar
运行
java -jar ofbiz.jar

就可以启动了.