You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Dave <sn...@gmail.com> on 2008/02/26 04:34:27 UTC
Resin problem: Re: roller startup occurs erorr:log4j:ERROR setFile(null,true) call failed.
Any Resin users out there know what is going wrong with Mr. 蒋剑峰's installation?
- Dave
On Mon, Feb 25, 2008 at 5:00 AM, 蒋剑峰 <ji...@gmail.com> wrote:
> Hello Dave,
>
> I'm using resin3.0.25 web server,
> I deploy the roller4.0 on it.
> when startup ,exacptions is thrown:
> why?????
>
> [17:55:17.921] Windows XP 5.1 x86
> [17:55:17.921] Java 1.5.0-b64, 32, mixed mode, sharing, GBK, zh, Sun
> Microsystem
> s Inc.
> [17:55:17.921] resin.home = C:\resin-pro-3.0.25
> [17:55:17.921] server.root = C:\resin-pro-3.0.25
> [17:55:17.921]
> [17:55:18.000] Host[] starting
> [17:55:18.171] WebApp[http://localhost:8080] starting
> [17:55:18.312] In-place class redefinition (HotSwap) is not available.
> In-place
> class reloading during development requires a compatible JDK and -Xdebug.
> [17:55:19.328] WebApp[http://localhost:8080/axis] starting
> [17:55:19.343] AdminServlet: init
> - Unable to find config file. Creating new servlet engine config file:
> /WEB-INF
> /server-config.wsdd
> [17:55:21.171] SOAPMonitorService: init
> [17:55:21.250] WebApp[http://localhost:8080/logs] starting
> [17:55:21.781] WebApp[http://localhost:8080/resin-doc] starting
> [17:55:23.562] WebApp[http://localhost:8080/roller] starting
> [17:55:23.828] Loading Spring root WebApplicationContext
> Roller Weblogger: Successfully loaded custom properties file from classpath
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: \logs\roller.log
> at java.io.FileOutputStream.openAppend(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> at org.apache.log4j.FileAppender.setFile(FileAppender.java:282)
> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java
> :161)
> at org.apache.log4j.DailyRollingFileAppender.activateOptions
> (DailyRollin
> gFileAppender.java:215)
> at org.apache.log4j.config.PropertySetter.activate(
> PropertySetter.java:2
> 56)
> at org.apache.log4j.config.PropertySetter.setProperties(
> PropertySetter.j
> ava:132)
> at org.apache.log4j.config.PropertySetter.setProperties(
> PropertySetter.j
> ava:96)
> at org.apache.log4j.PropertyConfigurator.parseAppender
> (PropertyConfigura
> tor.java:654)
> at org.apache.log4j.PropertyConfigurator.parseCategory
> (PropertyConfigura
> tor.java:612)
> at org.apache.log4j.PropertyConfigurator.configureRootCategory
> (PropertyC
> onfigurator.java:509)
> at org.apache.log4j.PropertyConfigurator.doConfigure
> (PropertyConfigurato
> r.java:415)
> at org.apache.log4j.PropertyConfigurator.configure
> (PropertyConfigurator.
> java:349)
> at org.apache.roller.weblogger.config.WebloggerConfig
> .<clinit>(Weblogger
> Config.java:107)
> at
> org.apache.roller.weblogger.ui.core.RollerContext.contextInitialized(
> RollerContext.java:123)
> at com.caucho.server.webapp.Application.start(Application.java:1647)
> at com.caucho.server.deploy.DeployController.startImpl
> (DeployController.
> java:621)
> at
> com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(St
> artAutoRedeployAutoStrategy.java:72)
> at com.caucho.server.deploy.DeployController.startOnInit
> (DeployControlle
> r.java:509)
> at com.caucho.server.deploy.DeployContainer.start(
> DeployContainer.java:1
> 53)
> at com.caucho.server.webapp.ApplicationContainer.start
> (ApplicationContai
> ner.java:670)
> at com.caucho.server.host.Host.start(Host.java:420)
> at com.caucho.server.deploy.DeployController.startImpl
> (DeployController.
> java:621)
> at
> com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(St
> artAutoRedeployAutoStrategy.java:72)
> at com.caucho.server.deploy.DeployController.startOnInit
> (DeployControlle
> r.java:509)
> at com.caucho.server.deploy.DeployContainer.start(
> DeployContainer.java:1
> 53)
> at com.caucho.server.host.HostContainer.start(HostContainer.java
> :504)
> at com.caucho.server.resin.ServletServer.start(ServletServer.java
> :971)
> at com.caucho.server.deploy.DeployController.startImpl
> (DeployController.
> java:621)
> at com.caucho.server.deploy.AbstractDeployControllerStrategy.start
> (Abstr
> actDeployControllerStrategy.java:56)
> at com.caucho.server.deploy.DeployController.start(
> DeployController.java
> :517)
> at com.caucho.server.resin.ResinServer.start(ResinServer.java:551)
> at com.caucho.server.resin.Resin.init(Resin.java)
> at com.caucho.server.resin.Resin.main(Resin.java:625)
> log4j:ERROR Either File or DatePattern options are not set for appender
> [roller]
> .
> [17:56:06.734] com.google.inject.ProvisionException: Error while locating
> instan
> ce
> [17:56:06.734] bound to
> org.apache.roller.weblogger.business.jpa.JPAPersistenc
> eStrategy
> [17:56:06.734] for member at
> org.apache.roller.weblogger.business.jpa.JPAWeblo
> ggerImpl.<init>(JPAWebloggerImpl.java:77)
> [17:56:06.734] at
> com.google.inject.InjectorImpl$SingleParameterInjector.inject
> (InjectorImpl.java:646)
> [17:56:06.734] at com.google.inject.InjectorImpl.getParameters(
> InjectorImpl.jav
> a:666)
> [17:56:06.734] at com.google.inject.ConstructorInjector.construct
> (ConstructorIn
> jector.java:140)
> [17:56:06.734] at com.google.inject.InjectorImpl$ImplicitBinding.get
> (InjectorIm
> pl.java:1006)
> [17:56:06.734] at com.google.inject.ProviderToInternalFactoryAdapter$1.call
> (Pro
> viderToInternalFactoryAdapter.java:37)
> [17:56:06.734] at com.google.inject.InjectorImpl.callInContext(
> InjectorImpl.jav
> a:756)
> [17:56:06.734] at com.google.inject.ProviderToInternalFactoryAdapter.get
> (Provid
> erToInternalFactoryAdapter.java:35)
> [17:56:06.734] at com.google.inject.Scopes$1$1.get(Scopes.java:53)
> [17:56:06.734] at com.google.inject.InternalFactoryToProviderAdapter.get
> (Intern
> alFactoryToProviderAdapter.java:41)
> [17:56:06.734] at com.google.inject.BindingBuilderImpl$FactoryProxy.get
> (Binding
> BuilderImpl.java:299)
> [17:56:06.734] at com.google.inject.InjectorImpl$9$1.call(InjectorImpl.java
> :708
> )
> [17:56:06.734] at com.google.inject.InjectorImpl.callInContext(
> InjectorImpl.jav
> a:747)
> [17:56:06.734] at com.google.inject.InjectorImpl$9.get(InjectorImpl.java
> :702)
> [17:56:06.734] at com.google.inject.InjectorImpl.getInstance(
> InjectorImpl.java:
> 728)
> [17:56:06.734] at
> org.apache.roller.weblogger.business.GuiceWebloggerProvider.b
> ootstrap(GuiceWebloggerProvider.java:87)
> [17:56:06.734] at
> org.apache.roller.weblogger.business.WebloggerFactory.bootstr
> ap(WebloggerFactory.java:134)
> [17:56:06.734] at
> org.apache.roller.weblogger.business.WebloggerFactory.bootstr
> ap(WebloggerFactory.java:99)
> [17:56:06.734] at
> org.apache.roller.weblogger.ui.core.RollerContext.contextInit
> ialized(RollerContext.java:156)
> [17:56:06.734] at com.caucho.server.webapp.Application.start(
> Application.java:1
> 647)
> [17:56:06.734] at com.caucho.server.deploy.DeployController.startImpl
> (DeployCon
> troller.java:621)
> [17:56:06.734] at
> com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startO
> nInit(StartAutoRedeployAutoStrategy.java:72)
> [17:56:06.734] at com.caucho.server.deploy.DeployController.startOnInit
> (DeployC
> ontroller.java:509)
> [17:56:06.734] at com.caucho.server.deploy.DeployContainer.start
> (DeployContaine
> r.java:153)
> [17:56:06.734] at com.caucho.server.webapp.ApplicationContainer.start
> (Applicati
> onContainer.java:670)
> [17:56:06.734] at com.caucho.server.host.Host.start(Host.java:420)
> [17:56:06.734] at com.caucho.server.deploy.DeployController.startImpl
> (DeployCon
> troller.java:621)
> [17:56:06.734] at
> com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startO
> nInit(StartAutoRedeployAutoStrategy.java:72)
> [17:56:06.734] at com.caucho.server.deploy.DeployController.startOnInit
> (DeployC
> ontroller.java:509)
> [17:56:06.734] at com.caucho.server.deploy.DeployContainer.start
> (DeployContaine
> r.java:153)
> [17:56:06.734] at com.caucho.server.host.HostContainer.start(
> HostContainer.java
> :504)
> [17:56:06.734] at com.caucho.server.resin.ServletServer.start(
> ServletServer.jav
> a:971)
> [17:56:06.734] at com.caucho.server.deploy.DeployController.startImpl
> (DeployCon
> troller.java:621)
> [17:56:06.734] at
> com.caucho.server.deploy.AbstractDeployControllerStrategy.sta
> rt(AbstractDeployControllerStrategy.java:56)
> [17:56:06.734] at com.caucho.server.deploy.DeployController.start
> (DeployControl
> ler.java:517)
> [17:56:06.734] at com.caucho.server.resin.ResinServer.start(
> ResinServer.java:55
> 1)
> [17:56:06.734] at com.caucho.server.resin.Resin.init(Resin.java)
> [17:56:06.734] at com.caucho.server.resin.Resin.main(Resin.java:625)
> [17:56:06.734] Caused by: java.lang.RuntimeException:
> java.lang.reflect.Invocati
> onTargetException
> [17:56:06.734] at com.google.inject.ConstructorInjector.construct
> (ConstructorIn
> jector.java:161)
> [17:56:06.734] at com.google.inject.InjectorImpl$ImplicitBinding.get
> (InjectorIm
> pl.java:1006)
> [17:56:06.734] at com.google.inject.ProviderToInternalFactoryAdapter$1.call
> (Pro
> viderToInternalFactoryAdapter.java:37)
> [17:56:06.734] at com.google.inject.InjectorImpl.callInContext(
> InjectorImpl.jav
> a:756)
> [17:56:06.734] at com.google.inject.ProviderToInternalFactoryAdapter.get
> (Provid
> erToInternalFactoryAdapter.java:35)
> [17:56:06.734] at com.google.inject.Scopes$1$1.get(Scopes.java:53)
> [17:56:06.734] at com.google.inject.InternalFactoryToProviderAdapter.get
> (Intern
> alFactoryToProviderAdapter.java:41)
> [17:56:06.734] at
> com.google.inject.BindingBuilderImpl$ImplicitImplementation.g
> et(BindingBuilderImpl.java:334)
> [17:56:06.734] at
> com.google.inject.InjectorImpl$SingleParameterInjector.inject
> (InjectorImpl.java:640)
> [17:56:06.734] ... 36 more
> [17:56:06.734] Caused by: java.lang.reflect.InvocationTargetException
> [17:56:06.734] at sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (Native
> Method)
> [17:56:06.734] at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeC
> onstructorAccessorImpl.java:39)
> [17:56:06.734] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (Del
> egatingConstructorAccessorImpl.java:27)
> [17:56:06.734] at java.lang.reflect.Constructor.newInstance(
> Constructor.java:49
> 4)
> [17:56:06.734] at
> com.google.inject.DefaultConstructionProxyFactory$1.newInstan
> ce(DefaultConstructionProxyFactory.java:46)
> [17:56:06.734] at com.google.inject.ConstructorInjector.construct
> (ConstructorIn
> jector.java:142)
> [17:56:06.734] ... 44 more
> [17:56:06.734] Caused by: java.lang.UnsupportedOperationException
> [17:56:06.734] at javax.persistence.Persistence.createEntityManagerFactory
> (Pers
> istence.java:85)
> [17:56:06.734] at
> org.apache.roller.weblogger.business.jpa.JPAPersistenceStrate
> gy.<init>(JPAPersistenceStrategy.java:123)
> [17:56:06.734] ... 50 more
> [17:56:07.250] PageServlet: init
> [17:56:07.328] FeedServlet: init
> [17:56:07.328] ResourceServlet: init
> [17:56:07.328] SearchServlet: init
> [17:56:07.343] CommentServlet: init
> [17:56:07.453] RSDServlet: init
> [17:56:07.468] PlanetFeedServlet: init
> [17:56:07.484] CommentAuthenticatorServlet: init
> [17:56:07.484] PreviewServlet: init
> [17:56:07.484] PreviewResourceServlet: init
> [17:56:07.484] PreviewThemeImageServlet: init
> [17:56:07.484] RedirectServlet: init
> [17:56:07.484] StrutsRedirectServlet: init
> [17:56:12.625] WebApp[http://localhost:8080/resin-admin] starting
> [17:56:12.718] Socket JNI library requires a valid Resin Professional
> License.
> [17:56:12.718] See http://www.caucho.com/sales for information.
> [17:56:12.718] http listening to *:8080
> [17:56:12.734] hmux listening to localhost:6802
> [17:56:12.734] Resin started in 55328ms
>