Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: defined startup class in websphere

6 views
Skip to first unread message

anike...@gmail.com

unread,
Mar 21, 2006, 4:34:35 AM3/21/06
to
forgot to mentioned...

I have a class WSServerStartup which implements CustomService. It has initialize(java.util.Properties configProperties) and shutdown() methods. where should I mentioned this class to execute at startup.

This class set parameters and loads data in XML files for processing.

Thanx

anike...@gmail.com

unread,
Mar 21, 2006, 4:26:56 AM3/21/06
to
Hi,

I have just migrated from weblogic to websohere 6. I have a class which get executed at startup. In webslogic I just need to modify the "startweblogic.cmd" file to execute the class. Now in websphere where should I specify the startup class. It is presentin the console option or do i need to specify in any of the cmd file.

Please help me in this.

Thanx

Ken Hygh

unread,
Mar 21, 2006, 5:27:12 AM3/21/06
to

anike...@gmail.com

unread,
Mar 21, 2006, 7:56:59 AM3/21/06
to
Thanx, I have config the CustomService and it started working.

But Noe i am trying to access my login.jsp page it gives me following page.
What is the problem.... Do I need to change my JNDI config.

And how can I see the JNDI tree view or confirm that EJBs are deployed correctly.

Thanx.

anike...@gmail.com

unread,
Mar 21, 2006, 7:59:43 AM3/21/06
to
sorry

here is the exception I am getting....when I am trying to access my login.jsp page

[3/21/06 18:22:26:613 IST] 0000004a SystemOut O com.cedera.exception.CederaException: MSG: Failed to lookup EJB home interfacejavax.naming.NameNotFoundException: Context: ibp2002cpu0069Node01Cell/nodes/cedera/servers/server1, name: com.cedera.server.user.ejb.SecurityService: First component in name com.cedera.server.user.ejb.SecurityService not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]Context: ibp2002cpu0069Node01Cell/nodes/cedera/servers/server1, name: com.cedera.server.user.ejb.SecurityService: First component in name com.cedera.server.user.ejb.SecurityService not found.ERROR CODE: 16001 TIME: 1142945546613
at com.cedera.util.EJBHomeFactory.lookupHomeInterface(EJBHomeFactory.java:71)
at com.cedera.util.EJBHomeFactory.getHomeInterface(EJBHomeFactory.java:45)
at com.cedera.util.GetRemoteInterfaces.getSecurityService(GetRemoteInterfaces.java:274)
at com.cedera.client.bean.LoginBean.dummylogin(LoginBean.java:99)
at com.ibm._jsp._login._jspService(_login.java:109)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)


Thanx

Paul Ilechko

unread,
Mar 21, 2006, 8:21:56 AM3/21/06
to

anike...@gmail.com

unread,
Mar 21, 2006, 9:44:05 AM3/21/06
to
Hi,

i have gone through the help page. i have configuredcustomservice but when i checked the logs I found following exception while starting the server. I have mentioned exact classpath (conatining all JARs, ZIP and class files). I also included the jar file which contains the customservice class. still its giving the exception...

[3/21/06 20:04:07:947 IST] 0000000a ManagerAdmin I TRAS0017I: The startup trace state is *=info.
[3/21/06 20:04:08:238 IST] 0000000a MBeanDescript W ADMN0001W: The service is unable to parse the MBean descriptor file com/ibm/ws/management/descriptor/xml/mbeans.xml.
[3/21/06 20:04:08:539 IST] 0000000a AdminInitiali A ADMN0015I: The administration service is initialized.
[3/21/06 20:04:11:170 IST] 0000000a SystemOut O PLGC0057I: Plug-in configuration service is started successfully.
[3/21/06 20:04:11:220 IST] 0000000a PMIImpl A PMON0001A: PMI is enabled
[3/21/06 20:04:13:188 IST] 0000000a CGBridgeServi I CWRCB0204E: The core group bridge service is disabled because it may not execute on a non-managed node.
[3/21/06 20:04:13:358 IST] 0000000a CustomService W WSVR0018W: Unable to create CustomService, WSServerStartup
java.lang.ClassNotFoundException: WSServerStartup.class
at java.net.URLClassLoader.findClass(URLClassLoader.java:375)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:103)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
at com.ibm.ws.runtime.component.CustomServiceImpl.initialize(CustomServiceImpl.java:95)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:1161)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:1010)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:245)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:157)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:120)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:378)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)

me

unread,
Mar 21, 2006, 10:12:04 AM3/21/06
to
Can the startup functionality be put into a servlet/JSP that can be
loaded on server startup.

