MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
davout
Post subject: Spring XML config error for ActiveMQ beans  PostPosted: May 22, 2012 - 09:37 PM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

I have a Spring 3 XML configuration file that is showing a red compile error in MyEclipse r10.1.

The red error icon appears against the 'amq:broker' line. Any ideas?

See...
Code:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:amq="http://activemq.apache.org/schema/core"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://activemq.apache.org/schema/core
        http://activemq.apache.org/schema/core/activemq-core.xsd
    ">

   <!-- ACTIVE MQ JMS RELATED -->

   <amq:broker persistent="false" useJmx="false">
      <amq:transportConnectors>
         <amq:transportConnector uri="tcp://localhost:0" />
      </amq:transportConnectors>
   </amq:broker>

   <!-- JMS ConnectionFactory to use, configuring the embedded broker using
      XML -->
   <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost" />

   <!-- ActiveMQ destinations to use -->
   <amq:queue id="destination"
      physicalName="org.apache.activemq.spring.Test.spring.embedded" />


   <!-- Spring JMS Template -->
   <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
      <property name="connectionFactory">
         <!-- lets wrap in a pool to avoid creating a connection per send -->
         <bean class="org.springframework.jms.connection.SingleConnectionFactory">
            <property name="targetConnectionFactory">
               <ref local="jmsFactory" />
            </property>
         </bean>
      </property>
   </bean>

   <bean id="consumerJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
      <property name="connectionFactory" ref="jmsFactory" />
   </bean>

   <bean id="supportMailDestination" class="org.apache.activemq.command.ActiveMQQueue">
      <constructor-arg value="mail.queue" />
   </bean>

   <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
      <property name="connectionFactory" ref="jmsFactory" />
      <property name="receiveTimeout" value="10000" />
   </bean>


</beans>


The web app still runs. Is there a way for me to suppress or correct this XML error?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
davout
Post subject:   PostPosted: May 22, 2012 - 09:41 PM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

Forgot to mention the IDE shows the error as:

Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 23, 2012 - 10:09 AM



Joined: Nov 11, 2010
Posts: 2491

davout,

I could replicate the issue at my end. I have filed a PR with the dev team to look into it.
Sorry for inconvenience caused.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
davout
Post subject:   PostPosted: May 28, 2012 - 01:07 PM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

Where's a fix likely to appear?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 30, 2012 - 09:43 AM



Joined: Nov 11, 2010
Posts: 2491

davout,

The dev team is evaluating this issue for the 10.5 release which will happen in 2 weeks time.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jun 01, 2012 - 05:43 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2584

davout,
This issue has been fixed and will be available in the 10.5 release due around mid June.

Thanks for reporting the problem.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
davout
Post subject:   PostPosted: Jun 01, 2012 - 06:51 PM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

Thanks...

I've seen a similar problems when building XML based 'ZUL' markup files using the ZK framework.

With the excerpt show below the IDE reports any error on the line...

a label="@bind(item.title)" onClick="@global-command('setDataArea',DataViewCommand=item.defDisplayCommand)"/>

I've attached a screenshot for you to see as well.

Code:

<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>

<panel title="Project list display" height="100%" width="100%"
   apply="org.zkoss.bind.BindComposer"
   viewModel="@id('vm') @init('com.eis.zk.project.list.ProjectListDisplayVM')"
   binder="@init(queueName='DataAreaQueue')">
   <panelchildren>
      <borderlayout>
         <north>
            <hlayout>
               <button label="Change" onClick="" />
            </hlayout>
         </north>
         <center>
            <grid id="projectGrid" autopaging="true" mold="paging"
               vflex="true" model="@load(vm.projectsModel)">
               <columns>
                  <column label="Title" />
                  <column label="Type" />
                  <column label="Alias" />
               </columns>
               <template name="model" var="item">
                  <row>
                     <a label="@bind(item.title)" onClick="@global-command('setDataArea',DataViewCommand=item.defDisplayCommand)"/>
                     <label value="@bind(item.typeTitle)" />
                     <label value="@bind(item.alias)" />
                  </row>
               </template>
            </grid>
         </center>
      </borderlayout>
   </panelchildren>
</panel>
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jun 01, 2012 - 09:13 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2584

davout,

So these files are XML files with a .zul extension? Could you please clarify?

Did you install any additional plugins for this ZUL support? I ask because I see an unfamiliar editor icon for the file in your screenshot; not something that is part of MyEclipse.

Could you please paste the actual errors that are being reported? You should be able to copy them right out of the Problems view. Sending us the entire file (or a fully functional snippet) would also help us reproduce locally. You can paste that here or send it to support@myeclipseide.com ATTN Brian with a link to this thread.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
davout
Post subject:   PostPosted: Jun 02, 2012 - 07:28 AM
Registered Member
Registered Member


Joined: Feb 09, 2004
Posts: 130

The error is shown as:

Code:

Multiple annotations found at this line:
   - Syntax error on token "global", ( expected after this token
   - Syntax error, insert "enum Identifier" to complete
    EnumHeaderName
   - Invalid character constant
   - Syntax error on token ",", delete this token
   - Syntax error, insert "EnumBody" to complete
    BlockStatements
   - Syntax error, insert ")" to complete SingleMemberAnnotation

The ZUl file is attached.

You have to install the ZUL visual editor
http://studio.zkoss.org/resource/plugins/eclipse_3_7
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jun 02, 2012 - 10:22 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2584

davout,

These are certainly not XML errors and I'm quite sure they are errors that are being reported by the ZUL visual editor or set of plugins. You would need to contact them for support.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits