[JBoss AS7 Development] - Running Seam 2 archives on Jboss 7
by Matt Drees
Matt Drees [http://community.jboss.org/people/matt.drees] created the discussion
"Running Seam 2 archives on Jboss 7"
To view the discussion, visit: http://community.jboss.org/message/608573#608573
--------------------------------------------------------------
Hi all,
My app is a Seam 2 war. I've found I can deploy it to AS7 successfully as an exploded directory, but not as a war archive. When I try to deploy as an archive, I get a stacktrace like this:
15:31:21,837 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ccp]] (MSC service thread 1-3) Exception sending context
initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.RuntimeException: Error handling file /content/ccp.war/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.seam2jsf2.jar
at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:134) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.init.Initialization.create(Initialization.java:130) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR1.jar:7.0.0.Beta4-SNAPSHOT]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817) [jbossweb-7.0.0.CR1.jar:7.0.0.Beta4-SNAPSHOT]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [:1.6.0_24]
at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_24]
at java.util.zip.ZipFile.<init>(ZipFile.java:144) [:1.6.0_24]
at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
... 12 more
The stacktrace doesn't show it, but the URLScanner is trying to handle this URL:
vfs:/content/ccp.war/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.seam2jsf2.jar/META-INF/components.xml
URLScanner is trying to treat this as if it's a file url, and of course ZipFile.open() can't find this file on the real filesystem.
I believe Jboss AS 5 and 6 had a http://anonsvn.jboss.org/repos/jbossas/projects/jboss-seam-int/tags/6.0.0... special Scanner implementation to enable Seam to read archive deployments.
Is a similar scanner planned for AS 7?
Thanks!
-Matt
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/608573#608573]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[JBoss AS7 Development] - JBoss AS7 Logging
by Anil Saldhana
Anil Saldhana [http://community.jboss.org/people/anil.saldhana] modified the document:
"JBoss AS7 Logging"
To view the document, visit: http://community.jboss.org/docs/DOC-16648
--------------------------------------------------------------
This article describes the logging configuration starting JBoss AS v7.0.0. The article should be updated periodically with any changes that have happened to logging (and note the version where the change occurred).
h2.
h2. Boot Logging
This is the +boot.log+ that you see. Its configuration is in the +logging.properties+.
h2.
h2. Server Logging
The configuration should be done in the +standalone.xml+ for the standalone distribution. Basically the configuration now is done in the domain model. So it is either +domain.xml+ or +standalone.xml+ depending on the type of distribution.
The log output will go into server.log
h2.
h2. Deployment Level Logging
This is when you want to have your own JDK or Log4J logging driven at the deployment level. This feature needs to be implemented by https://issues.jboss.org/browse/JBAS-9084 https://issues.jboss.org/browse/JBAS-9084
h2.
h2. How do I?
Suppose you want to enable trace level logging on org.jboss.security, this is how the standalone.xml block looks:
<subsystem xmlns="urn:jboss:domain:logging:1.0">
<console-handler name="CONSOLE" autoflush="true">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<level name="TRACE"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="org.jboss.security">
<level name="TRACE"/>
</logger>
Note that I added a logger block for "org.jboss.security". Now I need to also change the level for the appender -either CONSOLE or FILE. In most cases, you want to do it for FILE. Now enjoy the trace entries.
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16648]
Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
12 years, 8 months
Community Updates, August 18 - August 25
by JBoss Community
===============================================================
Community Updates for August 18 - August 25
===============================================================
You haven't set a status update. Log in and set your status at: http://community.jboss.org.
Your Content
* testing the new list server [http://community.jboss.org/thread/127309]
was viewed 12,912 times and replied to by 3 people
* No Link to Jboss Nukes [http://community.jboss.org/thread/90785]
was viewed 110,241 times and replied to by 3 people
Your Connections - Activity by people you are following
You don't have any connections yet. Find people and connect! [http://community.jboss.org/people/]
Popular Content - The content that is most viewed and participated in
* Sessions and transactions [http://community.jboss.org/docs/DOC-13951]
* Open Session in View [http://community.jboss.org/docs/DOC-13954]
* NHibernate for .NET [http://community.jboss.org/docs/DOC-14068]
* How to use JBoss AS 7 Beta 2 with JBoss Tools &amp; Developer Studio [http://community.jboss.org/community/tools/blog/2011/04/18/how-to-use-jbo...]
* Seam 2 Booking example on JBoss AS 7 [http://community.jboss.org/blogs/marek-novotny/2011/07/29/seam-2-booking-...]
* Chasing a White Rabbit with JBoss Tools 3.3 M2 [http://community.jboss.org/community/tools/blog/2011/06/28/fast-faster-jb...]
* Re: comboBox suggestion list rendering above input [http://community.jboss.org/message/51037#51037]
* Re: a4j:support inside h:inputText [http://community.jboss.org/message/51024#51024]
* Re: Schedule [http://community.jboss.org/message/622050#622050]
Tips and tricks - Remember Who, not Where
Have you ever forgotten the location of a file, but remembered who worked on it? With Community you can easily get to all of the content that someone has worked on. Just navigate to their profile and go to their Stuff tab. Inside that tab you can filter by the type of content, like document, discussion, task, or blog post.
Not interested in these emails anymore, or want to change how often they come? Update your email preferences by visiting: http://community.jboss.org/user-notification-preferences!input.jspa
12 years, 8 months