maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gonzalo Vásquez Sáez" <gonzalo.vasquez.s...@gmail.com>
Subject Re: Problem building/installing an ejb project
Date Wed, 18 Apr 2007 02:14:19 GMT
Mmmm....you are right, I have a custom directory structure, how do I tell
maven where to search for this file?

On 17/04/07, Wayne Fay <waynefay@gmail.com> wrote:
>
> Where is this file (ejb-jar.xml) located in your project?
>
> If it is not in src/main/resources/META-INF, you will get this error
> message.
>
> Wayne
>
> On 4/17/07, Gonzalo Vásquez Sáez <gonzalo.vasquez.saez@gmail.com> wrote:
> > What other info can I provide you? I don't have that file locally, as I
> > guess it's validated online, as most other tools do, doesn't maven does
> so?
> >
> > I've downloaded the XSD, and checked against it, but I'm can't seem to
> find
> > the problem.
> >
> > Just in case the attachment didn't go in the previous message, I'll copy
> it
> > as text here:
> >
> > ========== START ejb-jar.xml FILE ==========
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <ejb-jar id="ejb-jar_ID" version="2.1"
> >     xmlns="http://java.sun.com/xml/ns/j2ee"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
> >     <display-name>HttpDataReceiver</display-name>
> >     <enterprise-beans>
> >         <message-driven
> >             id="net.excelsys.framework.logger.queue.MessageReceiver">
> >             <display-name>HttpDataMessageReceiver</display-name>
> >             <ejb-name>MessageReceiver</ejb-name>
> >             <ejb-class>
> >                 net.excelsys.framework.logger.queue.MessageReceiver
> >             </ejb-class>
> >             <messaging-type>javax.jms.MessageListener</messaging-type>
> >             <transaction-type>Bean</transaction-type>
> >             <message-destination-type>
> >                 javax.jms.Queue
> >             </message-destination-type>
> >             <message-destination-link>
> >                 PackageReceivedDestination
> >             </message-destination-link>
> >             <activation-config>
> >                 <activation-config-property>
> >                     <activation-config-property-name>
> >                         acknowledgeMode
> >                     </activation-config-property-name>
> >                     <activation-config-property-value>
> >                         Auto-acknowledge
> >                     </activation-config-property-value>
> >                 </activation-config-property>
> >                 <activation-config-property>
> >                     <activation-config-property-name>
> >                         messageSelector
> >                     </activation-config-property-name>
> >                     <activation-config-property-value>
> >                         JMSType = httpdata_received
> >                     </activation-config-property-value>
> >                 </activation-config-property>
> >             </activation-config>
> >         </message-driven>
> >     </enterprise-beans>
> >     <assembly-descriptor>
> >         <message-destination>
> >             <description></description>
> >             <message-destination-name>
> >                 PackageReceivedDestination
> >             </message-destination-name>
> >         </message-destination>
> >     </assembly-descriptor>
> > </ejb-jar>
> >
> >
> > ========== END ejb-jar.xml FILE ==========
> >
> > On 17/04/07, Wayne Fay <waynefay@gmail.com> wrote:
> > >
> > > Without knowing anything more than you've told us, I'd assume the XSD
> > > is available at:
> > > http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd
> > >
> > > And also I think you have most likely put this file in the wrong place
> > > in your project. It needs to be in /src/main/resources/META-INF. Maven
> > > will throw an error if the file is not located there.
> > >
> > > Wayne
> > >
> > > On 4/17/07, Gonzalo Vásquez Sáez <gonzalo.vasquez.saez@gmail.com>
> wrote:
> > > > I'm getting the following error:
> > > >
> > > > "Error assembling EJB: META-INF/ejb-jar.xml is required for
> ejbVersion
> > > 2.x"
> > > >
> > > > Attached is the ejb-jar.xml file that I'm using, which actually
> being
> > > > deployed onto a WebSphere 6.0 works fine, but according to Maven and
> Xml
> > > > Writer it's not valid (doesn't comply to the refered XSD), but I
> can't
> > > seem
> > > > to find where the problem is.
> > > >
> > > > Against what XSD is maven checking? Which is maven's supported
> structure
> > > for
> > > > this kind of files? Are there any properties I can configure to
> avoid
> > > this
> > > > check being done?
> > > >
> > > > Any help would be appreciated.
> > > >
> > > > Regards,
> > > >
> > > > Gonzalo Vasquez
> > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message