This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256334 - Exception on redeployment with option "Preserve Sessions Across Redeployment"
Summary: Exception on redeployment with option "Preserve Sessions Across Redeployment"
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 8.0.2
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-03 11:50 UTC by hekko
Modified: 2015-12-24 04:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
glassfish log (22.00 KB, text/plain)
2015-11-03 11:50 UTC, hekko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hekko 2015-11-03 11:50:11 UTC
Created attachment 157116 [details]
glassfish log

I create simple maven Enterprise Application project in NetBeans 8.0.2 with GlassFish 4.1

Session scoped managed bean:

import java.io.Serializable;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;

@Named( value = "newJSFManagedBean" )
@SessionScoped
public class NewJSFManagedBean implements Serializable {
    @EJB
    private NewSessionBean newSessionBean;

    public NewJSFManagedBean() {
    }

    public String getName( ) {
        return newSessionBean.getName();
    }
}

and Stateless enterprise bean:

@Stateless
@LocalBean
public class NewSessionBean {

    public void businessMethod() {
    }

    public String getName() {
        return "test";
    }
}

and use this bean on jsf page:
<h:body>
    <h:outputText value="#{newJSFManagedBean.name}"/>
</h:body>

first run of this application is ok, but then i changed and save src NetBeans autoredeploy on save (+ glassfish setup checked "Preserve Sessions Across Redeployment"), and in logs appear error (in attachment file)
Comment 1 hekko 2015-12-24 04:56:58 UTC
There is no this issue in v8.1