Methods I am defining in *LocalServiceImpl is not getting defined by service builder in *LocalServiceUtil.
Have gone through this question,but didn't work for me
Liferay: Any method written in *LocalServiceImpl not found in *LocalServiceUtil
service log:
build-service:
[echo] Loading jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[echo] 8 Jun, 2015 8:18:28 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
[echo] INFO: Global shared lib directory /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/lib/
[echo] 8 Jun, 2015 8:18:28 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
[echo] INFO: Global lib directory /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/lib/ext/
[echo] 8 Jun, 2015 8:18:28 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
[echo] INFO: Portal lib directory /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/
[echo] 8 Jun, 2015 8:18:28 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
[echo] Loading jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[echo] Loading jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
[echo] INFO: Properties for portal loaded from [file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
[echo] Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/classes/portal-ext.properties
[echo] Building SampleWS3
[echo] Writing /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/portlets/SampleWs3-portlet/docroot/WEB-INF/service/com/test3/model/SampleWS3Wrapper.java
[mkdir] Created dir: /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/portlets/SampleWs3-portlet/docroot/WEB-INF/service-classes
compile-java:
[copy] Copied 6 empty directories to 6 empty directories under /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/portlets/SampleWs3-portlet/docroot/WEB-INF/service-classes
[javac] Compiling 18 source files to /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/portlets/SampleWs3-portlet/docroot/WEB-INF/service-classes
[zip] Building zip: /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/portlets/SampleWs3-portlet/docroot/WEB-INF/lib/SampleWs3-portlet-service.jar
[delete] Deleting directory /home/rayon/shi/liferay bundle/liferay-plugins-sdk-6.1.1/portlets/SampleWs3-portlet/docroot/WEB-INF/service-classes
BUILD SUCCESSFUL
stack-trace on deployment:
10:38:15,134 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner] [AutoDeployDir:177] Processing SampleWs3-portlet-6.1.1.1.war
10:38:15,135 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner] [PortletAutoDeployListener:77] Copying portlets for /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce- ga2/deploy/SampleWs3-portlet-6.1.1.1.war
10:38:15,135 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:763] Deploying SampleWs3-portlet-6.1.1.1.war
10:38:15,173 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Updating SampleWs3 from version 6.1.1.1 to version 6.1.1.1
Expanding: /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/deploy/SampleWs3-portlet-6.1.1.1.war into /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174
Copying 1 file to /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174/WEB-INF
Copying 1 file to /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174/WEB-INF/classes
Copying 1 file to /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174/WEB-INF/classes
Copying 1 file to /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174/WEB-INF/jsp
10:38:15,308 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2083] Modifying Servlet 2.5 /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174/WEB-INF/web.xml
Copying 102 files to /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/SampleWs3-portlet
Copying 1 file to /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/SampleWs3-portlet
Deleting directory /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20150608103815174
10:38:15,355 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner] [PortletAutoDeployListener:87] Portlets for /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/deploy/SampleWs3-portlet-6.1.1.1.war copied successfully. Deployment will start in a few seconds.
8 Jun, 2015 10:38:20 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/SampleWs3-portlet]
10:38:20,787 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1033] Reading plugin package for SampleWs3-portlet
8 Jun, 2015 10:38:20 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
8 Jun, 2015 10:38:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/rayon/shi/liferay bundle 20th may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/SampleWs3-portlet
10:38:21,573 INFO [pool-2-thread-22][HotDeployImpl:178] Deploying SampleWs3-portlet from queue
10:38:21,574 INFO [pool-2-thread-22][PluginPackageUtil:1033] Reading plugin package for SampleWs3-portlet
Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/35-SampleWs3-portlet/WEB-INF/classes/portlet.properties
Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/35-SampleWs3-portlet/WEB-INF/classes/service.properties
10:38:21,710 INFO [pool-2-thread-22][ServiceComponentLocalServiceImpl:280] Upgrading Sample database to build number 62
Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/35-SampleWs3-portlet/WEB-INF/classes/portlet.properties
8 Jun, 2015 10:38:21 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/35-SampleWs3-portlet/WEB-INF/classes/service.properties
Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/35-SampleWs3-portlet/WEB-INF/classes/service.properties
Loading file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/35-SampleWs3-portlet/WEB-INF/classes/portlet.properties
First of all: Check the sourcecode for your *LocalServiceUtil and make sure it really doesn't have the method's implementation. If the method is there, you'll have to look elsewhere. Here's where:
When you deploy a portlet, you can get the API on multiple ways: Someone might have deployed the plugin containing the services on tomcat's global class path. If you don't update that one, you probably won't see your updates.
Also, someone might have copied an older version of your plugin into their own plugin as well - naturally not seeing any updates unless they update their dependency. Check for changed names of the jar file as well. Also check for the classes: Some people like to add the compiled java classes to their source directories, ending up with two different implementations of the same code.
Related
I'm using PyQt5 GUI (.ui file) separately and using these with my .py file the program is using pandas taking input from GUI line edit doing some search in excel(pandas data frame) and then displaying output at GUI Qtableview. (cdpt.ui, cdptsearchtoll.py, cdpt.xlsx chromedriver and pyicon.ico are in folder)
my pandas is using read_html as well.
Now I want to make a .exe file using pyinstaller I 'm doing but getting error "failed to execute script"
I'm new to pyinstaller and unable to identify where the issue is? other than that my code is working fine. as expected!
please see below
C:\Users\AB43399\Desktop\cdpt_search_tool>pyinstaller -w -F -i
"C:\Users\AB43399\Desktop\cdpt_search_tool\pyicon.ico" cdptsearchtool.py
1220 INFO: PyInstaller: 3.4
1220 INFO: Python: 3.7.1
1221 INFO: Platform: Windows-10-10.0.16299-SP0
1231 INFO: wrote C:\Users\AB43399\Desktop\cdpt_search_tool\cdptsearchtool.spec
1238 INFO: UPX is not available.
1247 INFO: Extending PYTHONPATH with paths
['C:\\Users\\AB43399\\Desktop\\cdpt_search_tool',
'C:\\Users\\AB43399\\Desktop\\cdpt_search_tool']
1247 INFO: checking Analysis
1251 INFO: Building Analysis because Analysis-00.toc is non existent
1252 INFO: Initializing module dependency graph...
1273 INFO: Initializing module graph hooks...
1350 INFO: Analyzing base_library.zip ...
10235 INFO: running Analysis Analysis-00.toc
10317 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\ab43399\appdata\local\programs\python\python37\python.exe
12527 INFO: Caching module hooks...
12717 INFO: Analyzing C:\Users\AB43399\Desktop\cdpt_search_tool\cdptsearchtool.py
13790 INFO: Processing pre-find module path hook PyQt5.uic.port_v3
13970 INFO: Processing pre-find module path hook PyQt5.uic.port_v2
14984 INFO: Processing pre-find module path hook distutils
15954 INFO: Processing pre-safe import module hook six.moves
23920 INFO: Processing pre-find module path hook site
23964 INFO: site: retargeting to fake-dir
'c:\\users\\ab43399\\appdata\\local\\programs\\python\\python37\\lib\\site-
packages\\PyInstaller\\fake-modules'
26263 INFO: Processing pre-safe import module hook setuptools.extern.six.moves
70917 INFO: Loading module hooks...
70917 INFO: Loading module hook "hook-distutils.py"...
71040 INFO: Loading module hook "hook-encodings.py"...
71585 INFO: Loading module hook "hook-jinja2.py"...
71673 INFO: Loading module hook "hook-lib2to3.py"...
72000 INFO: Loading module hook "hook-lxml.etree.py"...
72003 INFO: Loading module hook "hook-numpy.core.py"...
74268 INFO: Loading module hook "hook-numpy.py"...
74308 INFO: Loading module hook "hook-openpyxl.py"...
74594 INFO: Loading module hook "hook-pandas.py"...
84003 INFO: Loading module hook "hook-PIL.Image.py"...
86446 INFO: Loading module hook "hook-PIL.py"...
86479 INFO: Excluding import 'PySide'
86481 INFO: Removing import of PySide from module PIL.ImageQt
86482 INFO: Excluding import 'PyQt5'
86485 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt
86485 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt
86486 INFO: Excluding import 'tkinter'
86488 INFO: Removing import of tkinter from module PIL.ImageTk
86489 INFO: Excluding import 'PyQt4'
86493 INFO: Removing import of PyQt4 from module PIL.ImageQt
86494 INFO: Import to be excluded not found: 'FixTk'
86494 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
86499 INFO: Import to be excluded not found: 'FixTk'
86500 INFO: Excluding import 'tkinter'
86502 INFO: Loading module hook "hook-pkg_resources.py"...
88979 INFO: Processing pre-safe import module hook win32com
89480 INFO: Loading module hook "hook-pycparser.py"...
89493 INFO: Loading module hook "hook-pydoc.py"...
89507 INFO: Loading module hook "hook-PyQt5.py"...
91328 WARNING: Hidden import "sip" not found!
91334 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
91824 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
92457 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
93499 INFO: Loading module hook "hook-PyQt5.uic.py"...
93571 INFO: Loading module hook "hook-pytest.py"...
102252 INFO: Loading module hook "hook-pythoncom.py"...
104849 INFO: Loading module hook "hook-pytz.py"...
105540 INFO: Loading module hook "hook-pywintypes.py"...
108030 INFO: Loading module hook "hook-setuptools.py"...
111619 INFO: Loading module hook "hook-sqlite3.py"...
112534 INFO: Loading module hook "hook-sysconfig.py"...
112605 INFO: Loading module hook "hook-win32com.py"...
114057 INFO: Loading module hook "hook-xml.dom.domreg.py"...
114058 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
114076 INFO: Loading module hook "hook-xml.py"...
114078 INFO: Loading module hook "hook-_tkinter.py"...
116028 INFO: checking Tree
116033 INFO: Building Tree because Tree-00.toc is non existent
116033 INFO: Building Tree Tree-00.toc
116557 INFO: checking Tree
116558 INFO: Building Tree because Tree-01.toc is non existent
116558 INFO: Building Tree Tree-01.toc
116796 INFO: Looking for ctypes DLLs
116930 INFO: Analyzing run-time hooks ...
116943 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
116999 INFO: Including run-time hook 'pyi_rth_pkgres.py'
117006 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
117013 INFO: Including run-time hook 'pyi_rth_qt5.py'
117060 INFO: Looking for dynamic libraries
122552 INFO: Looking for eggs
122552 INFO: Using Python library
c:\users\ab43399\appdata\local\programs\python\python37\python37.dll
122554 INFO: Found binding redirects:
[]
122614 INFO: Warnings written to
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\warn-cdptsearchtool.txt
122960 INFO: Graph cross-reference written to
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\xref-cdptsearchtool.html
123141 INFO: checking PYZ
123141 INFO: Building PYZ because PYZ-00.toc is non existent
123142 INFO: Building PYZ (ZlibArchive)
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\PYZ-00.pyz
126145 INFO: Building PYZ (ZlibArchive)
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\PYZ-00.pyz completed successfully.
126227 INFO: checking PKG
126227 INFO: Building PKG because PKG-00.toc is non existent
126228 INFO: Building PKG (CArchive) PKG-00.pkg
129181 WARNING: One binary added with two internal names.
129181 WARNING: ('libGLESv2.dll',
'C:\\users\\ab43399\\appdata\\local\\programs\\python\\python37\\lib\\site-
packages\\PyQt5\\Qt\\bin\\libGLESv2.dll',
'BINARY')
129184 WARNING: was placed previously at
129184 WARNING: ('PyQt5\\Qt\\bin\\libGLESv2.dll',
'C:\\users\\ab43399\\appdata\\local\\programs\\python\\python37\\lib\\site-
packages\\PyQt5\\Qt\\bin\\libGLESv2.dll',
'BINARY')
157741 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
157789 INFO: Bootloader c:\users\ab43399\appdata\local\programs\python\python37\lib\site-
packages\PyInstaller\bootloader\Windows-64bit\runw.exe
157789 INFO: checking EXE
157790 INFO: Building EXE because EXE-00.toc is non existent
157790 INFO: Building EXE from EXE-00.toc
157897 INFO: SRCPATH [('C:\\Users\\AB43399\\Desktop\\cdpt_search_tool\\pyicon.ico', None)]
157897 INFO: Updating icons from ['C:\\Users\\AB43399\\Desktop\\cdpt_search_tool\\pyicon.ico'] to
C:\Windows\Temp\tmplqtaq2qp
157915 INFO: Writing RT_GROUP_ICON 0 resource with 132 bytes
157915 INFO: Writing RT_ICON 1 resource with 5355 bytes
157916 INFO: Writing RT_ICON 2 resource with 67624 bytes
157917 INFO: Writing RT_ICON 3 resource with 38056 bytes
157917 INFO: Writing RT_ICON 4 resource with 21640 bytes
157919 INFO: Writing RT_ICON 5 resource with 16936 bytes
157919 INFO: Writing RT_ICON 6 resource with 9640 bytes
157919 INFO: Writing RT_ICON 7 resource with 4264 bytes
157920 INFO: Writing RT_ICON 8 resource with 2440 bytes
157920 INFO: Writing RT_ICON 9 resource with 1128 bytes
157933 INFO: Appending archive to EXE
C:\Users\AB43399\Desktop\cdpt_search_tool\dist\cdptsearchtool.exe
158455 INFO: Building EXE from EXE-00.toc completed successfully.
I have seen warning one or two places
like
91328 WARNING: Hidden import "sip" not found!
129181 WARNING: One binary added with two internal names.
but I don't understand what is missing and how to fix them are they the one who is causing the problem???
Any help/direction is really appreciated!
[2015-10-13:2043]
Here is a screen shot of the installed extensions...
=========
I think there is a problem with the initialisation script..
=========
I have now installed hybris5.6.0.2:
I have now been able to run the Hybris Administration Console
[localhost:9001]
I have logged in.
I have ran the Initialisation, because being a first time installation, except of taking about an hour to complete, it took about 1 minute 30 sec to complete. I suspect something is wrong.
It has been about six months since I worked with hybris, and I have forgotten the URLs for the hMC, and for the MCC... for the MCC, is it:
http://localhost:9001/mcc??
for the hMC is it:
http://localhost:9001/hMC??
Any suggestions?
You are missing the hmc/mmc extensions in your $HYBRIS_HOME/config/localextensions.xml
You need to have them declared as
<extension name='mcc' />
<extension name="hmc" />
The urls for accessing them are
http://localhost:9001/hmc/hybris
(or use: http://localhost:9001/hmc/hybris?wid=MC0x0, the parameters ensure that the hmc window gets opened in your current tab and not in a separate window)
http://localhost:9001/mmc
In order to get it to work you will have to:
first have to add those extensions (see above)
ant clean all (from within $HYBRIS_HOME/bin/platform, don't forget to also set the ant environment via ". ./setantenv.sh" or "setantenv.bat")
ant initialize
Then you should be able to access the hmc and mmc.
However, you don't seem to have a lot of extensions at all installed.
Not sure what you are trying to do..
If you plan to setup a new "application" by developing your own extensions, e.g. based on the accelerator (or other examples) you should take a look at how to generate those via ext-gen.
(see e.g. https://wiki.hybris.com/display/accdoc/Customizing+the+Accelerator+with+extgen+and+modulegen)
Good luck :)
By default under Hybris 5.6 the generated localextensions.xml is now totally empty (it used to be not) :
<path dir="${HYBRIS_BIN_DIR}" />
<extension name="yempty" />
When you run 'ant all' you can actually see what extensions are loaded :
[echo] core 5.6.0.1 [p*cib]
[echo] testweb 5.6.0.1 [p*w]
[echo] scripting 5.6.0.1 [p*ci]
[echo] paymentstandard 5.6.0.1 [p*ci]
[echo] mediaweb 5.6.0.1 [p*cw]
[echo] maintenanceweb 5.6.0.1 [p*w]
[echo] deliveryzone 5.6.0.1 [p*ci]
[echo] commons 5.6.0.1 [p*ci]
[echo] processing->(scripting,commons) 5.6.0.1 [p*ci]
[echo] impex->processing 5.6.0.1 [p*ci]
[echo] validation->impex 5.6.0.1 [p*ci]
[echo] catalog->(validation,commons) 5.6.0.1 [p*cib]
[echo] europe1->(impex,catalog) 5.6.0.1 [p*ci]
[echo] platformservices->(paymentstandard,impex,deliveryzone,europe1,processing) 5.6.0.1 [p*cb]
[echo] workflow->(catalog,platformservices,processing,commons) 5.6.0.1 [p*ci]
[echo] hac->(impex,catalog,processing,platformservices) 5.6.0.1 [p*w]
[echo] comments->(workflow,impex,catalog,processing) 5.6.0.1 [p*ci]
[echo] advancedsavedquery->(impex,catalog,processing) 5.6.0.1 [p*ci]
[echo] yempty 5.6.0.1 [cibw] path:/Users/*****/Workspace/hybris/hybris/bin/ext-template/yempty
Now the question is what do you want ? Do you want to run a B2C site ? If yes the best way is to run 'ant modulegen' and then add your own extensions, or if you simply want out of the box default sites, add those lines under your localextensions.xml file :
<extension name='apparelstore' />
<extension name='electronicsstore' />
<extension name='yacceleratorcore' />
<extension name='yacceleratorinitialdata' />
<extension name='yacceleratorfacades' />
<extension name='yacceleratorcockpits' />
<extension name='yacceleratorstorefront' />
By doing this you will have out of the box store fronts and HMC / Cockpits.
Post the hybris 5.5.1 version, there have been significant changes in the platform. The recipe concept has been introduced for the installation of extensions. This recipe is nothing but a .gradle file which contains information about the extensions to be written in the localextensions.xml and the property files (local.properties and custom.properties) to be modified. This is probably introduced with the intention of the "Separation of Concerns" ideology of hybris. Please find below the link which contains the information about recipes
https://wiki.hybris.com/display/release5/Sample+Scenarios+Installation
My logging.properties in Eclipse looked like this when I initially posted this question:
handlers = java.util.logging.ConsoleHandler
org.apache.catalina.core=OFF
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format=JUL %4$s: %2$s%n%4$s: %5$s%n
I am also encountering the same issue on a Linux server with this configuration:
handlers = 2localhost.org.apache.juli.FileHandler, org.apache.juli.FileHandler
.handlers = org.apache.juli.FileHandler
2localhost.org.apache.juli.FileHandler.level = INFO
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.
org.apache.juli.FileHandler.level = ALL
org.apache.juli.FileHandler.formatter = java.util.logging.SimpleFormatter
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
java.util.logging.SimpleFormatter.format=tomcat: %4$s: %2$s%n%4$s: %5$s%n
org.apache.catalina.handlers = org.apache.juli.FileHandler
org.apache.catalina.startup.level = SEVERE
org.apache.catalina.session.ManagerBase.level = SEVERE
org.apache.catalina.core.AprLifecycleListener.level=SEVERE
org.apache.catalina.connector.level = SEVERE
org.apache.coyote.level=SEVERE
org.apache.catalina.level=ALL
org.apache.catalina.startup.HostConfig.level = SEVERE
org.apache.catalina.loader.WebappClassLoader.level = SEVERE
org.apache.catalina.session.ManagerBase.level = INFO
# ServletContext logger
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = ALL
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].formatter = java.util.logging.SimpleFormatter
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].format=servlet: %4$s: %2$s%n%4$s: %5$s%n
Why then does my console log in Eclipse look like this?
JUL INFO: org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_05\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files (x86)\MySQL\MySQL Utilities 1.4.3\;C:\Program Files (x86)\MySQL\MySQL Utilities 1.4.3\Doctrine extensions for PHP\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files (x86)\BaseX\bin;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\Skype\Phone\;.
JUL WARNING: org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ctc_web_front_ui' did not find a matching property.
JUL INFO: org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
JUL INFO: org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
JUL INFO: org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 359 ms
JUL INFO: org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
JUL INFO: org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
JUL INFO: org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
JUL INFO: org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'servletSpringDispatcher'
JUL INFO: org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'servletSpringDispatcher': initialization started
Where are the bare INFO messages coming from?
And why are catalina.core messages still showing up even though I set them to OFF?
On the Linux server the JULI log looks like this:
tomcat: FINE: org.apache.catalina.core.ContainerBase addChildInternal
FINE: Add child StandardHost[localhost] StandardEngine[Catalina]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardServer[8005]] to [INITIALIZING]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [org.apache.catalina.deploy.NamingResources#13fee20c] to [INITIALIZING]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [org.apache.catalina.deploy.NamingResources#13fee20c] to [INITIALIZED]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardService[Catalina]] to [INITIALIZING]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardEngine[Catalina]] to [INITIALIZING]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardEngine[Catalina]] to [INITIALIZED]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [Connector[HTTP/1.1-8080]] to [INITIALIZING]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [org.apache.catalina.connector.MapperListener#737996a0] to [INITIALIZING]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [org.apache.catalina.connector.MapperListener#737996a0] to [INITIALIZED]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [Connector[HTTP/1.1-8080]] to [INITIALIZED]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardService[Catalina]] to [INITIALIZED]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardServer[8005]] to [INITIALIZED]
tomcat: FINE: org.apache.catalina.util.LifecycleBase setStateInternal
FINE: Setting state for [StandardServer[8005]] to [STARTING_PREP]
tomcat: FINE: org.apache.catalina.core.NamingContextListener lifecycleEvent
FINE: Bound StandardServer[8005]
tomcat: FINE: org.apache.catalina.core.NamingContextListener createNamingContext
FINE: Creating JNDI naming context
tomcat: FINE: org.apache.catalina.core.NamingContextListener addResource
Same question applies, why don't all lines start with tomcat:?
UPDATE
While debugging I discovered that BOTH LINES of each log entry come from java.util.logging.Logger.logp()
My logging.properties in Eclipse
I do not know how your workspace is configured. Maybe that file is not used at all.
Java Logging is configured by system properties.
You need one property (-Djava.util.logging.manager) to configure org.apache.juli.ClassLoaderLogManager as log manager implementation for Java Logging.
You need other property (-Djava.util.logging.config.file) to configure path to the configuration file.
Usually both properties are set by the launch script (catalina.sh, catalina.bat), but Eclipse launches java directly, without a help from that script, so those system properties have to be set explicitly in a launch configuration.
http://tomcat.markmail.org/thread/vpr7mjxmgdvkl3dv
Tomcat JULI supports per-classloader configuration of logging.
This feature allows one to configure logging individually for each web application by packing a WEB-INF/classes/logging.properties file with it.
If you have unexpectedly placed a logging.properties file into classpath, it will have the same effect: it will supersede the default configuration for classes loaded by that classloader.
E.g. it is known that some version of Jollyday library (4 years ago) included an unexpected logging.properties file that enabled FINE logging.
.level = ALL
https://bz.apache.org/bugzilla/show_bug.cgi?id=52011
The answer has been staring us in the face, from the top of the posting:
java.util.logging.SimpleFormatter.format=JUL %4$s: %2$s%n%4$s: %5$s%n
^^^^^^^
The extra %n%4$s: in the format string is what causes the additional line to show up. Duh.
The info messages you are referring to is not actually part of core. They are being generated by classes in different packages. By dissecting catalina libs and identifying the classes responsible for particular logs, here is the configuration which has prevented logs on tomcat 7.0.63, by appending to default logging.properties:
org.apache.catalina.startup.level=OFF
org.apache.catalina.startup.handlers=1catalina.org.apache.juli.FileHandler.level
org.apache.catalina.core.level=OFF
org.apache.catalina.core.handlers=1catalina.org.apache.juli.FileHandler.level
org.apache.coyote.level=OFF
org.apache.coyote.handlers=1catalina.org.apache.juli.FileHandler.level
I think you're missing jul-to-slf4j. See here for more detail slf4j legacy bridge documentation
I'm using Tapestry 5.3 framework in my Java 1.7 web-app, and run in under Tomcat 7.x.
Suddenly today I've found in startup logs of my app these lines:
jul 31, 2014 12:12:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7#13362) for context '/XXX'
jul 31, 2014 12:12:46 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
I have never seen these log-lines before in my app. Furthermore, "Initializing Mojarra" process takes some appreciable time.
So I should think, that somebody among our project developers have added special libraries - but there aren't any JSF or Faces libraries in the build.
I have no ideas what have changed and how I can cut out Mojarra from my project? Any help would be appreciated.
The problem was in jsf-*.jar libraries placed mistakenly in /lib folder of Tomcat. They were initialized due to tomcat startup. Removing them solved the problem.
I am creating a liferay service, I generated a lot of classes. When i try to build-service using Liferay ServiceBUilder, it shows in console that My service is build succesfully
[Console output redirected to file:/home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/.metadata/.plugins/com.liferay.ide.eclipse.sdk/sdk.log]
Buildfile: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/build.xml
build-service:
[copy] Copying 1 file to /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/classes
[echo] Loading jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[echo] 16:27:07,649 INFO [EasyConf:122] Refreshed the configuration of all components
[echo] 16:27:08,250 INFO [ConfigurationLoader:56] Properties for jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
[echo] Loading jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[echo] Loading jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
[echo] 16:27:11,976 INFO [PortalImpl:295] Global lib directory /home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/lib/ext/
[echo] 16:27:11,978 INFO [PortalImpl:315] Portal lib directory /home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/
[echo] Building ECData
[echo] Building WebArticleHelper
[delete] Deleting: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/ServiceBuilder.temp
[mkdir] Created dir: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/service-classes
compile-java:
[javac] Compiling 18 source files to /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/service-classes
[zip] Building zip: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/lib/rosetta-services-portlet-service.jar
[delete] Deleting directory /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/service-classes
BUILD SUCCESSFUL
Total time: 16 seconds
But I cant see the service deployed in Liferay Developer studio
Also, when i open http://localhost:8080/tunnel-web/axis
I cant find my service there,
the services-portlet is not giving any error while compiling, deploying, building-services, to add to more frustration, the same services-portlet and services are getting deployed in my collegeue's machine.
Can anybody figure out what the problem is? Thanks a lot in advance.
Once you run build-services you need to run build-wsdd ant task (or click "build wsdd" in the service.xml editor in the IDE). Also to try to test this you have to right-click the portlet project that is shown in the servers view and select "test web services". Or if you want to see the url directly you should use:
http://localhost:8080/rosetta-services-portlet/tunnel-web/axis
I think the link is : http://localhost:8080/rosetta-services-portlet/axis
........