File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes EclipseIDE 3.6 + Tomcat 5.5 exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "EclipseIDE 3.6 + Tomcat 5.5 exception" Watch "EclipseIDE 3.6 + Tomcat 5.5 exception" New topic
Author

EclipseIDE 3.6 + Tomcat 5.5 exception

Ramchandran Swamy
Greenhorn

Joined: Jun 30, 2011
Posts: 4
Im using Tomcat v5.5 with EclipseIDE 3.6. Im a newbie to Java development. Please be bit more generic. Thanks.
Im having the following exception, even when i run the Tomcat server with my runtime config arguments without even adding any projects.

SEVERE: createMBeans: Throwable
javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:602)
at javax.management.ObjectName.<init>(ObjectName.java:1403)
at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:1084)
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:496)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:569)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:365)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:534)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:497)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:659)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:627)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:277)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:128)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:702)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext preRegisterJMX
INFO: Error registering ctx with jmx StandardEngine[Catalina].StandardHost[localhost].StandardContext[C:\myproject\trunk\src\bin-debug] null javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:602)
at javax.management.ObjectName.<init>(ObjectName.java:1403)
at org.apache.catalina.core.StandardContext.createObjectName(StandardContext.java:4993)
at org.apache.catalina.core.StandardContext.preRegisterJMX(StandardContext.java:5002)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3954)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\myproject\tools\eclipseide\3.6prod\workspaces\default\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\myflexProject does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3814)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3985)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jun 30, 2011 5:21:35 PM org.apache.catalina.mbeans.ServerLifecycleListener propertyChange
SEVERE: Exception handling Container property change
javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:602)
at javax.management.ObjectName.<init>(ObjectName.java:1403)
at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:1009)
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:403)
at org.apache.catalina.mbeans.ServerLifecycleListener.processContainerPropertyChange(ServerLifecycleListener.java:1090)
at org.apache.catalina.mbeans.ServerLifecycleListener.propertyChange(ServerLifecycleListener.java:215)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at org.apache.catalina.core.ContainerBase.setLoader(ContainerBase.java:366)
at org.apache.catalina.core.StandardContext.setLoader(StandardContext.java:1298)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4023)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext registerJMX
INFO: Error registering wrapper with jmx StandardEngine[Catalina].StandardHost[localhost].StandardContext[C:\myproject\trunk\src\bin-debug] null javax.management.RuntimeOperationsException: Object name cannot be null
javax.management.RuntimeOperationsException: Object name cannot be null
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:582)
at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598)
at org.apache.catalina.core.StandardContext.registerJMX(StandardContext.java:5017)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4153)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.IllegalArgumentException: Object name cannot be null
... 17 more
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [C:\myproject\trunk\src\bin-debug] startup failed due to previous errors
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[C:\myproject\trunk\src\bin-debug] has not been started
Jun 30, 2011 5:21:35 PM org.apache.catalina.core.StandardContext registerJMX
INFO: Error registering wrapper with jmx StandardEngine[Catalina].StandardHost[localhost].StandardContext[C:\myproject\trunk\src\bin-debug] null javax.management.RuntimeOperationsException: Object name cannot be null
javax.management.RuntimeOperationsException: Object name cannot be null
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:582)
at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598)
at org.apache.catalina.core.StandardContext.registerJMX(StandardContext.java:5017)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.IllegalArgumentException: Object name cannot be null
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

Welcome to the Ranch, Ramchandran Swamy!
...java.lang.IllegalArgumentException: Document base C:\myproject\tools\eclipseide\3.6prod\workspaces\default\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\myflexProject does not exist or is not a readable directory...

Looks like you already have some project configured?

What changes have you done from the beginning to the server configurations in eclipse? Or perhaps any configurations related to this in the above mentioned project?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Wim Folkerts
Greenhorn

Joined: Mar 10, 2010
Posts: 19

The best approach I think is make a backup of you current Java project (i.e. static/dynamic) and create a new project. It indeed looks like the project cannot be found. Do you have a webserver specified in Eclipse? This because compiled resources are put into a different dir that the project sources are put.

