narendramohan / openid-server

Automatically exported from code.google.com/p/openid-server
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

部署不成功 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
你好,我按照说明的install文件弄了,但是当我开启tomcat的时�
��出现了下面的错误:
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:221)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:423)
        at
org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:729)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:381)
        at
org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:255)
        at
org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:199)
        at
org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:45)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3934)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
429)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:987)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:909)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:314)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'cn.net.openid.jos.service.JosServiceImpl#10e35d5' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve
refere
nce to bean 'domainDao' while setting bean property 'domainDao'; nested
exceptio
n is org.springframework.beans.factory.BeanCreationException: Error
creating bea
n with name 'domainDao' defined in ServletContext resource
[/WEB-INF/dataAccessC
ontext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'
while s
etting bean property 'sessionFactory'; nested exception is
org.springframework.b
eans.factory.BeanCreationException: Error creating bean with name
'sessionFactor
y' defined in ServletContext resource
[/WEB-INF/dataAccessContext-hibernate.xml]
: Cannot resolve reference to bean 'hibernateProperties' while setting bean
prop
erty 'hibernateProperties'; nested exception is
org.springframework.beans.factor
y.BeanCreationException: Error creating bean with name
'hibernateProperties' def
ined in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]:
Cann
ot create inner bean 'org.springframework.jndi.JndiObjectFactoryBean#b32ed4' of
type [org.springframework.jndi.JndiObjectFactoryBean] while setting bean
propert
y 'properties' with key [TypedStringValue: value [hibernate.dialect],
target typ
e [null]]; nested exception is
org.springframework.beans.factory.BeanCreationExc
eption: Error creating bean with name
'org.springframework.jndi.JndiObjectFactor
yBean#b32ed4' defined in ServletContext resource
[/WEB-INF/dataAccessContext-hib
ernate.xml]: Invocation of init method failed; nested exception is
javax.naming.
NamingException: Cannot create resource instance
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:219)
        ... 42 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'domainDao' defined in ServletContext resource
[/WEB-INF/dataA
ccessContext-hibernate.xml]: Cannot resolve reference to bean
'sessionFactory' w
hile setting bean property 'sessionFactory'; nested exception is
org.springframe
work.beans.factory.BeanCreationException: Error creating bean with name
'session
Factory' defined in ServletContext resource
[/WEB-INF/dataAccessContext-hibernat
e.xml]: Cannot resolve reference to bean 'hibernateProperties' while
setting bea
n property 'hibernateProperties'; nested exception is
org.springframework.beans.
factory.BeanCreationException: Error creating bean with name
'hibernatePropertie
s' defined in ServletContext resource
[/WEB-INF/dataAccessContext-hibernate.xml]
: Cannot create inner bean
'org.springframework.jndi.JndiObjectFactoryBean#b32ed
4' of type [org.springframework.jndi.JndiObjectFactoryBean] while setting
bean p
roperty 'properties' with key [TypedStringValue: value [hibernate.dialect],
targ
et type [null]]; nested exception is
org.springframework.beans.factory.BeanCreat
ionException: Error creating bean with name
'org.springframework.jndi.JndiObject
FactoryBean#b32ed4' defined in ServletContext resource
[/WEB-INF/dataAccessConte
xt-hibernate.xml]: Invocation of init method failed; nested exception is
javax.n
aming.NamingException: Cannot create resource instance
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:221)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 50 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/
dataAccessContext-hibernate.xml]: Cannot resolve reference to bean
'hibernatePro
perties' while setting bean property 'hibernateProperties'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean wit
h name 'hibernateProperties' defined in ServletContext resource
[/WEB-INF/dataAc
cessContext-hibernate.xml]: Cannot create inner bean
'org.springframework.jndi.J
ndiObjectFactoryBean#b32ed4' of type
[org.springframework.jndi.JndiObjectFactory
Bean] while setting bean property 'properties' with key [TypedStringValue:
value
 [hibernate.dialect], target type [null]]; nested exception is
org.springframewo
rk.beans.factory.BeanCreationException: Error creating bean with name
'org.sprin
gframework.jndi.JndiObjectFactoryBean#b32ed4' defined in ServletContext
resource
 [/WEB-INF/dataAccessContext-hibernate.xml]: Invocation of init method
failed; n
ested exception is javax.naming.NamingException: Cannot create resource
instance

        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:275)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:221)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 63 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'hibernateProperties' defined in ServletContext resource
