Which target platform shall I use?
Hi,
I'm working on developping a server component. When I create a plug-in project, which target platform shall I select? Eclipse or an OSGi framework? I thought it may be OSGi framework - Equinox. But I found in the JazzTalk tutorial, the default value "Eclipse 3.3" is selected, and that component works well. Is there any difference between these two options? BTW, the JazzHelloWorld doesn't work in 0.6M2. Is it out of date? Thanks! |
6 answers
dangyb wrote:
Hi, I just generated two plug-ins with the new plug-in wizards. For one I selected Eclipse 3.3 and for the other I selected OSGI Equinox. Then I compared the generated files (MANIFEST.MF, build.properties, .project, ..classpath) and they all look the same to me. I'm not enough of an Eclipse expert to know if there should be some subtle difference. It seems like you should be fine with either path. One related topic is the Execution Environment (which can be set from the Overview tab of the manifest editor). I notice that the primary jazz component plug-ins specify J2SE-1.5 for this, so you may want to specify that for your plug-ins.
Do you mean HelloJazz (https://jazz.net/learn/LearnItem.jsp?href=content/docs/hello-jazz/index.html) or a different tutorial? Can you describe the problem you are seeing? I reviewed and fixed-up HelloJazz (and others) for M2, but perhaps I missed something. |
Chris, thanks!
Do you mean HelloJazz In fact, I mean the tutorial of "Writing a Jazz Web Hello World Page" (https://jazz.net/learn/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-hello-world.html). After I complete all steps of the instructions, the Hello World page is always on the loading status. The following is the message from server console: 11:29:24,718 WARN b.internal.projectarea.ProjectAreaFragmentProvider - Failed to find a project area for . Process Component is not available 11:29:25,125 ERROR com.ibm.team.links.common - com.ibm.team.build.linktype.reportedWorkItems has an invalid item type in source endpoint Reported against builds; link will not be registered 11:29:25,125 ERROR com.ibm.team.links.common - com.ibm.team.build.linktype.includedWorkItems has an invalid item type in source endpoint Included in builds; link will not be registered 11:29:25,546 ERROR com.ibm.team.repository - Component package is not pre-registered in package registry. Check that "generated_package" extension exists and is correct. Package URI: com.ibm.team.scm 11:29:25,546 ERROR com.ibm.team.repository - Component package is not pre-registered in package registry. Check that "generated_package" extension exists and is correct. Package URI: com.ibm.team.workitem.query 11:29:25,546 ERROR com.ibm.team.repository - Component package is not pre-registered in package registry. Check that "generated_package" extension exists and is correct. Package URI: com.ibm.team.build 11:29:25,546 ERROR com.ibm.team.repository - Component package is not pre-registered in package registry. Check that "generated_package" extension exists and is correct. Package URI: com.ibm.team.links 11:29:25,546 ERROR com.ibm.team.repository - Component package is not pre-registered in package registry. Check that "generated_package" extension exists and is correct. Package URI: com.ibm.team.filesystem 11:29:26,406 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.foundation.wiki 11:29:26,406 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.analysis 11:29:26,406 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.links 11:29:26,406 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.workitem.query 11:29:26,406 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.filesystem 11:29:26,406 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.example.jazztalk 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.build 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.apt 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.interop 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.scm 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.reports 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.requirements 11:29:26,453 WARN .repository.service.internal.RepositoryItemService - Component is installed in the database but not present in the server: com.ibm.team.requirements.discussions 11:29:26,500 INFO .service.internal.scheduler.SchedulerConfiguration - The scheduler service is enabled 11:29:26,515 WARN gistry.ServiceProviderBundleActivationManagerOwner - The service "com.ibm.team.process.service.IProcessServerService" will not be proxied. See the property "com.ibm.team.repository.service.nonServiceProxies" in teamserver.properties 11:29:26,640 WARN gistry.ServiceProviderBundleActivationManagerOwner - The service "com.ibm.team.workitem.service.IAuditableServer" will not be proxied. See the property "com.ibm.team.repository.service.nonServiceProxies" in teamserver.properties 11:29:26,656 WARN gistry.ServiceProviderBundleActivationManagerOwner - The service "com.ibm.team.workitem.common.internal.rest.IAttachmentRestService" will not be proxied. See the property "com.ibm.team.repository.service.nonServiceProxies" in teamserver.properties 11:29:26,656 WARN gistry.ServiceProviderBundleActivationManagerOwner - The service "com.ibm.team.workitem.common.internal.model.IImageContentService" will not be proxied. See the property "com.ibm.team.repository.service.nonServiceProxies" in teamserver.properties 11:29:26,671 WARN com.ibm.team.workitem - E-mail notification is disabled, see the Server Setup Guide for details on enabling it. 11:29:26,671 WARN gistry.ServiceProviderBundleActivationManagerOwner - The service "com.ibm.team.workitem.common.internal.IWorkItemRepositoryService" will not be proxied. See the property "com.ibm.team.repository.service.nonServiceProxies" in teamserver.properties 11:29:26,671 INFO .team.repository.servlet.AbstractTeamServerServlet - Using Marshaller Version 0.2 11:29:26,671 WARN com.ibm.team.repository.servlet.TeamServerServlet - Security warning: Allowing guest access. 11:29:26,671 WARN com.ibm.team.repository.servlet.TeamServerServlet - Security warning: Allowing identity assertion. 11:29:26,671 WARN tory.common.transport.services.TeamServiceRegistry - The service 'com.ibm.team.repository.common.internal.IContributorRestService' has not been declared as a <service> of a com.ibm.team.repository.common.components extension 11:29:26,906 WARN tory.common.transport.services.TeamServiceRegistry - The service 'com.ibm.team.repository.service.internal.IAdminRestService' has not been declared as a <service> of a com.ibm.team.repository.common.components extension |
In fact, I mean the tutorial of "Writing a Jazz Web Hello World Ok I created defect 30139 for this. I think that several of the web UI docs need a review post-M2. Subscribe to the defect if you want to follow progress. |
Chris,
I've tried the HelloJazz you mentioned in M2, it seems workable in function, but I find some error message in the eclipse console. What does it mean? 2007-09-04 14:21:38.921 - com.ibm.team.repository.service.internal.monitoring.ServiceExecutionMonitorRegistry (initialization failure) java.lang.NoClassDefFoundError: com.ibm.team.repository.service.internal.monitoring.ServiceExecutionMonitorRegistry (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:130) at com.ibm.team.repository.common.transport.internal.registry.ServiceProviderBundleActivationManagerOwner.handlePostInvoke(ServiceProviderBundleActivationManagerOwner.java:158) at com.ibm.team.repository.common.transport.internal.registry.ServiceProviderBundleActivationManagerOwner.access$0(ServiceProviderBundleActivationManagerOwner.java:157) at com.ibm.team.repository.common.transport.internal.registry.ServiceProviderBundleActivationManagerOwner$1.postInvoke(ServiceProviderBundleActivationManagerOwner.java:72) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.postInvoke(ExportProxyServiceRecord.java:378) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:331) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106) at $Proxy46.saveItem(Unknown Source) at com.ibm.team.repository.service.internal.ComponentRepositoryItemService.saveItem(ComponentRepositoryItemService.java:103) at com.ibm.team.process.internal.service.ProcessService.getNewChangeEvents(ProcessService.java:1909) at com.ibm.team.process.internal.service.ProcessService.processChangeEvents(ProcessService.java:1806) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at com.ibm.team.repository.service.internal.scheduler.SchedulerManagerService$ServiceTaskAsyncTask.runTask(SchedulerManagerService.java:282) at com.ibm.team.repository.service.async.internal.InstrumentedAsyncTask.runTask(InstrumentedAsyncTask.java:66) at com.ibm.team.repository.service.async.internal.AsyncTaskRunner.run(AsyncTaskRunner.java:153) at java.lang.Thread.run(Thread.java:801) 2007-09-04 14:21:40.390 - com.ibm.team.repository.service.internal.monitoring.ServiceExecutionMonitorRegistry (initialization failure) java.lang.NoClassDefFoundError: com.ibm.team.repository.service.internal.monitoring.ServiceExecutionMonitorRegistry (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:130) at com.ibm.team.repository.common.transport.internal.registry.ServiceProviderBundleActivationManagerOwner.handlePreInvoke(ServiceProviderBundleActivationManagerOwner.java:163) at com.ibm.team.repository.common.transport.internal.registry.ServiceProviderBundleActivationManagerOwner.access$1(ServiceProviderBundleActivationManagerOwner.java:162) at com.ibm.team.repository.common.transport.internal.registry.ServiceProviderBundleActivationManagerOwner$1.preInvoke(ServiceProviderBundleActivationManagerOwner.java:77) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.preInvoke(ExportProxyServiceRecord.java:401) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:323) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:318) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$1.invoke(ExportProxyServiceRecord.java:106) at $Proxy18.getCurrentTransactionStatus(Unknown Source) at com.ibm.team.repository.service.internal.ContributorCache.get(ContributorCache.java:103) at com.ibm.team.repository.service.internal.ContributorService.fetchContributorItemIdByUserId(ContributorService.java:242) at com.ibm.team.server.embedded.jetty.auth.realm.TeamRealm.isKnownContributor(TeamRealm.java:58) at com.ibm.team.server.embedded.jetty.auth.realm.TeamRealm.getPrincipal(TeamRealm.java:111) at com.ibm.team.server.embedded.jetty.auth.realm.TeamRealm.authenticate(TeamRealm.java:73) at org.mortbay.http.BasicAuthenticator.authenticate(BasicAuthenticator.java:64) at org.mortbay.http.HttpRequest.getUserPrincipal(HttpRequest.java:1167) at org.mortbay.http.HttpRequest.getAuthUser(HttpRequest.java:1128) at org.mortbay.jetty.servlet.ServletHttpRequest.getRemoteUser(ServletHttpRequest.java:402) at javax.servlet.http.HttpServletRequestWrapper.getRemoteUser(HttpServletRequestWrapper.java:156) at org.eclipse.equinox.http.servlet.internal.HttpServletRequestAdaptor.getRemoteUser(HttpServletRequestAdaptor.java:50) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.getUserId(AbstractTeamServerServlet.java:834) at com.ibm.team.repository.servlet.TeamServerServlet.getUserId(TeamServerServlet.java:96) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1011) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:109) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) |
dangyb wrote:
Chris, I have seen this exception stack before. When I saw it I was using "remote mode" (see: https://jazz.net/wiki/bin/view/Main/JazzServerRunAndDebug if you're not familiar with that term) and I had messed up my launch configuration by using "Add Required Bundles" in the launch dialog. When I see NoClassDefFoundError my first guess is that something is wrong with the launch configuration. Either something is missing (like the plug-in that contains the class that didn't load) or there is some kind of initialization order problem. I know that HelloJazz describes a local mode setup. Are you doing it that way or are you using remote mode when you see this? Chris |
Chris,
actually, I got the error message when I followed the tutorial of HelloJazz using local mode. In fact, in my workspace, there are other plgu-ins from other Jazz tutorials. When I remove all these plug-ins, the HelloJazz works without previous error messages. There may be some loading error for those plug-ins. Thanks a lot! |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.