Cannot bind Referenceable in JNDI?
When I try to bind the following Referenceable object to the JNDI tree in
WL 6.0 SP2, I get the following exception:
public class Foo
implements javax.naming.Referenceable
public javax.naming.Reference getReference ()
// just a test
return new javax.naming.Reference (Foo.class.getName ());
javax.naming.ConfigurationException. Root exception is java.rmi.MarshalException:
failed to marshal public abstract void
weblogic.jndi.internal.NamingNode.bind(
java.lang.String,java.lang.Object,java.util.Hashtable)
throws javax.naming.NamingException,java.rmi.RemoteException; nested exception is:
java.io.NotSerializableException: com.techtrader.modules.jdo.impl.jdbc.Foo
java.io.NotSerializableException: com.techtrader.modules.jdo.impl.jdbc.Foo
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at java.io.IOException.<init>(IOException.java:49)
at java.io.ObjectStreamException.<init>(ObjectStreamException.java:31)
at java.io.NotSerializableException.<init>(NotSerializableException.java:35)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1161)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:372)
at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:102)
at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:108)
at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:19)
at weblogic.rmi.internal.BasicRemoteRef.marshalArgs(BasicRemoteRef.java:121)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:246)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
at weblogic.jndi.internal.ServerNamingNode_WLStub.bind(ServerNamingNode_WLStub.java:436)
at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:337)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at com.techtrader.modules.jdo.impl.jdbc.JNDIJDOFactory.<init>(JNDIJDOFactory.java:36)
at com.techtrader.modules.jdo.impl.jdbc.JNDIJDOFactory.main(JNDIJDOFactory.java:77)
Why can't I bind a referenceable object?
-Marc
Your class Foo needs to implement java.io.Serializable interface.
Shiva.
Marc Prud'hommeaux wrote:
When I try to bind the following Referenceable object to the JNDI tree in
WL 6.0 SP2, I get the following exception:
public class Foo
implements javax.naming.Referenceable
public javax.naming.Reference getReference ()
// just a test
return new javax.naming.Reference (Foo.class.getName ());
javax.naming.ConfigurationException. Root exception is java.rmi.MarshalException:
failed to marshal public abstract void
weblogic.jndi.internal.NamingNode.bind(
java.lang.String,java.lang.Object,java.util.Hashtable)
throws javax.naming.NamingException,java.rmi.RemoteException; nested exception is:
java.io.NotSerializableException: com.techtrader.modules.jdo.impl.jdbc.Foo
java.io.NotSerializableException: com.techtrader.modules.jdo.impl.jdbc.Foo
at java.lang.Throwable.<init>(Throwable.java:96)
at java.lang.Exception.<init>(Exception.java:44)
at java.io.IOException.<init>(IOException.java:49)
at java.io.ObjectStreamException.<init>(ObjectStreamException.java:31)
at java.io.NotSerializableException.<init>(NotSerializableException.java:35)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1161)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:372)
at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:102)
at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:108)
at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:19)
at weblogic.rmi.internal.BasicRemoteRef.marshalArgs(BasicRemoteRef.java:121)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:246)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
at weblogic.jndi.internal.ServerNamingNode_WLStub.bind(ServerNamingNode_WLStub.java:436)
at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:337)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at com.techtrader.modules.jdo.impl.jdbc.JNDIJDOFactory.<init>(JNDIJDOFactory.java:36)
at com.techtrader.modules.jdo.impl.jdbc.JNDIJDOFactory.main(JNDIJDOFactory.java:77)
Why can't I bind a referenceable object?
-Marc
Similar Messages
-
WARNING: Could not bind factory to JNDI
Hi i am using tomcat server5.5
Eclipse 3.2 and adding tomcat plug-in's to my Eclipse
i created JNDI on tomcat server i got this type of error
plez any one can help me
i got this type WARNING
WARNING: Could not bind factory to JNDI
javax.naming.NamingException: Context is read only
how can i over come this worning
the server show message like
INFO: Factory name: java:hibernate/SessionFactory
May 2, 2007 9:12:24 AM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
May 2, 2007 9:12:24 AM org.hibernate.util.NamingHelper bind
INFO: Creating subcontext: java:hibernate
May 2, 2007 9:12:24 AM org.hibernate.impl.SessionFactoryObjectFactory addInstanc
e
WARNING: Could not bind factory to JNDI
javax.naming.NamingException: Context is read only
at org.apache.naming.NamingContext.checkWritable(NamingContext.java:901)
at org.apache.naming.NamingContext.createSubcontext(NamingContext.java:5
15)
at org.apache.naming.NamingContext.createSubcontext(NamingContext.java:5
36)
at org.apache.naming.SelectorContext.createSubcontext(SelectorContext.ja
va:421)
at javax.naming.InitialContext.createSubcontext(InitialContext.java:423)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:69)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFac
toryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
303)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1213)
at com.gssamerica.expensereporting.business.dao.HibernateUtil.<clinit>(H
ibernateUtil.java:38)
at com.gssamerica.expensereporting.business.dao.RoleHome.roleList(RoleHo
me.java:159)
at com.gssamerica.expensereporting.business.listener.LookupCacheListener
.cacheRoles(LookupCacheListener.java:168)
at com.gssamerica.expensereporting.business.listener.LookupCacheListener
.contextInitialized(LookupCacheListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
at org.apache.catalina.core.StandardService.start(StandardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
May 2, 2007 9:12:24 AM org.hibernate.cache.UpdateTimestampsCache <init>
INFO: starting update timestamps cache at region: org.hibernate.cache.UpdateTime
stampsCache
May 2, 2007 9:12:24 AM org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [org.hibernate.cache.UpdateTimestampsCache
]; using defaults.
May 2, 2007 9:12:24 AM org.hibernate.cache.StandardQueryCache <init>
INFO: starting query cache at region: org.hibernate.cache.StandardQueryCache
May 2, 2007 9:12:24 AM org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [org.hibernate.cache.StandardQueryCache];
using defaults.
Roles Cached......
##################>.SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=
[]];ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] col
lectionRemovals=[] collectionUpdates=[]])
Currencies Cached.......
Countries Cached.......
JNDI DATASOURCE USED ........................................
Instance Created .................
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '
' for connect URL 'null'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:780)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:540)
at com.gssamerica.expensereporting.ui.common.SQLManager.getConnection(SQ
LManager.java:93)
at com.gssamerica.expensereporting.business.dao.CacheHome.getExpenseIds(
CacheHome.java:63)
at com.gssamerica.expensereporting.business.listener.LookupCacheListener
.cacheExpenseId(LookupCacheListener.java:191)
at com.gssamerica.expensereporting.business.listener.LookupCacheListener
.contextInitialized(LookupCacheListener.java:51)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
at org.apache.catalina.core.StandardService.start(StandardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:773)
... 20 more
Connection Error - Exchange Rates cannot be Stored in Database
Expense Ids Cached......
Statuses Cached......
May 2, 2007 9:12:27 AM org.apache.catalina.startup.ContextConfig applicationConf
ig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].
StandardHost[localhost].StandardContext[SCWCDProj]
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.
ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR Could not read configuration file from URL [file:E:/WebExpenses/Test
ValidationsTomcat/WEB-INF/classes/log4j.properties].
java.io.FileNotFoundException: E:\WebExpenses\TestValidationsTomcat\WEB-INF\clas
ses\log4j.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:161)
at java.net.URL.openStream(URL.java:1007)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato
r.java:433)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.
java:336)
at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.
java:70)
at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebC
onfigurer.java:151)
at org.springframework.web.util.Log4jConfigListener.contextInitialized(L
og4jConfigListener.java:51)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
at org.apache.catalina.core.StandardService.start(StandardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
log4j:ERROR Ignoring configuration file [file:E:/WebExpenses/TestValidationsTomc
at/WEB-INF/classes/log4j.properties].
May 2, 2007 9:12:30 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
May 2, 2007 9:12:31 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
May 2, 2007 9:12:32 AM org.apache.catalina.loader.WebappClassLoader validateJarF
ile
INFO: validateJarFile(E:\WebExpenses\JSFDataBaseConnection\WEB-INF\lib\servlet-a
pi.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.
ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
May 2, 2007 9:12:35 AM org.apache.catalina.startup.ContextConfig applicationConf
ig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].
StandardHost[localhost].StandardContext[WebServicesApp]
May 2, 2007 9:12:37 AM org.apache.catalina.loader.WebappClassLoader validateJarF
ile
INFO: validateJarFile(E:\WebExpenses\JSFApplication\WEB-INF\lib\servlet-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/s
ervlet/Servlet.class
May 2, 2007 9:12:39 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 2, 2007 9:12:39 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\admin.xml
May 2, 2007 9:12:40 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
May 2, 2007 9:12:40 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
May 2, 2007 9:12:40 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
May 2, 2007 9:12:42 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\balancer.xml
May 2, 2007 9:12:43 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\jsp-examples.xml
May 2, 2007 9:12:43 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\manager.xml
May 2, 2007 9:12:44 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\ROOT.xml
May 2, 2007 9:12:44 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\servlets-examples.xml
May 2, 2007 9:12:44 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\tomcat-docs.xml
May 2, 2007 9:12:44 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\TomcatJNDIProj.xml
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.
ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
May 2, 2007 9:12:45 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
\localhost\webdav.xml
May 2, 2007 9:12:46 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /struts2-blank-2.0.1 from URL f
ile:C:/Tomcat 5.0/webapps/struts2-blank-2.0.1
May 2, 2007 9:12:47 AM org.springframework.web.context.ContextLoader initWebAppl
icationContext
INFO: Root WebApplicationContext: initialization started
May 2, 2007 9:12:47 AM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
May 2, 2007 9:12:47 AM org.springframework.core.CollectionFactory <clinit>
INFO: Commons Collections 3.x available
May 2, 2007 9:12:47 AM org.springframework.beans.factory.xml.XmlBeanDefinitionRe
ader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applic
ationContext.xml]
May 2, 2007 9:12:47 AM org.springframework.context.support.AbstractRefreshableAp
plicationContext refreshBeanFactory
INFO: Bean factory for application context [Root WebApplicationContext]: org.spr
ingframework.beans.factory.support.DefaultListableBeanFactory defining beans [];
root of BeanFactory hierarchy
May 2, 2007 9:12:48 AM org.springframework.context.support.AbstractApplicationCo
ntext refresh
INFO: No beans defined in application context [Root WebApplicationContext]
May 2, 2007 9:12:48 AM org.springframework.context.support.AbstractApplicationCo
ntext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [o
[email protected]]
May 2, 2007 9:12:48 AM org.springframework.context.support.AbstractApplicationCo
ntext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
lticaster': using default [org.springframework.context.event.SimpleApplicationEv
entMulticaster@2f7cfe]
May 2, 2007 9:12:48 AM org.springframework.ui.context.support.UiApplicationConte
xtUtils initThemeSource
INFO: Unable to locate ThemeSource with name 'themeSource': using default [org.s
[email protected]3]
May 2, 2007 9:12:48 AM org.springframework.beans.factory.support.DefaultListable
BeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hiera
rchy]
May 2, 2007 9:12:48 AM org.springframework.web.context.ContextLoader initWebAppl
icationContext
INFO: Using context class [org.springframework.web.context.support.XmlWebApplica
tionContext] for root WebApplicationContext
May 2, 2007 9:12:48 AM org.springframework.web.context.ContextLoader initWebAppl
icationContext
INFO: Root WebApplicationContext: initialization completed in 1638 ms
May 2, 2007 9:12:49 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /HibElearning from URL file:C:\
Tomcat 5.0\webapps\HibElearning
May 2, 2007 9:12:50 AM org.apache.catalina.loader.WebappClassLoader validateJarF
ile
INFO: validateJarFile(C:\Tomcat 5.0\webapps\HibElearning\WEB-INF\lib\servlet-api
.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: ja
vax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.
ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
May 2, 2007 9:12:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /reddy from URL file:C:\Tomcat
5.0\webapps\reddy
May 2, 2007 9:12:52 AM org.springframework.web.context.ContextLoader initWebAppl
icationContext
INFO: Root WebApplicationContext: initialization started
May 2, 2007 9:12:52 AM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
May 2, 2007 9:12:52 AM org.springframework.core.CollectionFactory <clinit>
INFO: Commons Collections 3.x available
May 2, 2007 9:12:52 AM org.springframework.beans.factory.xml.XmlBeanDefinitionRe
ader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applic
ationContext.xml]
May 2, 2007 9:12:52 AM org.springframework.context.support.AbstractRefreshableAp
plicationContext refreshBeanFactory
INFO: Bean factory for application context [Root WebApplicationContext]: org.spr
ingframework.beans.factory.support.DefaultListableBeanFactory defining beans [];
root of BeanFactory hierarchy
May 2, 2007 9:12:52 AM org.springframework.context.support.AbstractApplicationCo
ntext refresh
INFO: No beans defined in application context [Root WebApplicationContext]
May 2, 2007 9:12:53 AM org.springframework.context.support.AbstractApplicationCo
ntext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [o
[email protected]]
May 2, 2007 9:12:53 AM org.springframework.context.support.AbstractApplicationCo
ntext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
lticaster': using default [org.springframework.context.event.SimpleApplicationEv
entMulticaster@fae78f]
May 2, 2007 9:12:53 AM org.springframework.ui.context.support.UiApplicationConte
xtUtils initThemeSource
INFO: Unable to locate ThemeSource with name 'themeSource': using default [org.s
[email protected]3]
May 2, 2007 9:12:53 AM org.springframework.beans.factory.support.DefaultListable
BeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hiera
rchy]
May 2, 2007 9:12:53 AM org.springframework.web.context.ContextLoader initWebAppl
icationContext
INFO: Using context class [org.springframework.web.context.support.XmlWebApplica
tionContext] for root WebApplicationContext
May 2, 2007 9:12:53 AM org.springframework.web.context.ContextLoader initWebAppl
icationContext
INFO: Root WebApplicationContext: initialization completed in 1279 ms
May 2, 2007 9:12:53 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 2, 2007 9:12:54 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
plez any one can help me as early as possibleMaybe this resoruce will be helpful.
-
Error while starting Instance -javax.naming.NamingException: Cannot bind nu
Kindly help!!!!!
Application gets deployed on Oracle Weblogic Server 11g. But while starting its gives the Error
javax.naming.NamingException: Cannot bind null object to jndi with name.
All the things seems to be in place. Kindly helpNo I am not getting this error while deploying the application. Application gets successfully deployed.
Once I start the application I get this error
<Apr 17, 2010 5:28:46 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating
<Apr 17, 2010 5:28:46 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Could not setup environment
at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1361)
at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:408)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:182)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:48)
Truncated. see log file for complete stacktrace
javax.naming.NamingException: Cannot bind null object to jndi with name jms/queue/EodBodQueueJNDI
at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:311)
at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:277)
at weblogic.deployment.EnvironmentBuilder.addConnectorRef(EnvironmentBuilder.java:233)
at weblogic.deployment.EnvironmentBuilder.addResourceReferences(EnvironmentBuilder.java:152)
at weblogic.servlet.internal.CompEnv.activate(CompEnv.java:138)
Truncated. see log file for complete stacktrace -
How do I bind something into JNDI?
I want to bind something into JNDI so that my application can access it. Not a jdbc datasource, just a generic value (just a String, actually).
How do I do this in SunOne? Seems like it should be simple, but I am confused.It depends on what type of object you are binding.
If you are binding a simple (supported) Object like String. You can directly use the bind methods on the Context object.
If you are binding the custom objects, you have to mark the object as Referenceable and also may need to implement the state factories.
Should you have any queries, please get back.
Have a look at the JNDI tutorial @ http://java.sun.com/products/jndi/tutorial -
Unable to bind EEPersistenceManagerFactory to JNDI
I get the following exception trying to bind EEPersistenceManagerFactory to
JNDI with Kodo 2.2.3 (running with Weblogic 6.1 SP1):
javax.naming.ConfigurationException. Root exception is
java.rmi.MarshalException: failed to marshal
bind(Ljava.lang.String;Ljava.lang.Object;Ljava.util.Hashtable;); nested
exception is:
java.io.NotSerializableException:
com.solarmetric.kodo.impl.jdbc.JDBCPrefsConfiguration
java.io.NotSerializableException:
com.solarmetric.kodo.impl.jdbc.JDBCPrefsConfiguration
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
Anyone else run into this?Sasha-
That exception indicates that your PersistenceManagerFactory has not
yet been configured with the proper driver information. Note that the
JDOConnectionFactory does not use the system.prefs information by
default: it is designed to be configured internally as per
the JCA specification.
I'm sorry to say, but it actually looks like there is no way to bind
either the EEPersistenceManagerFactory or the JDOConnectionFactory into
JNDI (unless you extends the EEPersistenceFactory with your own
Referenceable implementation).
I have made a bug report about this:
https://bugzilla.solarmetric.com/show_bug.cgi?id=117
We will certainly try to have this fixed as soon as possible. Can you
please add a comment to the bug report with how urgently this is
affecting you?
Sasha Haghani <[email protected]> wrote:
Patrick,
I get a different problem with JDOConnectionFactory (in 2.2.3)...calling
getPersistenceManager() on it throws this exception:
Exception in thread "main" javax.jdo.JDODataStoreException: The JDBC driver
name "null" is not a valid class.
NestedThrowables:
java.lang.NullPointerException
at com.solarmetric.kodo.impl.jdbc.schema.DB.<init>(DB.java:62)
at com.solarmetric.kodo.impl.jdbc.schema.DB.getInstance(DB.java:37)
at
com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.initConfigurati
on(JDBCPersistenceManagerFactory.java:155)
at
com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.setup(JDBCPersi
stenceManagerFactory.java:265)
at
com.solarmetric.kodo.runtime.PersistenceManagerFactoryImpl.privateSetup(Pers
istenceManagerFactoryImpl.java:810)
at
com.solarmetric.kodo.runtime.PersistenceManagerFactoryImpl.getPersistenceMan
ager(PersistenceManagerFactoryImpl.java:53)
"Patrick Linskey" <[email protected]> wrote:
Sasha,
This is a known problem with Kodo JDO 2.2.3 EE, caused by a bug in our
JCA implementation.
You should be able to work around this problem by binding a
JDOConnectionFactory instead of an EEPersistenceManagerFactory.
com.solarmetric.kodo.impl.jdbc.ee.JDOConnectionFactory extends
EEPersistenceManagerFactory.
Unfortunately, JDOConnectionFactory implements Serializable although it
is not actually serializable. However, as JDOConnectionFactory also
implements javax.resource.Referenceable, the JNDI bind should succeed.
Finally, one other alternative is to use Kodo's JCA support to locate
the PersistenceManagerFactory. Unfortunately, you are using WebLogic 6.1
SP1, which has a flaky JCA implementation. Weblogic 6.1 SP2 resolves
these problems. So, your best option is probably to upgrade your
Weblogic install to SP2 and use JCA (as outlined in our docs).
JDBCPrefsConfiguration will properly serialize in the next patch release
of Kodo JDO.
-Patrick
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code -
RE: Binding JDBCPersistenceManagerFactory to JNDI.
Abe,
Do you mean I need to serialize it and store bytes in JNDI myself?
-----Original Message-----
From: White, Abe [mailto:[email protected]]
Sent: Friday, August 03, 2001 1:28 PM
To: Roytman, Alex; White, Abe; JDO-ListServ
Subject: RE: Binding JDBCPersistenceManagerFactory to JNDI._
All PersistenceManagerFactories are Serializable, and can be stored in
JNDI through serialization. The Kodo factories implement their own
readObject/writeObject methods to handle maintaining state and
connection pools correctly through the serialization process.
We would have liked to have used the Referenceable interface instead,
but Weblogic 5's JNDI implementation has a known bug where the interface
is completely ignored and objects are always Serialized anyway. Because
Weblogic is the most popular application server, we couldn't ignore it.
-----Original Message-----_
From: Roytman, Alex_
To: White, Abe; JDO-ListServ_
Sent: 8/3/01 1:18 PM_
Subject: Binding JDBCPersistenceManagerFactory to JNDI._
Abe,_
In your readme file you stated that PersistenceManagerFactory_
implementations can be stored in JNDI however neither of implementations
(JDBC or EE) implement References or Referenceable. Am I missing_
something?_
Alex_Abe,
Do you mean I need to serialize it and store bytes in JNDI myself?
-----Original Message-----
From: White, Abe [mailto:[email protected]]
Sent: Friday, August 03, 2001 1:28 PM
To: Roytman, Alex; White, Abe; JDO-ListServ
Subject: RE: Binding JDBCPersistenceManagerFactory to JNDI._
All PersistenceManagerFactories are Serializable, and can be stored in
JNDI through serialization. The Kodo factories implement their own
readObject/writeObject methods to handle maintaining state and
connection pools correctly through the serialization process.
We would have liked to have used the Referenceable interface instead,
but Weblogic 5's JNDI implementation has a known bug where the interface
is completely ignored and objects are always Serialized anyway. Because
Weblogic is the most popular application server, we couldn't ignore it.
-----Original Message-----_
From: Roytman, Alex_
To: White, Abe; JDO-ListServ_
Sent: 8/3/01 1:18 PM_
Subject: Binding JDBCPersistenceManagerFactory to JNDI._
Abe,_
In your readme file you stated that PersistenceManagerFactory_
implementations can be stored in JNDI however neither of implementations
(JDBC or EE) implement References or Referenceable. Am I missing_
something?_
Alex_ -
Adding elements to a node: cannot bind or add element
Hallo,
I want add emenents of my phases and subphases to a table, but I get this exception:
ContextException: Node(RoadMapVIew.phase_subphase_table): cannot bind or add element, because it is already bound to a node
The code is the following:
int phaseSize = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase().length;
String currentStatus = "";
String currentPhaseId = "";
String currentSubphaseId = "";
String currentNotifyId = "";
String lastStatus = "";
for (int i = 0; i < phaseSize; i++)
PhaseT phaseT = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase();
IPrivateRoadMapVIew.IPhase_subphase_tableElement tableElement = wdContext.nodePhase_subphase_table().createPhase_subphase_tableElement();
tableElement.setPhase_desc(phaseT.getSequenceGroup1().getPhaseDesc());
tableElement.setPhase_id(phaseT.getSequenceGroup1().getPhaseId());
int subPhaseSize = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase().length;
for(int j = 0; j< subPhaseSize; j++)
SubPhaseT subPhaseT = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase()[j];
tableElement.setSubphase_desc(subPhaseT.getSequenceGroup1().getSubPhaseDesc());
tableElement.setSubphase_id(subPhaseT.getSequenceGroup1().getSubPhaseId());
String status = subPhaseT.getSequenceGroup1().getStatus();
wdContext.nodePhase_subphase_table().addElement(tableElement);
lastStatus = status;
//le fasi/sotofasi sono ordinate perciò la corrente è l'ultima con uno status valido
if (status != null && !status.equals(""))
currentStatus = status;
currentPhaseId = phaseT.getSequenceGroup1().getPhaseId();
currentSubphaseId = subPhaseT.getSequenceGroup1().getSubPhaseId();
if (status.equals(DAConst.STATUS_NOTIFY))
//currentNotifyId = "notifyId"; //subPhaseT.getSequenceGroup1().getNotifyId();
currentNotifyId = subPhaseT.getSequenceGroup1().getNotifyId();
Can anybody help me please?
Thanks,
regards,
AndreaI have solved moving the creation of the reference of the node element and the setting of elements inside the second for loop:
for (int i = 0; i < phaseSize; i++)
PhaseT phaseT = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase()<i>;
String phaseDesc=phaseT.getSequenceGroup1().getPhaseDesc();
String phaseId=phaseT.getSequenceGroup1().getPhaseId();
int subPhaseSize = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase().length;
for(int j = 0; j< subPhaseSize; j++)
SubPhaseT subPhaseT = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase()[j];
IPrivateRoadMapVIew.IPhase_subphase_tableElement tableElement = wdContext.nodePhase_subphase_table().createPhase_subphase_tableElement();
tableElement.setSubphase_desc(subPhaseT.getSequenceGroup1().getSubPhaseDesc());
tableElement.setSubphase_id(subPhaseT.getSequenceGroup1().getSubPhaseId());
tableElement.setPhase_desc(phaseDesc);
tableElement.setPhase_id(phaseId);
String status = subPhaseT.getSequenceGroup1().getStatus();
wdContext.nodePhase_subphase_table().addElement(tableElement);
lastStatus = status;
Thanks everybody for helps,
Andrea -
Address already in use: Cannot bind
Hi all. I have a desktop app that sends commands and receives responses from a network appliance.
All commands and responses work fine except one - trying to use RTPSocketPlayer on port 49154.
The normal command and response UDP port is 49152. Streaming audio should come in on port 49154.
I am closing and disconnecting the socket on 49152 after every command and response.
But when I try to invoke the RTPSocketPlayer and bind port 49154 to my local IP, I get the
Address already in use: Cannot bind error.
Any suggestions? Thanks!
waynewAh OK, I get it. Change the InitSocket() method thus:
sock = new DatagramSocket(null);
sock.setReuseAddress(true);
sock.bind(new InetSocketAddress(addr, sockPort));but also have a look at netstat -an to see who else is on that port and whether that's OK. -
BPEL Newbie -- Cannot bind input
Have been given a wsdl to an internal web service, This service can be accessed by soapUI and XMLSpy default soap generators without any problem
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:par="http://localhost/XX/XX">
<soapenv:Header/>
<soapenv:Body>
<par:SeriesTitle>TEST</par:SeriesTitle>
<par:SeriesId>1/200-01</par:SeriesId>
<par:ProgrammeIdRef>1/2000</par:ProgrammeIdRef>
<par:SeriesStatus>PROD</par:SeriesStatus>
<par:ProductionAreaIdRef1>DRAMA</par:ProductionAreaIdRef1>
</soapenv:Body>
</soapenv:Envelope>
but Oracle BPEL fails with a remote fault thrown -- 'Cannot bind input'
The only strange thing, possibly linked - is because there are no partner link details in the original wsdl Oracle BPEL creates its ownHi,
I suggest you to create a value node exactly like Output_Remarks model node in the controller context and populate all the data from Ouput_Remarks node to this value node. You can write for loop or you can use WDCopyService.copyElements() method to copy the elements from model node to value node.
Create one more additional boolean attribute as "isEnteredByUser" in the same value node.
By default this boolean attribute value for all the elements will be false.
Every time when user updates the remarks for a particular entry then go and update the remarks field for that particular entry in the value node. And change "isEnteredByUser" boolean attribute to true.
And every time check whether remarks exist or not in the value node.
Because of this "isEnteredByUser" attribute , you can easily identify the records which are modified at front end while updaing in database.
I dont think it is better to update the Output model node with user input.
Regards,
Charan -
Hello all,
Stack trace :
GeneralException Node((<Context path of node>): cannot bind or add element, because it is already bound to a node
I am trying to upload data from excel file in web dynpro context.In the process, when I create and add an element to the node which I want to populate with excel data, it throws the above mentioned exception.
Any idea as to wht is causing the problem ?Hi,
GeneralException Node((<Context path of node>): cannot bind or add element, because it is already bound to a node
It seems that its a mapped node, try to bind or addelements at the source.
Ex: If this node is mapped from controller to view try to add elements in contoller instead of doing in view.
Regards
Ayyapparaj -
Hi guys! I badly need your help.
I'm trying to bind string[] variable in Java(IDCGetInfoResult) to another string[] in JavaFX (simpleList).
However, I can't seem to be able to do so.
The code statement highlighted in red generates an error message:
the target type of a bind cannot be an array
found: native array of string
required: object or sequence
IDCGetInfoResult -> array of strings in control.java
var simpleList: String[] = bind r.control.getIDCGetInfoResult();
var simpleListView : ListView = ListView {
translateX: 0
translateY: 0
layoutX: 20
layoutY: 80
height: 130
width: 200
items: simpleList
for(i in [0..simpleList.size()-1])
insert simpleList[i] into simpleListView.items;
}By the way, I'm using the Observer and Observable class as suggested by this blog post:
http://blogs.sun.com/michaelheinrichs/entry/binding_java_objects_in_javafx
Edited by: tsubaki.pw on Jan 27, 2010 10:43 PM
Edited by: tsubaki.pw on Jan 27, 2010 10:45 PMOK, I came with a quite convoluted solution, it might be a starting point for real code...
Part of the complexity comes because I didn't want to make my class extending Observable.
A recent thread ([cannot find java.util.Observable in JavaFX application|http://forums.sun.com/thread.jspa?threadID=5425241]) reminded that we cannot bind a Java variable from JavaFX, so we have to use Observable and Observer pair.
Here is my test code:
ObservableData.java import java.util.*;
public class ObservableData
ArrayList<String> info = new ArrayList<String>();
Notifier notifier = new Notifier();
ObservableData(Observer obs)
addObserver(obs);
void init()
for (int i = 0; i < 10; i++)
info.add("Item " + i);
notifier.change();
notifier.notifyObservers();
ArrayList<String> getData()
return info;
void addObserver(Observer obs)
notifier.addObserver(obs);
void update(int n)
String newItem = "Item " + n;
System.out.println("Update => " + newItem);
info.add(newItem);
notifier.change();
notifier.notifyObservers(newItem);
public String toString()
return info.toString();
static class Notifier extends Observable
public void change() { setChanged(); }
Test.fx class Watcher extends java.util.Observer
override function update(obs: java.util.Observable, ob: Object): Void
def updatedItem = ob as String;
println("Update with '{updatedItem}'");
def list = javaData.getData();
println(list.toString());
simpleList = for (item in list) item as String;
var javaData = new ObservableData(Watcher {});
var simpleList: String[];
var simpleListView: ListView = ListView {
translateX: 0
translateY: 0
layoutX: 20
layoutY: 80
height: 130
width: 200
items: bind simpleList
var b = Button
text: "Update"
action: function (): Void
def val = 10 + Math.random() * 100 as Integer;
println("Update with {val}");
javaData.update(val)
var scene: Scene;
Stage
title: "Observing Java data"
scene: scene = Scene
width: 300
height: 300
content:
b, simpleListView
javaData.init(); // Placement is important! If you want the list view to be initializedHere I refresh the whole content of the list view; depending on the data and the way to update it, you can use the updatedItem value to do a partial update. -
BLOB & CMP EJB - Cannot bind stream to a ScrollableResultSet
Hi,
I am trying to bind a byte[] to a Blob column in CMP EJB using Oracle 10g OCI driver in WebSphere. This gives the below error.
java.sql.SQLException: Cannot bind stream to a ScrollableResultSet or UpdatableResultSetDSRA0010E: SQL State = null, Error Code = 17,169
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:195)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.setUncheckedException(LocalExceptionMappingStrategy.java:266)
at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedLocalException(EJSDeployedSupport.java:318)
ThanksWhen you create a DataSource, use the below class in the field 'Data Source helper classs name'. This should solve the issue.
import java.util.Properties;
import javax.resource.ResourceException;
import com.ibm.websphere.appprofile.accessintent.AccessIntent;
public class OracleDataStoreHelper extends com.ibm.websphere.rsadapter.OracleDataStoreHelper {
public OracleDataStoreHelper(Properties props) {
super(props);
public int getResultSetConcurrency(AccessIntent intent) throws ResourceException {
return java.sql.ResultSet.CONCUR_READ_ONLY;
} -
ContextException : cannot bind or add element
Hi all,
I can't find an answer to my problem.
Hope you'll be able to
Here are the facts :
Context :
I'm currently creating a TeamViewer for Managers to be able to select the employees they manage.
For that, I have a table which lists them all, displaying their infos in specific columns.
Both columns and data are dynamic and are specified in the SAP back end.
I use the following bapis to get these informations :
- HRWPC_RFC_GET_COL_INFO (returns columns informations)
- HRWPC_RFC_GET_OBJECTS (returns employees personal numbers -> pernr)
Fact is the second one doesn't return as much informations as needed.
So I have then to call a third bapi :
- MYBAPI_USER_INFOS (return informations about an employee)
which, from an employee pernr, returns a lot more informations about him.
Fact is I manage to use efficiently both first bapis, so I get columns and pernr data.
Then I would like to get in a context node the list of enhanced informations of the employees, which is mapped to my view context and applied to a dynamic table.
My problem :
While adding programmaticaly the columns to my context node, I get the following exception : "com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TeamViewerApp.MainViewColumns): cannot bind or add element, because it is already bound to a node" error.
Error summary :
- com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TeamViewerApp.MainViewColumns): cannot bind or add element, because it is already bound to a node
-- at com.sap.tc.webdynpro.progmodel.context.Node.prepareAddElement(Node.java:649)
-- at com.sap.tc.webdynpro.progmodel.context.Node.addElement(Node.java:635)
-- at com.airfrance.tv1.teamviewer.components.TeamViewerApp.updateMainView(*TeamViewerApp.java:560*)
-- at com.airfrance.tv1.teamviewer.components.wdp.InternalTeamViewerApp.updateMainView(InternalTeamViewerApp.java:534)
-- at com.airfrance.tv1.teamviewer.components.views.TeamViewerView.onActionChangeView(TeamViewerView.java:197)
TeamViewerComp code :
wdThis.getColumnsMainView(viewId, userLanguage, userId); // get the columns infos
IGetColumns_ResultNode columns = wdContext.nodeGetColumns_Result();
for(int i=0; i<columns.size(); i++) {
IWDNodeElement column = columns.getElementAt(i); // get the #i column
wdContext.nodeMainViewColumns().addElement(column); +//add this column to my other context +
My context :
Component
- GetColumns (Model)
-- GetColumns_Output
--- GetColumns_Result
Colname
Heading
-- Langu
-- Uname
-- Viewid
- MainViewColumns (Value)
-- lot of infos
- SubViewColumns (Value)
-- lot of infos
My environment :
- os : Windows XP SP2
- procesor : 3GHz
- memory : 3Gb
- ide : SAP NWDS 7.0.12
- server JEE : 7.00 SP12
- server VM : Java Sun 1.4.2_12
Any help will be really appreciated
Thank you for your time!
AlphonseHI,
com.sap.tc.webdynpro.progmodel.context.ContextException: Node(HrChiefRedressalView.Ctx_FilteredOutput): cannot bind or add element, because it is already bound to a node
Try to bind or add element from the source of the node instead of mapped one.
Ex:
Controller->View
If your node is mapped from controller to view. bind/add element should be done at controller level not at view level.
Regards
Ayyapparaj -
When I am logged in to my home network I can bind a new machine to OD without an issue, but I cannot bind/authenticate a new machine out side of it even though i have FQDN pointing to my server complete with DNS setup and also an SSL to be sure.
All ports are confirmed open for all my services on the router and yet I can VPN, Profile Manager etc just not able to work with OD unless im connected to the same network the OD server is on even trying to connect to OD using the FQDN says host not found.
Please check if you wish server.bwnetwork.net
ThanksFixed this issue it appears you cannot bind to or connect to the OD outside of the local network - come on Apple I didnt use a FQDN for it to not work.
-
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
Hi!
I am using JBuilder 7.0, Weblogic 6.1 and Tomcat 4.03 (JBuilder Built In).
Found several references regarding "Cannot instantiate class: weblogic.jndi.WLInitialContextFactory" in the forum, but still cannot solve my problem.
Everything works when I used weblogic as my server. When I switch to Tomcat 4.0.3, I got the following problems.
Problem#1: ClassNotFound (Solved?)
1. Running Webserver with Tomcat 4.03, I got ClassNotFound error.
2. Put weblogic path in server configutation (Jbuilder) -> got servlet.init() error
3. Copy weblogic.jar under tomcat/lib/common -> fixed the problem!
I got this new error.
Problem#2: StandardWrapperValve[debugjsp]: servlet debugjsp ��Servlet.service()
1. Got this problem after running the following code:
String url = "t3://localhost:7001";
Properties properties = null;
try {
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
return new InitialContext(properties);
catch(Exception e) {
I have tried advises from this forum.
Changed url to
t3://localhost
t3://127.0.0.1:7001
t3://192.168.0.28:7001
Also tried using "iiop://" instead of t3.
I am stucked here. Please advise.
Thanks,
GeoffThanks for your reply.
I have actually placed weblogic.jar in all conceivable paths (C:\, C:\jbuilder7\jakarta-tomcat-4.0.3\common\lib) and set CLASSPATH properly.
The ClassNotFoundException is not appearing anymore, except for the error message below.
I am stucked for days now. Please help.
Thanks
Geoff
ERROR MESSAGE:
StandardWrapperValve[debugjsp]: Servlet debugjsp ��Servlet.service()
javax.servlet.ServletException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
javax.servlet.ServletException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at org.apache.jsp.Test$jsp._jspService(Test$jsp.java:75)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)
Maybe you are looking for
-
Problem in cookie handling using CookieManager java1.6
Hi all... I found that there is a no cookies are catched from http response for some web sites are requested by using CookieManager() in jdk1.6. following is source code where i test this case.... import java.io.; import java.net.; import java.util.*
-
I'm trying to secure some key figure data. What field is suppose to be used: 1kyfnm or 0tcakyfnm? The documentation says to use 0tcakyfnm, but neither object is in our system. I have tried to enter the fields directly into the authorization and r
-
i get this as a pop up message also There was a problem downloading the software for the iphone xxxx. The network connection timed out. Make sure your network settings are correct and your network connection is active, or try again later. im stil on
-
Advantages and disadvantages of Activating Split Valuation
Hi, Can anyone tell me about the advantages and disadvantages of activating split valuation and how it impact in CO module.
-
ITunes VERY slow to download video
I am having a very big problem. I recently update my iTunes program to iTunes7 and ever since, any video I purchase takes forever to download (I am currently downloading a one hour program and it is telling me there is more than 5 hours left remianin