Hi 
I have written a simple portlet. 

The directory structure is patterned after HelloWorldPortlet. 

When I run ant 
these are the errors:

Buildfile: build.xml

init:

compile:
    [javac] Compiling 1 source file to C:\navnorth\testvideo${web.dir}\WEB-INF\
classes
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
25: cannot resolve symbol
    [javac] symbol  : class ActionRequest
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]         public void processAction(ActionRequest myRequest, ActionRes
ponse myResponse)
    [javac]                                       ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
25: cannot resolve symbol
    [javac] symbol  : class ActionResponse
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]         public void processAction(ActionRequest myRequest, ActionRes
ponse myResponse)
    [javac]                                                                ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
28: cannot resolve symbol
    [javac] symbol  : class PortletMode
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             PortletMode pMode = myRequest.getPortletMode();
    [javac]                 ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
32: cannot resolve symbol
    [javac] symbol  : variable PortletMode
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             if (pMode.equals(PortletMode.VIEW))
    [javac]                                  ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
39: cannot resolve symbol
    [javac] symbol  : variable PortletMode
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             else if (pMode.equals(PortletMode.EDIT))
    [javac]                                       ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
42: cannot resolve symbol
    [javac] symbol  : class PortletSession
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]                 PortletSession poSession = myRequest.getPortletSessi
on();
    [javac]                     ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
52: cannot resolve symbol
    [javac] symbol  : class PortletSession
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             PortletSession poSession = myRequest.getPortletSession()
;
    [javac]                 ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
57: cannot resolve symbol
    [javac] symbol  : method getPortletConfig ()
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]                 bgColor = getPortletConfig().getInitParameter("bgCol
or");
    [javac]                               ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
64: cannot resolve symbol
    [javac] symbol  : method getPortletConfig ()
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             String jspTitle = getPortletConfig().getInitParameter("J
ava Server Page View");
    [javac]                                   ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
66: cannot resolve symbol
    [javac] symbol  : class PortletRequestDispatcher
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             PortletRequestDispatcher pRDispatcher = getPortletContex
t().getRequestDispatcher(
    [javac]                 ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
66: cannot resolve symbol
    [javac] symbol  : method getPortletContext ()
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             PortletRequestDispatcher pRDispatcher = getPortletContex
t().getRequestDispatcher(
    [javac]                                                         ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
76: cannot resolve symbol
    [javac] symbol  : variable response
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             response.setContentType("text/html");
    [javac]                 ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
78: cannot resolve symbol
    [javac] symbol  : method getPortletConfig ()
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             String jspTitle = getPortletConfig().getInitParameter("J
ava Server Pager Edit");
    [javac]                                   ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
80: cannot resolve symbol
    [javac] symbol  : class PortletRequestDispatcher
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             PortletRequestDispatcher prDispatcher = getPortletContex
t().getRequestDispatcher(
    [javac]                 ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
81: cannot resolve symbol
    [javac] symbol  : variable jspName
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]                     jspName);
    [javac]                         ^
    [javac] C:\navnorth\testvideo\src\main\video\com\navnorth\VideoPortlet.java:
80: cannot resolve symbol
    [javac] symbol  : method getPortletContext ()
    [javac] location: class video.com.navnorth.VideoPortlet
    [javac]             PortletRequestDispatcher prDispatcher = getPortletContex
t().getRequestDispatcher(
    [javac]                                                         ^
    [javac] 16 errors

BUILD FAILED
C:\navnorth\testvideo\build.xml:21: Compile failed; see the compiler error outpu
t for details.



        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
                
        
        
                
                        
                                
                        
                
        
        
                
                
                
        
        
                
        
        
                
                        
                
                <!-- portal-hello-lib.jar -->
                
                        
                
                <!-- portal-hello.war -->
                
                        
                
                <!-- portal-hello.ear -->
                
                        
                
                
                        
                
        
        
                
                
        


--------------

What could be wrong. I have imported all the class libraries in the class file. 
I can't understand what is going on. Is there anything wrong with my build file?

Any suggestions and pointers are appreciated. Thanks in advance 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929166#3929166

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929166


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to