cancel
Showing results for 
Search instead for 
Did you mean: 

Sun Application Server 9.0 and Alfresco

novamxd
Champ in-the-making
Champ in-the-making
Hello Everyone,

I apologize now for any spelling mistakes as at the moment I don't see very clearly as I've been smashing my head into my keyboard from frustration.

But to the point, I have currently installed on a Windows XP SP2 system:

- JDK 6u1 with the runtime environment
- Sun's Application Server v9.0
- MySQL 5.0

And I've been trying for the past two days to deploy the Alfresco 2.0.0 community war file as a web application to this wonderful application server. However as you can imagine (why I'm here) it's not working.

I uploaded the three errors I got to my web server into an appropriately named folder (I think anyway). They are:

- err1.htm
- err2.htm
- err3.htm

If anyone could help me with these errors, I would be most appreciative. And between downloading to deploying the war file, I made no modifications. And yes, I tried Tomcat and JBoss, both I couldn't figure out either so I figured I'd try the more… user friendly? application server. For those who haven't played with it, it comes with an incredibly useful admin website something like Tomcat's except better.

And as I'm sure most can tell, I'm not very versed in Java application servers, servlets, etc, etc. I'm a PHP programmer, web designer, and have been sucked into the world of .NET.
7 REPLIES 7

dbaran
Champ in-the-making
Champ in-the-making
Hello,

About your errors:

Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
   at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
   at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
   at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
   at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
   … 67 more
Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1511)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1292)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:169)
   at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)
You probably forgot to add JDBC driver jar file for MySQL in your classpath. See Database configuration

About GlassFish (SAS 9.0), some other guys have already tried to work Alfresco with it, but it seems Alfresco is not yet fully JaveEE 5.0, and used an older release of JFaces… So, they are some modification to do in sources to use GlassFish.

See other threads on this forum:
http://forums.alfresco.com/viewtopic.php?t=5609&highlight=glassfish
http://forums.alfresco.com/viewtopic.php?t=1433&highlight=glassfish
http://forums.alfresco.com/viewtopic.php?t=559&highlight=glassfish

We are also very impatient to see Alfresco works with GlassFish Smiley Happy

PS: Beware about your JDK, I have read some threads about compatibility problems. It's better to use 1.5 until problems are resolved.

novamxd
Champ in-the-making
Champ in-the-making
Thank you,

Very interesting, I would be nice to see if work with the JavaEE and I guess I'll try working with the JavaEE 5.0 for kicks and giggles. I thought I might have left out the MySQL db connector, but to be honest I'm actually not sure where to put it. But I will look through those threads you gave me. And for the JDK, I'll definitely switch back to 1.5 to help eliminate any problems.

I also tried running your Tomcat and Alfresco bundle you have (few moments ago) and for some odd reason, with out making any modifications except removing those three files for it to work with MySQL, it also crashed and burned. And, yes I did run that batch file you have to setup the MySQL database with all your tables. Here are log snippets,… chuncks,… pages I guess:

04:03:36,343 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:313)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:74)
   at org.alfresco.repo.admin.ConfigurationChecker$1.doWork(ConfigurationChecker.java:180)
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:176)
   at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:82)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:184)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   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)

04:03:36,359 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:313)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:74)
   at org.alfresco.repo.admin.ConfigurationChecker$1.doWork(ConfigurationChecker.java:180)
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:176)
   at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:82)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:184)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   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)

04:03:36,359 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:313)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:74)
   at org.alfresco.repo.admin.ConfigurationChecker$1.doWork(ConfigurationChecker.java:180)
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:176)
   at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:82)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:184)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   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)

naramski
Champ in-the-making
Champ in-the-making
I've just created an ant build.xml for building Alfresco V2.0 with "Glassfish support".

The script contains a "patch" to the web.xml for using MyFaces and do the tedious process of changing

"http://java.sun.com/jsf/core'-> "http://myfaces.apache.org/jsf/core"
"http://java.sun.com/jsf/html'-> "http://myfaces.apache.org/jsf/html"

You have only to change the processLauncher.xml and to copy the cryptix library to glassfish/domains/domain/lib/ext

On my system, Alfresco deploy now without problem. The final process is detailled on http://www.naramski.info/roller/david/entry/deploy_alfresco_in_glassfish_v2

The build and all the files is in the archive at the bottom of the article.

I hope it helps

kaesar
Champ in-the-making
Champ in-the-making
I've just created an ant build.xml for building Alfresco V2.0 with "Glassfish support".

The script contains a "patch" to the web.xml for using MyFaces and do the tedious process of changing

"http://java.sun.com/jsf/core'-> "http://myfaces.apache.org/jsf/core"
"http://java.sun.com/jsf/html'-> "http://myfaces.apache.org/jsf/html"

You have only to change the processLauncher.xml and to copy the cryptix library to glassfish/domains/domain/lib/ext

On my system, Alfresco deploy now without problem. The final process is detailled on http://www.naramski.info/roller/david/entry/deploy_alfresco_in_glassfish_v2

The build and all the files is in the archive at the bottom of the article.

I hope it helps

Hello, we are also trying to get Alfresco working into GlassFish.
It is possible to reactivate the link above mentioned? I can not access

rasputnik
Champ in-the-making
Champ in-the-making
I've just created an ant build.xml for building Alfresco V2.0 with "Glassfish support".

The script contains a "patch" to the web.xml for using MyFaces and do the tedious process of changing

"http://java.sun.com/jsf/core'-> "http://myfaces.apache.org/jsf/core"
"http://java.sun.com/jsf/html'-> "http://myfaces.apache.org/jsf/html"

You have only to change the processLauncher.xml and to copy the cryptix library to glassfish/domains/domain/lib/ext

On my system, Alfresco deploy now without problem. The final process is detailled on http://www.naramski.info/roller/david/entry/deploy_alfresco_in_glassfish_v2

The build and all the files is in the archive at the bottom of the article.

I hope it helps

Hello, we are also trying to get Alfresco working into GlassFish.
It is possible to reactivate the link above mentioned? I can not access

Me too Smiley Happy

The article is still  in googles cache, luckily :

  http://www.google.com/search?q=site%3Anaramski.info+glassfish

kaesar
Champ in-the-making
Champ in-the-making
thanks a lot, rasputnik. I have not thought about google cache. It is a good clue, thanks.

kumarmenon
Champ in-the-making
Champ in-the-making
Hi

Can somebody tell me what the patch is in web.xml. I am struggling to get my community version of Alfresco running with Glassfish. I have replace the Sun's JSF tags with myfaces in all the jsp's. But now i get this error.. Is there any other changes to be made?


[#|2008-05-06T09:37:36.221-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=eae7ba41-485e-4bcb-9b97-3ba31ad7ce94;|ApplicationDispatcher[/alfresco] PWC1231: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /jsp/dashboards/container.jsp(25,63) PWC6188: The absolute uri: http://myfaces.apache.org/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application
   at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:73)
   at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:359)
   at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:153)
   at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:417)
   at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:222)
   at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:482)
   at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:562)
   at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:165)
   at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223)
   at org.apache.jasper.compiler.ParserController.parse(ParserController.java:124)
   at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
   at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
   at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
   at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:855)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366)
   at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)

Arun