I was using the startup class in weblogic before, but I changed it like
I mentioned before to avoid the server dependency. It worked for me.

Ken Hygh

unread,
Mar 21, 2006, 10:11:33 AM3/21/06
to

The fact that there's no package info in front of the missing class name
makes me wonder how you've configured this.

Ken

anike...@gmail.com

unread,
Mar 22, 2006, 3:40:02 AM3/22/06
to
HI,

I put the startup class in Websphere\AppServer\classes folder and it started working. Now there is not classnotfoundexception appearing on startup but now there is new exception mentioned below. I searched on net and found that it is related to JDK version compatibility issue. Is It?? or there is any other reason for this???

[3/22/06 13:11:58:492 IST] 0000000a ContainerImpl E WSVR0501E: Error creating component cederaServerStartup [class com.ibm.ws.runtime.component.CustomServiceImpl]
com.ibm.ws.exception.RuntimeWarning: java.lang.VerifyError: (class: com/cedera/server/workflow/OrderStateMachine, method: <init> signature: ()V) Incompatible object argument for method call
at com.ibm.ws.runtime.component.CustomServiceImpl.start(CustomServiceImpl.java:152)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:821)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:356)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:173)


at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:120)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:378)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)

Caused by: java.lang.VerifyError: (class: com/cedera/server/workflow/OrderStateMachine, method: <init> signature: ()V) Incompatible object argument for method call
at com.cedera.server.startup.WSServerStartup.initialize(WSServerStartup.java:56)
at com.ibm.ws.runtime.component.CustomServiceImpl.start(CustomServiceImpl.java:133)
... 13 more

Websphere configuration is not as simple as other servers.......Please help in this.

Ken Hygh

unread,
Mar 22, 2006, 5:19:47 AM3/22/06
to

You may now have this class in two different classloaders. Make sure it
only exists once.

BTW, putting things into WebSphere\AppServer\classes is not recommended.

Ken

anike...@gmail.com

unread,
Mar 22, 2006, 5:35:07 AM3/22/06
to
Hi,

I have put my jar file into websphere\appserver\class folder. but when i remove the jar file from there it gives me ClassNotFoundException though I mentioned the jar file path into classpath field of custom service configuration. Whenere should I specify the jar file path??

Thanx for the reply....

anike...@gmail.com

unread,
Mar 22, 2006, 5:46:11 AM3/22/06
to
Hi,

now i have removed the jar file from classes folder and mentioned path in classpath field of custom service configuration, it did not gave ClassNotFoundException but the previous exception is still there. Exception is as follows......

[3/22/06 16:09:23:385 IST] 0000000a CustomService W WSVR0019W: CustomService, ServerStartup, failed to initialize.


java.lang.VerifyError: (class: com/cedera/server/workflow/OrderStateMachine, method: <init> signature: ()V) Incompatible object argument for method call
at com.cedera.server.startup.WSServerStartup.initialize(WSServerStartup.java:56)
at com.ibm.ws.runtime.component.CustomServiceImpl.start(CustomServiceImpl.java:133)

at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:821)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:356)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:173)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:120)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:378)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)

[3/22/06 16:09:23:545 IST] 0000000a ContainerImpl E WSVR0501E: Error creating component ServerStartup [class com.ibm.ws.runtime.component.CustomServiceImpl]

Ken Hygh

unread,
Mar 22, 2006, 7:40:18 AM3/22/06
to

Where is com/cedera/server/workflow/OrderStateMachine.class? What
compiler did you use to create it?

I'm thinking that you may have a
WSServerStartup.initialize(OrderStateMachine x) method?? if so, this is
the wrong signature for a CustomService

Ken

anike...@gmail.com

unread,
Mar 22, 2006, 8:36:10 AM3/22/06
to
Hi,

I had compiled my application with sun JDK 1.4, and its giving error to OrderStateMachine calss only other classes are running with no exception (mentioned in the startup class before calling OrderStateMachine). OrderStateMachine calss is present in the jar file only.

And I am using WSServerStartup.initialize(java.util.Properties configProperties) signature only......I have configured the custom service class according to the specification.........I have tried with different classpaths but its just stuck their......

Please help in this

Ken Hygh

unread,
Mar 22, 2006, 9:00:15 AM3/22/06
to

Try compiling your classes with the JDK inside WAS. If that doesn't take
care of the problem, then I'm out of ideas I'd suggest you open a PMR
with IBM.

Ken

0 new messages