Below is my Liferay path:
C:\glassfish3\glassfish\domains\liferay\applications
C:\glassfish3 and there should be the deploy directory in the same place. The data directory is there if you are still using hsql.
Actually, it goes here: C:\glassfish3\glassfish\domains\liferay\lib\classes
You should not put this in the exploded classes directory, because if you ever upgrade or undeploy/redeploy, that will get overwritten.
Try if you find location:
C:\glassfish3\glassfish\domains\liferay\src\main\resources\portal-ext.properties
to put your file into.
Edit:
Look for your portal.properties file, find there liferay.home variable. Check that path and place the file there. Another is that what I said in my comments.
This tip was on liferay pages.
This is was the correct place to place it in my liferay 6 install:
C:\glassfish3\glassfish\domains\liferay\applications\liferay-portal-6.0-ee-sp2-20110727\WEB-INF\classes
Related
I'm using the ExtEditMe extension in my project with the following configuration:
$this->widget('ext.editMe.widgets.ExtEditMe',
array(
'model'=>$model,
'attribute'=>'Text',
'ckeConfig'=>array('enableTabKeyTools'=>true,'enterMode'=>2),
'height'=>'500',
'width'=>'100%',
'filebrowserImageBrowseUrl'=>'/protected/extensions/kcfinder/browse.php?type=files',
'filebrowserImageUploadUrl'=>'/protected/extensions/kcfinder/upload.php?type=files',
'filebrowserBrowseUrl'=>'/protected/extensions/kcfinder/upload.php?type=files',
'filebrowserUploadUrl'=>'/protected/extensions/kcfinder/upload.php?type=files'
)
);
For some reason the file upload button isn't showing in the tool bar. Is there something else I need to add?
Questions too much for a comment. Could you check the following:
Check the permissions for the assets folder. Need to be writable by your
httpd (example apache:apache or apache:www-data)
EditMe should be inside the protected/extensions/ folder
Change your widget call to:
$this->widget('application.extensions.editme.widgets.ExtEditMe',
(used full path)
Check if kcfinder/config.php says: 'disabled' => false,
Also, there may be a need to put kcfinder in the root of the webapp. See this example with CKeditor.
The following comes from the CKEDITOR docs:
This button will be hidden by default (hidden:true). The filebrowser plugin looks for all elements with the filebrowser attribute and unhides them if appropriate configuration setting is available (filebrowserBrowseUrl/filebrowserUploadUrl).
Which could mean your config settings for the filebrowser plugin are not correct. You should try the following:
KCFinder (your filebrowser plugin) is not a yii extension as far as I know, so move the kcfinder folder to the root folder (or any other folder outside of the protected folder).
Change the paths to the KCFinder files. I recommend using yii's Yii::app()->baseUrl to make sure you're getting the correct paths:
'filebrowserImageBrowseUrl'=>Yii::app()->baseUrl.'/kcfinder/browse.php?type=files',
'filebrowserImageUploadUrl'=>Yii::app()->baseUrl.'/kcfinder/upload.php?type=files',
'filebrowserBrowseUrl'=>Yii::app()->baseUrl.'/kcfinder/upload.php?type=files',
'filebrowserUploadUrl'=>Yii::app()->baseUrl.'/kcfinder/upload.php?type=files'
Hope that helps.
'filebrowserImageBrowseUrl'=>'/protected/extensions/kcfinder/browse.php?type=files',
'filebrowserImageUploadUrl'=>'/protected/extensions/kcfinder/upload.php?type=files',
'filebrowserBrowseUrl'=>'/protected/extensions/kcfinder/upload.php?type=files',
'filebrowserUploadUrl'=>'/protected/extensions/kcfinder/upload.php?type=files'
These URLs will be passed to the Javascript initiator of the extension, and they will be requested from there, so you can copy them and try requesting them from the browser to see if they are working (I'm almost sure they won't work).
One way you can work this out, is by creating a controller and includes these PHP files there, then make these URLs refer to the controller you created. Hope it helps.
I have a problem with Trac.
I cant create a new project.
Here, in the /path/to/myproject - what should I write instead of it?
In fact, my project path is: C:\Users\Programmer\BitNami Trac Stack projects
Everytime it outputs error in BitNami Trac Stack command line.
Why cant I create a new project?
It is writing: The system cannot find the path specified
Thanks!
try this:
cd C:\Users\Programmer\BitNami
trac-admin . initenv
You could save yourself a lot of hassle by avoiding blanks/spaces (and non-ASCII characters) in paths, at least if you expect to go to the command line. This always tends to become a pain.
Therefore reinstalling is a real option, because I know you can change path defaults to saner values without blanks/spaces. I did this before, and it works.
In your case to create a new project, use:
trac-admin c:/Users/Programmer/BitNami initenv
I have a problem using Intellij Idea.
I am absolutely unable to load text file as InputStream - it doesnt matter where do I put the file (main/java, main/resources...) it just can't find the file - in Eclipse everything works just fine.
I tried setings->compiler->resource patterns and added ?*.txt but that doesn't seem to work either.
Any help is appreciated.
If you load it as a File, make sure that Working Directory is properly set in IDEA Run/Debug Configuration, since it's the default directory where Java will look for a file when you try to access it like new File("file.txt"). Working directory should be set to the directory of your project containing .txt files.
If you load files as a classpath resource, then they should reside somewhere under Source root and will be copied to the classpath according to Settings | Compiler | Resource Patterns.
If you can't get it working, upload your project somewhere including IDEA project files so that we can point to your mistake.
Look at the image, notice that the txt files are in the project root, and not the source folders (in blue).
If you open the Project Structure dialog, and click on Modules and select your module - are the correct folders marked as Source Folders on the sources tab?
Link for how to get to Project Structure dialog
Also, if you print out the absolute path of that file you are trying to read, is that anywhere near where you expect it to be?
An easy way to figure out the same would be to try creating a file in the same fashion and see where it gets created in your project. You can put your input file at the same location and it should work just fine (if it doesn't, you should check your resource pattern which might be causing the file to be not copied over in the build output).
This method actually gives you the working directory of your intellij settings which is pointed out in the accepted answer. Just sharing as I had similar trouble and I figured out this way. :)
What kind of magic has this 'MSIMG32.DLL'? Why can't inno setup delete it?
Edit: this file was just added to {app} using [File] section, at the end of uninstall I get the message "Some elements could not be removed. These can be removed manually." what is referred to MSIMG32.DLL exactly.
Why should you have this file in your installation set ? This is a Windows image dll ? Remove it from the [Files] section.
It is perhaps likely that that DLL is in use by some running application. There is an addon for InnoSetup that deals with this situation. There is not enough information in the question from which other ideas may be produced.
There is a possibility that, on your system, that file either is, or has been infected by a virus, as suggested by ThreatExpert. You should exclude that possibility by running a system scan with your anti-virus program.
I have a remote project in Eclipse which was created through RSE's 'Create Remote Project' function. Now I changed hosting service and there's no option to connect to former host. When I try to delete this remote project Eclipse asks me for former host's login and password which if entered are not recognized anyway.
How can I delete the project?
Note: My workspace folder contains 'RemoteSystemsTempFiles' folder and there are no files related to this project there.
Finally found it. I did the following:
deleted relevant folder in workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/
relaunched Eclipse
the project was still there but Eclipse let me 'legally' delete it with right-click
The answer is to brows to workspace.metadata.plugins\org.eclipse.rse.core\profiles\PRF.${hostname}
Then delete the directory with the name H.${profilename}
You might check into the "workspace/.metadata/.plugins" directory to find the RSE plugin's data storage area. It will probably have an xml file or something with the reference to your project. Back it up and delete the reference. Hopefully this will remove it from your view.
Sorry I cannot be more specific, this is just a suggestion that I am not able to try explicitly.
Good luck, and like I said, back up the files you change... just in case.
With my Kepler setup, I found this subdir in workspace that had a folder for each domain. I rm'd the outdated ones
<workspace path>/RemoteSystemsTempFiles/ABC.DOMAIN.COM
The solution that works for me - hide the project:
Go to "Project Explorer > Customize view", and uncheck "RSE internal projects".