I've set up a webapp to be able to create-domain, deploy, test and delete-domain using the maven-glassfish-plugin.
The problem is that it insists on setting the master password.
Now its not possible to set the master password being used by the eclipse JavaEE glassfish plugin.
So when you try to start it from eclipse it asks for the master
password in the background:
Please enter the master password
After a while it times out and it says:
Server GlassFish at localhost failed to start.
I found out that you can tell glassfish to not ask the password anymore by doing:
asadmin change-master-password --savemasterpassword domain1
http://forums.java.net/jive/message.jspa?messageID=341172
However, I changed my admin password maven uses,
to be the real defaut master password: "changeit",
and now eclipse can start maven-created domains without me
having to --savemasterpassword
http://blogs.sun.com/alexismp/entry/what_is_a_glassfish_master
Thursday, 23 July 2009
Tuesday, 21 July 2009
more alfresco pain
This time I tried to send e-mails when new documents are added. I thought this would be simple. (With Alfresco labs 3.1)
First I got errors like:
Eventually I figured out my test addresses are not acceptable to javamail. I had to setup amanica@localhost.dev before it worked.
Next I got the following:
And I think setting a e-mail address for the admin user fixed that.
Thirdly it only wanted to send these rule e-mails from alfresco@alfresco.com, but if I copy slightly newer versions of
MailActionExecuter$1.class and MailActionExecuter.class into
${ALF_HOME}/tomcat/shared/classes/org/alfresco/repo/action/executer/
it works. I don't know if that breaks anything else in the process.
And finally, I'm still unhappy that they don't ship with oracle hibernate mapping files in the community edition, even in version 3.2 .
Like eclipse and maven, its painfull but theres nothing better :(
First I got errors like:
20:08:32,529 ERROR [action.executer.MailActionExecuter]
Failed to send email to 'amanica@localhost'
as the address is incorrectly formatted
Eventually I figured out my test addresses are not acceptable to javamail. I had to setup amanica@localhost.dev before it worked.
Next I got the following:
20:08:33,310 ERROR [action.executer.MailActionExecuter]
Failed to send email to [root, test]
org.springframework.mail.MailPreparationException:
Could not prepare mail; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:599)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:388)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:332)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:347)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:352
And I think setting a e-mail address for the admin user fixed that.
Thirdly it only wanted to send these rule e-mails from alfresco@alfresco.com, but if I copy slightly newer versions of
MailActionExecuter$1.class and MailActionExecuter.class into
${ALF_HOME}/tomcat/shared/classes/org/alfresco/repo/action/executer/
it works. I don't know if that breaks anything else in the process.
And finally, I'm still unhappy that they don't ship with oracle hibernate mapping files in the community edition, even in version 3.2 .
Caused by: java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException
: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.sqlmap.client.SqlMapException: The <sqlmap> resource is missing: alfresco/ibatis/#resource.
dialect#/content-insert-SqlMap.xml
at org.alfresco.ibatis.HierarchicalSqlMapConfigParser.parse(HierarchicalSqlMapConfigParser.java:112)
at org.alfresco.ibatis.HierarchicalSqlMapClientFactoryBean.buildSqlMapClient(HierarchicalSqlMapClientFactoryBean.java:86)
</sqlmap>
Like eclipse and maven, its painfull but theres nothing better :(
Wednesday, 8 July 2009
explore bazaar
The up an coming bzr explorer is really promising to become: version control for human beings!
I tried to do a commit in it today and the following was very nice:

Wishlist:
So far I made an alias to be able to launch it while at the branch in a terminal:
alias be='bzr explore . &'
But I suspect I'll have a bzr explore icon on my application launcher soon.
Version control is getting so cool that I'm be tempted to quit coding and become a full-time version-controllist. :-P whooa endorphin rush..
I tried to do a commit in it today and the following was very nice:
- I can have the diff and the commit windows open simultaneously to be able to referback. (this was a problem before for me because both wants to lock to branch)
- The auto-completion of words and filenames is awesome.

- trying to find related revisions is almost impossible on the commandline (i.e. it took too long), but its so nice with qlog.
- The commit progress is also ultra cool
Wishlist:
- Save draft commit messages eg. every 30 seconds (like gmail). Anything can happen while or after you typed the message and before you hit commit eg. a power failure.
- In my case, my computer basically crashed when I tried to make a snapshot and it launched the infinite ksnapshots. (bonus points for a [save now] button!)
- [esc] should close qdiff windows
- qannotate
- ctrl+G should go to a line (like gannotate)
- ctrl+F should start a search (like gannotate)
So far I made an alias to be able to launch it while at the branch in a terminal:
alias be='bzr explore . &'
But I suspect I'll have a bzr explore icon on my application launcher soon.
Version control is getting so cool that I'm be tempted to quit coding and become a full-time version-controllist. :-P whooa endorphin rush..
Subscribe to:
Posts (Atom)