dotCMS 2.0 upgrade issues

19 views
Skip to first unread message

Sépaq

unread,
May 25, 2012, 8:47:54 AM5/25/12
to dotCMS User Group
Heya!

We are getting those errors when compiling our plugin. Any hints on
how we can fix this ?

com.dotmarketing.portlets.files.factories does not exist
[javac] import
com.dotmarketing.portlets.files.factories.FileFactory;

This is how we use it. Any work around ?
File mappingsFile = FileFactory.getFileByURI(filename, host, true);

byte[] content = FileFactory.getFileData(file);

and

cannot find symbol
[javac] symbol : method
createContext(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
[javac] location: class
com.dotmarketing.velocity.ClientVelocityServlet
[javac] context =
ClientVelocityServlet.createContext(this.getRequest(),
this.getResponse());

Maria Ahues Bouza

unread,
May 25, 2012, 1:42:01 PM5/25/12
to dot...@googlegroups.com
The files were refactored in 2.0 to use API and APIImpl classes like
we had Content before.

You can take a look at the classes under:
com/dotmarketing/portlets/files/business/

I think for your example you need to use
com.dotmarketing.portlets.files.business.FileFactoryImpl.getFileByURI

-Maria
> --
> You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
> To post to this group, send email to dot...@googlegroups.com.
> To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.
>



--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.
Reply all
Reply to author
Forward
0 new messages