[/WEB
-INF/dataAccessContext-hibernate.xml]: Cannot create inner bean
'org.springframe
work.jndi.JndiObjectFactoryBean#b32ed4' of type
[org.springframework.jndi.JndiOb
jectFactoryBean] while setting bean property 'properties' with key
[TypedStringV
alue: value [hibernate.dialect], target type [null]]; nested exception is
org.sp
ringframework.beans.factory.BeanCreationException: Error creating bean with
name
 'org.springframework.jndi.JndiObjectFactoryBean#b32ed4' defined in
ServletConte
xt resource [/WEB-INF/dataAccessContext-hibernate.xml]: Invocation of init
metho
d failed; nested exception is javax.naming.NamingException: Cannot create
resour
ce instance
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:230)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveManagedMap(BeanDefinitionValueResolver.java:320)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:221)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:269)
        ... 76 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creati
ng bean with name 'org.springframework.jndi.JndiObjectFactoryBean#b32ed4'
define
d in ServletContext resource [/WEB-INF/dataAccessContext-hibernate.xml]:
Invocat
ion of init method failed; nested exception is
javax.naming.NamingException: Can
not create resource instance
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBean(BeanDefinitionValueResolver.java:219)
        ... 91 more
Caused by: javax.naming.NamingException: Cannot create resource instance
        at
org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(Resour
ceEnvFactory.java:114)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
04)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java
:155)
        at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:88)
        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:153)
        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
        at
org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport
.java:95)
        at
org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.j
ava:105)
        at
org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(Jnd
iObjectFactoryBean.java:200)
        at
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(Jnd
iObjectFactoryBean.java:186)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
        ... 96 more
2010-4-7 22:15:26 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-4-7 22:15:26 org.apache.catalina.core.StandardContext start
严重: Context [/joswebapp] startup failed due to previous errors

请问这时什么原因呢?
谢谢了

Original issue reported on code.google.com by atnw...@gmail.com on 7 Apr 2010 at 2:16

GoogleCodeExporter commented 9 years ago
你用的svn trunk上的r504版本吧?那个INSTALL相对于代码过时了。

对于Tomcat,把目录 jos-webapp/src/main/webapp/META-INF/ 中的 
context.dist.xml 改名成
context.xml 
并修改其内容,然后重新打包,或者把这个文件放在tomcat容��
�里的相应的位置。

Original comment by zhoushu...@gmail.com on 8 Apr 2010 at 1:49

GoogleCodeExporter commented 9 years ago
你好,谢谢你的回复。我看了一下我用的是r400的install,我用
svn下载的时候,下载的是最新
的版本。在windows上部署的程序,数据库用的是mysql,我按照��
�的方法改了,怎么还是不行
啊。我只是按照你的方法改了文件名,由于我对spring不太熟��
�,里面的内容没有改,我大致看
了一下这个文件,错误原因应该不是因为这个文件里面的错��
�吧。

Original comment by atnw...@gmail.com on 8 Apr 2010 at 2:14

GoogleCodeExporter commented 9 years ago
我想知道的是你的代码用的是什么版本的?是r504还是jos-1.2.0�
��

Original comment by zhoushu...@gmail.com on 8 Apr 2010 at 5:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
应该是r504吧,我是前天用windows的svn客户端下载的head 
revision,下载地址是:
http://openid-server.googlecode.com/svn/trunk/

Original comment by atnw...@gmail.com on 8 Apr 2010 at 6:49

GoogleCodeExporter commented 9 years ago
你好,我刚才又下载了jos-1.2.0(下载地址是http://openid-server.go
oglecode.com/svn/tags
/jos-1.2.0)但是在mvn package的时候就出错了,信息如下:
C:\Documents and 
Settings\Administrator\桌面\joid1.2\jos-web\src\main\java\cn\ne
t\openid\jos\web\ApprovingRequestProcessor.java:[209,31] 找不到符号
符号: 方法 
authResponse(org.openid4java.message.AuthRequest,java.lang.String,ja
va.lang.String,boolean,boolean)
位置: 类 org.openid4java.server.ServerManager
貌似原因是因为authResponse(org.openid4java.message.AuthRequest,java.lang.
String,ja
va.lang.String,boolean,boolean)方法不存在,但是这个方法存在啊,�
��又是什么原因呢?
谢谢了

Original comment by atnw...@gmail.com on 8 Apr 2010 at 7:32

GoogleCodeExporter commented 9 years ago
你还是用svn 
trunk上的代码吧,但是INSTALL没有更新,就不用看了,看这个��
�

