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 116125 - Could not initialize class com.sun.enterprise.naming.SerialInitContextFactory when opening a Visual Web project
Summary: Could not initialize class com.sun.enterprise.naming.SerialInitContextFactory...
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-20 11:26 UTC by bonej010
Modified: 2007-10-08 23:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (362.45 KB, text/plain)
2007-09-20 11:27 UTC, bonej010
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bonej010 2007-09-20 11:26:35 UTC
When I open a project and try to open a web page, Netbeans gives me the following error:


java.lang.NoClassDefFoundError: Could not initialize class com.sun.enterprise.naming.SerialInitContextFactory
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at com.sun.rave.naming.DesignTimeInitialContextFactory.getInitialContext(DesignTimeInitialContextFactory.java:46)
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
	at javax.naming.InitialContext.init(InitialContext.java:223)
	at javax.naming.InitialContext.<init>(InitialContext.java:175)
	at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:427)
	at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:89)
	at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:234)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:323)
	at com.sun.rave.jsfsupp.container.RaveConfigureListener.contextInitialized(RaveConfigureListener.java:59)
	at com.sun.rave.jsfsupp.container.FacesContainer.initialize(FacesContainer.java:153)
	at com.sun.rave.jsfsupp.container.FacesContainer.<init>(FacesContainer.java:101)
	at com.sun.rave.insync.models.FacesModelSet.getFacesContainer(FacesModelSet.java:349)
	at com.sun.rave.designer.jsf.JsfForm.<init>(JsfForm.java:122)
	at com.sun.rave.designer.jsf.JsfForm.getJsfForm(JsfForm.java:166)
	at com.sun.rave.designer.jsf.JsfForm.createDesigner(JsfForm.java:174)
	at com.sun.rave.designer.jsf.DesignerJsfServiceImpl.createDesignerMultiViewElement(DesignerJsfServiceImpl.java:36)
	at com.sun.rave.project.jsfloader.JsfJavaEditorSupport$DesignerDesc.createElement(JsfJavaEditorSupport.java:517)
	at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:191)
	at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:182)
	at org.netbeans.core.multiview.MultiViewPeer.hideElement(MultiViewPeer.java:228)
	at org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(MultiViewPeer.java:625)
	at org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel.java:230)
	at org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel.java:99)
	at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:280)
	at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:237)
	at javax.swing.ButtonGroup.setSelected(ButtonGroup.java:147)
	at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:276)
	at org.netbeans.core.multiview.TabsComponent$ButtonMouseListener.mousePressed(TabsComponent.java:420)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.Component.processMouseEvent(Component.java:6035)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

As a result, the page is not loaded and I cannot switch between the Design/Java/JSP tabs.

Thanks
Comment 1 bonej010 2007-09-20 11:27:35 UTC
Created attachment 49142 [details]
messages.log
Comment 2 Peter Zavadsky 2007-09-20 17:43:00 UTC
I am not sure whether this is obsolete (5.5.1), or some other (see the log).
Passing to insync to process further (this is not designer problem).
Comment 3 _ sandipchitale 2007-09-20 18:37:20 UTC
The com.sun.rave.naming.DesignTimeInitialContextFactory is the databases support class. Assigning to databases for
further evaluation.
Comment 4 John Baker 2007-09-21 18:40:42 UTC
Please attach the project you cannot open.  

Is this a visualweb project ?
Comment 5 John Baker 2007-09-21 18:45:09 UTC
Also, which application server are you using and the version
Comment 6 John Baker 2007-09-21 19:11:06 UTC

Could you try NetBeans 6.0 beta1 to see if your project opens
http://www.netbeans.org/community/releases/60/index.html

marking as incomplete until more info is provided
Comment 7 John Baker 2007-10-08 22:11:27 UTC
In NB 6.0, DesignTimeInitialContextFactory has been cleaned up.
Line 46 no longer contains source