<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
#email-body { min-width: 30em !important; }
#email-page { padding: 8px !important; }
#email-banner { padding: 8px 8px 0 8px !important; }
#email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
#email-fields { padding: 0 8px 8px 8px !important; }
#email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
<tr valign="top">
<td id="email-page" style="padding:16px !important;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
<tr valign="top">
<td bgcolor="#3b4d64" style="background-color:#3b4d64;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://issues.jboss.org/s/en_USvizstt/782/58/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
</tr><tr valign="top">
<td id="email-banner" style="padding:32px 32px 0 32px;">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
<img id="email-avatar" src="https://community.jboss.org/people/lincolnthree/avatar/16.png" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
<div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
<a class="user-hover" rel="lincolnthree" id="email_lincolnthree" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=lincolnthree" style="color:#003366;">Lincoln Baxter III</a>
created <img src="https://issues.jboss.org/images/icons/bug.gif" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#003366;text-decoration:none;' href='https://issues.jboss.org/browse/WELD-1208'>WELD-1208</a>
</div>
<div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
<a style='color:#003366;text-decoration:none;' href='https://issues.jboss.org/browse/WELD-1208'><strong>Weld fails to start in Modular Java SE if Servlet APIs are referenced from application classes, but Servlet APIs are not made available to weld</strong></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td id="email-fields" style="padding:0 32px 32px 32px;">
<table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
<tr valign="top">
<td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Issue Type:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<img src="https://issues.jboss.org/images/icons/bug.gif" height="16" width="16" border="0" align="absmiddle" alt="Bug"> Bug
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Affects Versions:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
2.0.0.Alpha3 </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Assignee:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
Unassigned </td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Components:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
Bootstrap and Metamodel API, Built-in beans, Servlet Container Support </td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Created:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
11/Sep/12 9:59 AM
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Description:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<p style='margin-top:0;margin-bottom:10px;'>Weld attepmpts to perform type hierarchy discovery on its own interface "org.jboss.weld.context.http.HttpSessionContext" and fails to load the type below.</p>
<p style='margin-top:0;margin-bottom:10px;'>The workaround is to add a Serlvet API module dependency to Weld, but this is not the right solution - weld should not be trying to start any Servlet classes unless asked to. </p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">Sep 11, 2012 2:08:23 AM org.jboss.weld.bootstrap.WeldBootstrap startContainer
INFO: WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
Exception in thread <span class="code-quote">"main"</span> org.jboss.forge.container.exception.ContainerException: Failed loading module <span class="code-keyword">for</span> addon [6f691f33-b67a-42e6-8a72-3e45662789bb.war:2.0.0-SNAPSHOT:main]
        at org.jboss.forge.container.Bootstrap.loadAddonModules(Bootstrap.java:184)
        at org.jboss.forge.container.Bootstrap.updateAddons(Bootstrap.java:82)
        at org.jboss.forge.container.Bootstrap.init(Bootstrap.java:56)
        at org.jboss.forge.container.Bootstrap.main(Bootstrap.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.modules.Module.run(Module.java:270)
        at org.jboss.modules.Main.main(Main.java:294)
Caused by: org.jboss.modules.ModuleNotFoundException: Module 6f691f33-b67a-42e6-8a72-3e45662789bb.war:main is not found in local module loader @25071521 (roots: /Users/lbaxter/dev/forge/modules,/Users/lbaxter/.forge/plugins,/Users/lbaxter/Projects/jboss/forge/core)
        at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
        at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)
        at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)
        at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
        at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:233)
        at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:246)
        at org.jboss.forge.container.modules.AddonModuleLoader.preloadModule(AddonModuleLoader.java:56)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:204)
        at org.jboss.forge.container.Bootstrap.loadAddonModules(Bootstrap.java:179)
        ... 9 more
Exception in thread <span class="code-quote">"6f691f33-b67a-42e6-8a72-3e45662789bb.war:main"</span> org.jboss.forge.container.exception.ContainerException: [<span class="code-object">Thread</span> - 6f691f33-b67a-42e6-8a72-3e45662789bb.war:main] Error invoking Task within <span class="code-object">ClassLoader</span> [ModuleClassLoader <span class="code-keyword">for</span> Module <span class="code-quote">"6f691f33-b67a-42e6-8a72-3e45662789bb.war:main"</span> from AddonModuleLoader]
        at org.jboss.forge.container.util.ClassLoaders.executeIn(ClassLoaders.java:35)
        at org.jboss.forge.container.AddonRunnable.run(AddonRunnable.java:37)
        at java.lang.<span class="code-object">Thread</span>.run(<span class="code-object">Thread</span>.java:680)
Caused by: java.lang.TypeNotPresentException: Type javax.servlet.http.HttpServletRequest not present
        at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)
        at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
        at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
        at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50)
        at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120)
        at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
        at sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:82)
        at java.lang.<span class="code-object">Class</span>.getGenericInterfaces(<span class="code-object">Class</span>.java:794)
        at org.jboss.weld.util.reflection.HierarchyDiscovery.discoverFromClass(HierarchyDiscovery.java:138)
        at org.jboss.weld.util.reflection.HierarchyDiscovery.discoverTypes(HierarchyDiscovery.java:103)
        at org.jboss.weld.util.reflection.HierarchyDiscovery.init(HierarchyDiscovery.java:74)
        at org.jboss.weld.util.reflection.HierarchyDiscovery.getTypeClosure(HierarchyDiscovery.java:58)
        at org.jboss.weld.bean.builtin.ContextBean.<init>(ContextBean.java:27)
        at org.jboss.weld.bean.builtin.ContextBean.of(ContextBean.java:17)
        at org.jboss.weld.bootstrap.WeldBootstrap.createContexts(WeldBootstrap.java:541)
        at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:295)
        at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.startContainer(ForwardingBootstrap.java:42)
        at org.jboss.weld.environment.se.Weld.initialize(Weld.java:129)
        at org.jboss.forge.container.AddonRunnable$1.perform(AddonRunnable.java:43)
        at org.jboss.forge.container.util.ClassLoaders.executeIn(ClassLoaders.java:31)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest from [Module <span class="code-quote">"org.jboss.weld:main"</span> from local module loader @25071521 (roots: /Users/lbaxter/dev/forge/modules,/Users/lbaxter/.forge/plugins,/Users/lbaxter/Projects/jboss/forge/core)]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
        at java.lang.<span class="code-object">Class</span>.forName0(Native Method)
        at java.lang.<span class="code-object">Class</span>.forName(<span class="code-object">Class</span>.java:247)
        at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
        ... 21 more</pre>
</div></div>
</td>
</tr>
<tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Project:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a style="color:#003366;" href="https://issues.jboss.org/browse/WELD">Weld</a>
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Priority:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<img src="https://issues.jboss.org/images/icons/priority_major.gif" height="16" width="16" border="0" align="absmiddle" alt="Major"> Major
</td>
</tr> <tr valign="top">
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
<strong style="font-weight:normal;color:#505050;">Reporter:</strong>
</td>
<td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
<a class="user-hover" rel="lincolnthree" id="email_lincolnthree" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=lincolnthree" style="color:#003366;">Lincoln Baxter III</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td><!-- End #email-page -->
</tr>
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
This message is automatically generated by JIRA.<br />
If you think it was sent incorrectly, please contact your JIRA administrators<br />
For more information on JIRA, see: <a style='color:#003366;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
</td>
</tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->