Handler chain configuration file location




















You can not post a blank message. Please type your message and try again. This project is read only now. Read more. Any help is appreciated. Final] at org. GA] at org. GA] at java. This content has been marked as final. Show 15 replies. Stephen Coy wrote: See javax. HandlerChain file I guess you are hinting at using a relative path.

Is the error exactly the same? Stephen Coy wrote: Is the error exactly the same? Yes, the error is the same when I use relative path. In that case the error message changes slightly as follows: Caused by: javax. HandlerChain annotation is required to be packaged in the module.

Additionally, the handler chain file can also be packaged and specified in the annotation such that, it is accessible as a resource from the ClassPath. At runtime, container providers must first try to access the handler chain file as per the locations specified in JSR specification.

Failing that, they must try to access it as a resource from the ClassPath. If more than one resources are returned from the ClassPath, then the first one is used.

Thank you but I don't see how this is any different from what I am doing. Stephen Coy wrote: It must follow the requirements for location as specified in section 4. This just establishes that what you were doing in the first place should work. I will create a JIRA. The JIRA have been rejected. Your archive suffix should be. That being said, I've attached the actual artifact complete with class files and dependencies.

Go to original post. Learn more. Ask Question. Asked 10 years, 2 months ago. Active 2 years, 1 month ago. Viewed 20k times. Improve this question. Joaquim Oliveira Joaquim Oliveira 1, 2 2 gold badges 15 15 silver badges 28 28 bronze badges. Add a comment.

Active Oldest Votes. Improve this answer. Gonzalo Garcia Lasurtegui Gonzalo Garcia Lasurtegui 4, 5 5 gold badges 30 30 silver badges 49 49 bronze badges. I believe the XML file needs to be in the same jar as the class that is using it, no matter where the jar is located. So, I cannot put the XML file and the classes in the same jar. I am not aware of any strategy to read the xml configuration file if it is in another jar — Gonzalo Garcia Lasurtegui.

Vinod Cyriac Vinod Cyriac 2 2 silver badges 4 4 bronze badges. Could you add some resource manual, wiki, Vasudev Vasudev 1 1 gold badge 5 5 silver badges 15 15 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント

  • 1000 / 1000