martes, 18 de octubre de 2011
miércoles, 12 de octubre de 2011
sábado, 8 de octubre de 2011
No free port within range: 80=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@12996d6
You have to change the port
glassfish/domains/domain1/config/domain.xml
For example:
< network-listener port="9191" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" >
< network-listener port="8181" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool">
< transports >
glassfish/domains/domain1/config/domain.xml
For example:
< network-listener port="9191" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" >
< network-listener port="8181" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool">
< transports >
viernes, 7 de octubre de 2011
graphviz Ubuntu, reverse-engineer-source-code-to UML

REVERSE ENGINEER : SOURCE CODE TO UML
References: http://java.dzone.com/articles/reverse-engineer-source-code-u?page=1
S.O. Linux UBUNTU 10.04LTS
1. Download :
* UmlGraph-5.4.jar: UmlGraph binary - UmlGraph-5.4.jar (jar file containing only the UmlGraph classes; please use this only for pulling UmlGraph into other projects).
*graphviz : sudo apt-get install graphviz
2. Probe both of them:
*copy the jar into java libs:
cp UmlGraph-5.4.jar /usr/lib/jvm/java-6-sun-1.6.0.24/lib/
*and probe it:
root@silvia-desktop:/home/silvia/Escritorio# java -jar /usr/lib/jvm/java-6-sun-1.6.0.24/lib/UmlGraph-5.4.jar -private /home/silvia/Escritorio/persona.java
Loading source file /home/silvia/Escritorio/persona.java...
Constructing Javadoc information...
UMLGraph doclet version 5.4 started
Building general class diagram
*Locate the dot: which dot
root@silvia-desktop:/usr/bin# which dot
/usr/bin/dot
*and probe it:
$ dot -Tps graph1.dot -o graph1.ps
*Copy the dot to java libs:
cp /usr/bin/dot /usr/lib/jvm/java-6-sun-1.6.0.24/lib/
3. Then in eclipse Helios, go to:
1- Project-generate javadoc
2.select Doctlet option
name: org.umlgraph.doclet.UmlGraphDoc
classpath: /usr/lib/jvm/java-6-sun-1.6.0.24/lib/UmlGraph-5.4.jar
3. select the project and clic in next
Write the following line inside extra java options, to get the full class and packages
'-attributes' '-operations' '-qualify' '-types' '-visibility'
4. Click on Finish Button
Go to eclipse_path/ and open the index.html file :D you get it :D UML diagrams inside Javadoc :D
hopefully that helps to you, and Cheers:)
.------------------------------------------------------------another steps of install
Installing graphviz on Ubuntu Lucid Lynx 10.04
If you want sfdp (a great layout for large graphs), then you need the .debs from the graphviz site (not through the ubuntu repos).
Download the develpment snapshots here
note, if you don't use the language specific bindings listed, you don't need to download those.
sudo aptitude install libdevil1c2 libgtkglext1
sudo dpkg -i graphviz_*.deb graphviz-dev*_all.deb
graphviz-doc*_all.deb libgraphviz4_*.deb libgraphviz-dev_*.deb libgv-ruby_*.deb
Now, you can run sfdp!
An internal error occurred during: "Building workspace".unable to create new native thread
Parametros correctos:
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m
-Xms512m
-Xmx1g
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m
-Xms512m
-Xmx1g
martes, 4 de octubre de 2011
postgre data dictionary
If you want to generate data dictionary for Postgre you can write comments on the database tables and atributes using pgAdmin tool and then use: ddbWrech : http://www.dbwrench.com/download/download_base.shtml
install it:
and get the connection
and make the reverse engineer to get the data dictionary,only clic on tool option in dbwrech and reverse engineer, its all.
thanks for watching :P
install it:
After downloading the dbwrench2.zip file:
- Extract (unzip) this file to any folder.
The extracted folder structure will look like this: - Go to the bin sub folder.
- Run the dbwrench2 script file to launch DbWrench.
(i.e. Use a terminal window to navigate to the bin sub folder and type:./dbwrench2)
and get the connection
and make the reverse engineer to get the data dictionary,only clic on tool option in dbwrech and reverse engineer, its all.
thanks for watching :P
domingo, 2 de octubre de 2011
because it has not yet been started, or was already stopped
com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [consultorio.Rol], because it has not yet been started, or was already stopped
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
at com.vaadin.ui.Button.fireClick(Button.java:539)
at com.vaadin.ui.Button.changeVariables(Button.java:206)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1299)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1219)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:735)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [consultorio.Rol], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at Interfaces.__RolServiceRemote_Remote_DynamicStub.crearRol(Interfaces/__RolServiceRemote_Remote_DynamicStub.java)
at Interfaces._RolServiceRemote_Wrapper.crearRol(Interfaces/_RolServiceRemote_Wrapper.java)
at com.consultorio.admin.RolUI.crearObjeto(RolUI.java:101)
at com.consultorio.admin.RolUI.access$0(RolUI.java:99)
at com.consultorio.admin.RolUI$1.buttonClick(RolUI.java:43)
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 com.vaadin.event.List
Error causado por que falta reiniciar el server Glassfish, para que el server reconozca la conexión RMI.
Cause: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [consultorio.Rol], because it has not yet been started, or was already stopped
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
at com.vaadin.ui.Button.fireClick(Button.java:539)
at com.vaadin.ui.Button.changeVariables(Button.java:206)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1299)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1219)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:735)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [consultorio.Rol], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at Interfaces.__RolServiceRemote_Remote_DynamicStub.crearRol(Interfaces/__RolServiceRemote_Remote_DynamicStub.java)
at Interfaces._RolServiceRemote_Wrapper.crearRol(Interfaces/_RolServiceRemote_Wrapper.java)
at com.consultorio.admin.RolUI.crearObjeto(RolUI.java:101)
at com.consultorio.admin.RolUI.access$0(RolUI.java:99)
at com.consultorio.admin.RolUI$1.buttonClick(RolUI.java:43)
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 com.vaadin.event.List
Error causado por que falta reiniciar el server Glassfish, para que el server reconozca la conexión RMI.
Suscribirse a:
Entradas (Atom)