[jbosstools-issues] [JBoss JIRA] (JBIDE-17858) Can't resolve context variable of a built-in Seam component in imported Seam project

Alexey Kazakov (JIRA) issues at jboss.org
Mon Jul 14 17:32:29 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984926#comment-12984926 ] 

Alexey Kazakov commented on JBIDE-17858:
----------------------------------------

I see a few problems with this example.
1. /chatroom-web/src/main/webapp/WEB-INF/components.xml does not declare any namespace.

If I add the missing namespaces:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.org/schema/seam/components"
			xmlns:cache="http://jboss.org/schema/seam/cache"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation=
            	"http://jboss.org/schema/seam/cache http://jboss.org/schema/seam/cache-2.3.xsd
                 http://jboss.org/schema/seam/components http://jboss.org/schema/seam/components-2.3.xsd">
...
{code}
then the warning in /chatroom-ejb/src/main/java/org/jboss/seam/example/remoting/chatroom/ChatRoomAction.java disappears. This is good. But there is another problem:
2. If I rebuild chatroom-ejb or edit/save ChatRoomAction.java then the warning comes back.

> Can't resolve context variable of a built-in Seam component in imported Seam project
> ------------------------------------------------------------------------------------
>
>                 Key: JBIDE-17858
>                 URL: https://issues.jboss.org/browse/JBIDE-17858
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: seam2
>         Environment: JBDS 8.0.0.Beta3
>            Reporter: Ron Šmeral
>            Assignee: Alexey Kazakov
>             Fix For: 4.2.0.CR1
>
>
> Unknown context variable name: "topicPublisher"	
> ChatRoomAction.java	
> /chatroom-ejb/src/main/java/org/jboss/seam/example/remoting/chatroom
> line 26
> Seam Problem



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list