[Seasar-user:21082] Re: S2maiでmessage-idのホスト名の変更
[E-MAIL ADDRESS DELETED]
[E-MAIL ADDRESS DELETED]
2011年 10月 14日 (金) 11:57:06 JST
六様
早速のご回答ありがとうございます。
下記ご説明のように設定してみたところ、Exceptionとなって
しまいました。
何をどう調べたらよいかも分かっていません。
お力を貸していただけますでしょうか。
以上、よろしくお願いします。
Exception in thread "main" org.seasar.framework.beans.
IllegalPropertyRuntimeException: [ESSR0059]クラス(org.seasar.mai.
interceptors.S2MaiInterceptor)のプロパティ(sendMail)の設定に失敗しました。
理由はorg.seasar.framework.beans.IllegalPropertyRuntimeException: [
ESSR0059]クラス(org.seasar.mai.mail.impl.SendMailImpl)のプロパティ(
messageId)の設定に失敗しました。理由はorg.seasar.framework.exception.
OgnlRuntimeException: [ESSR0073]OGNLで例外が発生しました。理由は[
ESSR0046]コンポーネント(example)が見つかりません at file:///C:/test/
mailProperties.dicon(36)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.
getValue(AbstractBindingTypeDef.java:297)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.
bindAuto(AbstractBindingTypeDef.java:217)
at org.seasar.framework.container.assembler.BindingTypeShouldDef.doBind
(BindingTypeShouldDef.java:58)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.bind
(AbstractBindingTypeDef.java:78)
at org.seasar.framework.container.assembler.AutoPropertyAssembler.
assemble(AutoPropertyAssembler.java:68)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
assemble(SingletonComponentDeployer.java:68)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
deploy(SingletonComponentDeployer.java:48)
at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(
ComponentDefImpl.java:111)
at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(
S2ContainerImpl.java:129)
at org.seasar.framework.container.impl.ComponentNameExpression.evaluate
(ComponentNameExpression.java:55)
at org.seasar.framework.container.impl.ArgDefImpl.getValue(ArgDefImpl.
java:60)
at org.seasar.framework.container.impl.AspectDefImpl.getAspect(
AspectDefImpl.java:81)
at org.seasar.framework.container.util.AopProxyUtil.getAspects(
AopProxyUtil.java:64)
at org.seasar.framework.container.util.AopProxyUtil.getConcreteClass(
AopProxyUtil.java:54)
at org.seasar.framework.container.impl.ComponentDefImpl.
getConcreteClass(ComponentDefImpl.java:140)
at org.seasar.framework.container.assembler.AutoConstructorAssembler.
getSuitableConstructor(AutoConstructorAssembler.java:58)
at org.seasar.framework.container.assembler.AutoConstructorAssembler.
doAssemble(AutoConstructorAssembler.java:42)
at org.seasar.framework.container.assembler.
AbstractConstructorAssembler.assemble(AbstractConstructorAssembler.java:
55)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
assemble(SingletonComponentDeployer.java:64)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
deploy(SingletonComponentDeployer.java:48)
at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(
ComponentDefImpl.java:111)
at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(
S2ContainerImpl.java:129)
at jp.co.isid.nfp.batch.main.MailTest.exec(MailTest.java:36)
at jp.co.isid.nfp.batch.main.MailTest.main(MailTest.java:23)
Caused by: org.seasar.framework.beans.IllegalPropertyRuntimeException: [
ESSR0059]クラス(org.seasar.mai.mail.impl.SendMailImpl)のプロパティ(
messageId)の設定に失敗しました。理由はorg.seasar.framework.exception.
OgnlRuntimeException: [ESSR0073]OGNLで例外が発生しました。理由は[
ESSR0046]コンポーネント(example)が見つかりません at file:///C:/test/
mailProperties.dicon(36)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.
getValue(AbstractBindingTypeDef.java:273)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.
bindManual(AbstractBindingTypeDef.java:126)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.bind
(AbstractBindingTypeDef.java:74)
at org.seasar.framework.container.assembler.AccessTypePropertyDef.bind(
AccessTypePropertyDef.java:50)
at org.seasar.framework.container.assembler.AccessTypePropertyDef.bind(
AccessTypePropertyDef.java:41)
at org.seasar.framework.container.assembler.AutoPropertyAssembler.
assemble(AutoPropertyAssembler.java:56)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
assemble(SingletonComponentDeployer.java:68)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
deploy(SingletonComponentDeployer.java:48)
at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(
ComponentDefImpl.java:111)
at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(
S2ContainerImpl.java:129)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.
getValue(AbstractBindingTypeDef.java:295)
... 23 more
Caused by: org.seasar.framework.exception.OgnlRuntimeException: [
ESSR0073]OGNLで例外が発生しました。理由は[ESSR0046]コンポーネント(
example)が見つかりません at file:///C:/test/mailProperties.dicon(36)
at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:106)
at org.seasar.framework.container.ognl.OgnlExpression.evaluate(
OgnlExpression.java:64)
at org.seasar.framework.container.assembler.
AbstractConstructorAssembler.assembleExpression(
AbstractConstructorAssembler.java:76)
at org.seasar.framework.container.assembler.
AbstractConstructorAssembler.assemble(AbstractConstructorAssembler.java:
50)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
assemble(SingletonComponentDeployer.java:64)
at org.seasar.framework.container.deployer.SingletonComponentDeployer.
deploy(SingletonComponentDeployer.java:48)
at org.seasar.framework.container.impl.ComponentDefImpl.getComponent(
ComponentDefImpl.java:111)
at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(
S2ContainerImpl.java:129)
at org.seasar.framework.container.impl.ComponentNameExpression.evaluate
(ComponentNameExpression.java:55)
at org.seasar.framework.container.impl.ArgDefImpl.getValue(ArgDefImpl.
java:60)
at org.seasar.framework.container.assembler.AbstractBindingTypeDef.
getValue(AbstractBindingTypeDef.java:271)
... 33 more
Caused by: org.seasar.framework.container.
ComponentNotFoundRuntimeException: [ESSR0046]コンポーネント(example)が見
つかりません
at org.seasar.framework.container.impl.S2ContainerBehavior$
DefaultProvider.acquireFromGetComponentDef(S2ContainerBehavior.java:165)
at org.seasar.framework.container.impl.S2ContainerBehavior$
DefaultProvider.acquireFromGetComponent(S2ContainerBehavior.java:158)
at org.seasar.framework.container.impl.S2ContainerBehavior.
acquireFromGetComponent(S2ContainerBehavior.java:62)
at org.seasar.framework.container.impl.S2ContainerImpl.getComponent(
S2ContainerImpl.java:124)
at org.seasar.framework.container.ognl.S2ContainerPropertyAccessor.
getProperty(S2ContainerPropertyAccessor.java:36)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1758)
at ognl.ASTProperty.getValueBody(ASTProperty.java:92)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:211)
at ognl.ASTChain.getValueBody(ASTChain.java:109)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:211)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:310)
at org.seasar.framework.util.OgnlUtil.getValue(OgnlUtil.java:98)
... 43 more
----- Original Message -----
> 六です。
>
> こちらの説明にある
> http://s2mai.sandbox.seasar.org/ja/guide1.html#config
> mailProperties.dicon に
>
> <component name="messageId">
> example.com
> </component>
>
> と書くといけるかと思います。
> 実際に発行されるmessageIdは、ozacc mail libraryの仕様に基づきます。
>
> http://spring-ext.sourceforge.jp/oml/xref/com/ozacc/mail/impl/
SendMailImpl.html#376
>
> ただ、正直ここの部分は左程つっこんで検証してないので
> 何かありましたらまたご連絡下さい。
>
> 2011年10月14日11:08 <[E-MAIL ADDRESS DELETED]>:
> > はじめまして。川島と申します。
> >
> > S2Maiを使用してメールを送信する際に、message-idの@以降の
> > ホスト名の文字列を変えることはできないのでしょうか?
> >
> > サーバー本体の「hostname」が設定されてしまうようなのですが、
> > インフラ構成の関係上、別のホスト名としたいのです。
> >
> > 大変お手数ですが、ご教示いただけると幸いです。
> >
> > 以上、よろしくお願いします。
> >
> >
> >
> >
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-user
> >
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
Seasar-user メーリングリストの案内