Regards,
Wim
Ramchandran Swamy
Greenhorn

Joined: Jun 30, 2011
Posts: 4
Vijitha Kumara wrote:Welcome to the Ranch, Ramchandran Swamy!
...java.lang.IllegalArgumentException: Document base C:\myproject\tools\eclipseide\3.6prod\workspaces\default\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\myflexProject does not exist or is not a readable directory...

Looks like you already have some project configured?

What changes have you done from the beginning to the server configurations in eclipse? Or perhaps any configurations related to this in the above mentioned project?


Thanks Vijitha.

These are the changes which i do normally in order to configure my project whenever i do a fresh install:
1) In Server.xml
<Context docBase="myWebproject" path"/myProject/webapp" reloadable="true" source="org.eclipse.jst.j2ee.server:myWebproject"/><Context docBase="myFlexProject" path="C:\myProject\myFlexProject\trunk\src\bin-debug" reloadable="true"/>

2) In catalina.properties
server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar

3) In Tomcat module
C:\myProject\myFlexProject\trunk\src\bin-debug

4) In VM Arguments
-Dcatalina.base="C:\myProject\tools\eclipseide\3.5prod\workspaces\default\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" -Dwtp.deploy="C:\myProject\tools\eclipseide\3.5prod\workspaces\default\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps" -Djava.endorsed.dirs="C:\myProject\apache\PROJ\tomcat\5.5\tomcat\common\endorsed" -Djava.endorsed.dirs="C:\myProject\apache\PROJ\tomcat\5.5\tomcat\common\endorsed" -Dcatalina.home="C:\myProject\apache\PROJ\tomcat\5.5\tomcat" -DCONFIG_MODE=DEVDjava.endorsed.dirs="C:\myProject\apache\PROJ\tomcat\5.5\tomcat\common\endorsed" -DCONFIG_MODE=DEV

5) Working directory
C:\myProject\tools\eclipseide\3.6prod

After the above steps, clean & clear tomcat directory, clean projects, clean and resolve ivy folder. Add the project to tomcat and then run the configuration.


Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

<Context docBase="myWebproject" path"/myProject/webapp" reloadable="true"...

I guess this is a typo or is it in the actual file?

I also think think that it's better to start fresh by adding one project at a time and and get it working.
Ramchandran Swamy
Greenhorn

Joined: Jun 30, 2011
Posts: 4
myProject or myWebproject,etc all the names can be a typo since ive to replace the confidential names of my client project with the above dummy names.

Vijitha Kumara wrote:
<Context docBase="myWebproject" path"/myProject/webapp" reloadable="true"...

I guess this is a typo or is it in the actual file?

I also think think that it's better to start fresh by adding one project at a time and and get it working.



I did tried that by adding a entirely new project from scratch and trying to work with it. But still the same exception were reproduced again and again.

I guess now i got only one option is to format my drive or change my pc.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

I guess now i got only one option is to format my drive or change my pc.

How about a fresh installation of the Eclipse & Tomcat?
Ramchandran Swamy
Greenhorn

Joined: Jun 30, 2011
Posts: 4
Vijitha Kumara wrote:
I guess now i got only one option is to format my drive or change my pc.

How about a fresh installation of the Eclipse & Tomcat?


I tried that several times, thats the reason why i have eclipseIDE 3.4, 3.5 and 3.6 installed. But all had the same problem.

Anyway, finally after a week’s struggle, my eclipseIDE (v3.6 + Tomcat v5.5) is working fine.
I’m not quite sure what fixed all those exceptions. But I did try lot of possibilities to clear exceptions like

MalformedObjectNameException
IllegalArgumentException
NoBeanCreationException
InvocationTargetException
SandboxSecurityException
And so on…

What I believe is, not only the correct no. of different jar files, to be included are required but also the sequences of steps are important in fixing these exceptions.
Anyway, I’m glad I’m out of it for now but still feel its bit unstable.

Thanks all for helping me out.

Thanks,
Ram.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EclipseIDE 3.6 + Tomcat 5.5 exception