[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-2702) EAR Project Wizard Issues

Beren Erchamion (JIRA) jira-events at lists.jboss.org
Fri Aug 29 09:22:38 EDT 2008


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

Beren Erchamion commented on JBIDE-2702:
----------------------------------------

I would like to get this fixed so I also tried totally using 1.5 by starting eclipse from teh command line like this:

c:\eclipse>eclipse -vm C:\jdk1.5.0_16\jre\bin\javaw.exe

I created a new project and same exact issues.

Here's my eclipse config minus all the plugin stuff:

*** Date: Friday, August 29, 2008 9:19:04 AM ET

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.buildId=I20080617-2000
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
c:\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
c:\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.100.v20080509-1800\eclipse_1114.dll
-startup
c:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
-exitdata
7ce8_7c8
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vm
C:\jdk1.5.0_16\jre\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.home.location=file:/C:/eclipse/
eclipse.launcher=c:\eclipse\eclipse.exe
eclipse.p2.data.area=@config.dir/../p2
eclipse.p2.profile=PlatformProfile
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1220015467046
eclipse.vm=C:\jdk1.5.0_16\jre\bin\javaw.exe
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-jar
c:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=c:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
java.class.version=49.0
java.endorsed.dirs=C:\jdk1.5.0_16\jre\lib\endorsed
java.ext.dirs=C:\jdk1.5.0_16\jre\lib\ext
java.home=C:\jdk1.5.0_16\jre
java.io.tmpdir=C:\DOCUME~1\beren\LOCALS~1\Temp\
java.library.path=C:\jdk1.5.0_16\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\PHP\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\NCS Tools;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\ThinkPad\ConnectUtilities;C:\MySQL\bin;C:\Program Files\QuickTime\QTSystem\;C:\doxygen\bin;c:\jboss\bin;c:\ant\bin;C:\Program Files\IBM\SDP70Shared\plugins\com.ibm.datatools.me tadata.wizards.miti.win32_1.0.0.v200611151024\Meta Integration\bin;C:\Program Files\CollabNet Subversion;c:\jikes\bin;C:\mvn\bin;C:\Program Files\Common Files\Lenovo;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\Intel\Wireless\Bin\
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_16-b02
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_16
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_16-b02
line.separator=

> EAR Project Wizard Issues
> -------------------------
>
>                 Key: JBIDE-2702
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-2702
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 3.0.0.alpha
>         Environment: Win32 (XP), Sun JDK 1.6, Eclipse 3.4, MySQL 5.1, JBoss AS 4.2.3, Seam 2.1, JBoss Tools 3-Beta1, JBoss Portal 2.7
>            Reporter: Beren Erchamion
>
> When I generate an EAR project using all the default selections with a MySQL DB, I get a number of errors in the generated code. There are two errors that prevent the generated application from deploying to the app server:
> I had these same issue with seam 2.0 and JBoss Tools 2.1.
> 1. There are a bunch of statements in the components.xml file for authenticatio, but the code is not implemented. These have to be manually removed in order to get the application to work. Here's the components.xml file that I get after running the wizard:
>  <?xml version="1.0" encoding="UTF-8"?>
> <components xmlns="http://jboss.com/products/seam/components"
>             xmlns:core="http://jboss.com/products/seam/core"
>             xmlns:persistence="http://jboss.com/products/seam/persistence"
>             xmlns:drools="http://jboss.com/products/seam/drools"
>             xmlns:bpm="http://jboss.com/products/seam/bpm"
>             xmlns:security="http://jboss.com/products/seam/security"
>             xmlns:mail="http://jboss.com/products/seam/mail"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>             xsi:schemaLocation=
>                 "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd 
>                  http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
>                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
>                  http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
>                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
>                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
>                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
>    <core:init debug="true" jndi-pattern="@jndiPattern@"/>
>      
>    <core:manager concurrent-request-timeout="500" 
>                  conversation-timeout="120000" 
>                  conversation-id-parameter="cid"
>                  parent-conversation-id-parameter="pid"/>
>     
>    <persistence:managed-persistence-context name="entityManager"
>                                      auto-create="true"
>                       persistence-unit-jndi-name="java:/test2EntityManagerFactory"/>                          
>    <drools:rule-base name="securityRules">
>       <drools:rule-files>
>          <value>/security.drl</value>
>       </drools:rule-files>
>    </drools:rule-base>
>    <security:rule-based-permission-resolver security-rules="#{securityRules}"/> 
>    
>    <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
>    
>    <event type="org.jboss.seam.security.notLoggedIn">
>       <action execute="#{redirect.captureCurrentView}"/>
>    </event>
>    <event type="org.jboss.seam.security.loginSuccessful">
>       <action execute="#{redirect.returnToCapturedView}"/>
>    </event>
>    
>    <mail:mail-session host="localhost" port="2525" username="test" password="test" />
>         
>    <!-- For use with jBPM pageflow or process management -->
>    <!--  
>    <bpm:jbpm>
>       <bpm:process-definitions></bpm:process-definitions>
>       <bpm:pageflow-definitions></bpm:pageflow-definitions>
>    </bpm:jbpm>
>    -->
>       
> </components>
> If I rem out all the lines about secutiry and then touch up the security:indentity element a bit then the errors go away.
> 2. When I generate an EAR using all the defaults with MySQL DB my application will not deploy due to a duplicate PhaseListener. Here's the error I get:
> 22:07:37,546 ERROR [SeamPhaseListener] uncaught exception
> java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
> at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:162)
> at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:174)
> at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:90)
> at org.jboss.seam.contexts.PageContext.set(PageContext.java:97)
> at org.jboss.seam.Component.newInstance(Component.java:1977)
> at org.jboss.seam.Component.getInstance(Component.java:1873)
> at org.jboss.seam.Component.getInstance(Component.java:1852)
> at org.jboss.seam.Component.getInstance(Component.java:1829)
> at org.jboss.seam.Component.getInstance(Component.java:1824)
> at org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92)
> at org.jboss.seam.core.ConversationPropagation.restorePageContextConversationId(ConversationPropagation.java:84)
> at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:57)
> at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:389)
> at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:228)
> at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194)
> at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
> at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
> at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> at java.lang.Thread.run(Thread.java:619)
> My solution to this is to remove the reference to jboss-seam.jar in the MANIFEST.MF file in the ejb project then manually add jboss-seam.jar to that project's build path. This seems to allow eclipse to find the classes so that the IDE works properly and the application when it deploys also seems to now work. No clue why. 
> One additional note - I thought that maybe it was just my config of eclipse so I trashed the whole thing and downloaded a new fresh 3.4 build (J2EE version), applied all the current patches, grabbed the latest seam and tools code, and that's all I have in the IDE (well I have subclipse too). 
> beren

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list