1 复制 jos-webapp/src/main/webapp/META-INF 下的 context.dist.xml -> 
context.xml;
2 修改 context.xml:
  把   <Environment
        name="hibernate.hbm2ddl.auto"
        type="java.lang.String"
        value="update"
        override="false" />
  从注释中放出来;
3 打包 mvn clean package 
(在根目录下),打包时会尝试运行,所以会报一个缺少jetty-
env.xml的错误,需要先把 jos-webapp/jetty-env.dist.xml 复制成 
jos-webapp/jetty-env.xml;
4 打包得到的 jos-webapp/target/jos-webapp-1.2-SNAPSHOT.war 
就可以用来部署到tomcat了。

可以在 context.xml 中看到
    <Resource
        name="jdbc/jos"
        type="javax.sql.DataSource"
        driverClassName="org.hsqldb.jdbcDriver"
        url="jdbc:hsqldb:mem:jos"
        username="sa"
        password="" />
这是数据库配置,默认这个用的是内存数据库,重启tomcat后��
�据会丢失的,实际应用的话改成
你自己的,另外一个数据库的jdbc driver jar(hsqldb-1.8.0.7.jar -> 
/home/sutra/.m2
/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar)还是要复制或者符�
��链接到 tomcat
的 lib 
目录下好让tomcat找到,另外还有一个mail.jar也是(mail-1.4.jar ->
/home/sutra/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar)

Original comment by zhoushu...@gmail.com on 8 Apr 2010 at 7:44

GoogleCodeExporter commented 9 years ago
忘了说,context.xml 中还有这段:
    <Environment
        name="domain.configurator.password"
        type="java.lang.String"
        value="BLANK"
        override="false" />
把value="BLANK"改成value="MyPassword",这个密码是用来配置域的,�
��认的BLANK是任何密码
都不让登录。

Original comment by zhoushu...@gmail.com on 8 Apr 2010 at 7:45

GoogleCodeExporter commented 9 years ago
是不是按照这四步就可以使用内存数据库了?奇怪了为什么��
�的就是不行呢?第三步我是先弄好
jetty-env.xml这个文件,然后再mvn clean 
package的,这应该没有影响吧。还有对于
context.dist.xml和jetty-env.dist.xml我都保留在原来的地方了,没有�
��除,这也不应该有影
响吧。
报的错误貌似和以前的差不多

Original comment by atnw...@gmail.com on 8 Apr 2010 at 8:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
是的,只要这4步就可以了。如果有修改其它文件,需要还原�
��
dist文件保留与否不影响任何东西。

另外,不部署到Tomcat,用 mvn jetty:run 也是可以测试的:

mvn clean package install && cd jos-webapp && mvn jetty:run

浏览 http://localhost:8080/

Original comment by zhoushu...@gmail.com on 8 Apr 2010 at 8:32

GoogleCodeExporter commented 9 years ago
你好,我用mvn jetty:run 
还是有错误。我看了一下tomcat的日志,好像缺少mail.jar,我下
载
了一个mail-1.4.jar放在tomcat的lib下,关于email的错误好像没有了
。剩下的完整的错误由于
太大,我粘贴在附件中

Original comment by atnw...@gmail.com on 8 Apr 2010 at 8:48

Attachments:

GoogleCodeExporter commented 9 years ago
mvn jetty:run 和 tomcat 是两回事, mvn jetty:run 是不需要 Tomcat 
的。

你在用 Tomcat 的时候,你确认存在 META-INF/context.xml 文件吗?
也就是我上面说的1、2两步。刚才我测试了:如果没有这个文
件,就会报你给的log中的错误。

Original comment by zhoushu...@gmail.com on 8 Apr 2010 at 9:12

GoogleCodeExporter commented 9 years ago
我是把tomcat关闭了之后才运行jetty的,但是报的错误和tomcat是
一样的。另外,在我的
C:\Program Files\Apache Software Foundation\Apache Tomcat
6.0.20\webapps\jos-webapp-1.2-SNAPSHOT\META-INF这个目录下确实有context.x
ml这个文件,
请问你用的tomcat哪个版本?会不会是tomcat的版本不对?另外��
�能不能请你把你的war包发来给
我试试呢(就要用内存数据库的版本),我的email是atnwang@gmai
l.com.真是太感谢了

Original comment by atnw...@gmail.com on 8 Apr 2010 at 9:34

GoogleCodeExporter commented 9 years ago

Original comment by zhoushu...@gmail.com on 21 Apr 2010 at 1:46